{
int result = Constants.Base.FAIL;
RoleCriteria roleCriteria = new RoleCriteria();
Criteria criteria = roleCriteria.createCriteria();
criteria.andRoleNameEqualTo(role.getRoleName());
List<Role> roles = roleMapper.selectByCriteria(roleCriteria);
if (roles.size() < 1)
{
if(roleMapper.updateByPrimaryKeySelective(role) > 0)
{