|
|
@ -218,7 +218,7 @@ public class UsersService extends BaseService { |
|
|
|
if (StringUtils.isNotEmpty(userName)) { |
|
|
|
if (StringUtils.isNotEmpty(userName)) { |
|
|
|
User tempUser = userMapper.queryByUserName(userName); |
|
|
|
User tempUser = userMapper.queryByUserName(userName); |
|
|
|
if (tempUser != null && tempUser.getId() != userId) { |
|
|
|
if (tempUser != null && tempUser.getId() != userId) { |
|
|
|
putMsg(result, Status.USER_NAME_EXIST, userName); |
|
|
|
putMsg(result, Status.USER_NAME_EXIST); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
user.setUserName(userName); |
|
|
|
user.setUserName(userName); |
|
|
|