调整修改用户名异常提示
This commit is contained in:
parent
a4df21a0fd
commit
ff85d70c00
@ -187,7 +187,7 @@ public class UserServiceImpl extends DefaultBaseService implements IUserService
|
||||
params.put("userUsername", updateUsernameVO.getUsername());
|
||||
UserDTO userDTO = userDao.get(params);
|
||||
if (userDTO != null && !StringUtils.equals(userId, userDTO.getUserId())) {
|
||||
throw new SearchException("新用户名已经存在");
|
||||
throw new SearchException("用户名已经存在");
|
||||
}
|
||||
params.put("userId", userId);
|
||||
userDao.updateUsername(params);
|
||||
|
Loading…
Reference in New Issue
Block a user