调整修改用户名异常提示

This commit is contained in:
wanggeng888 2021-05-02 16:21:54 +08:00
parent a4df21a0fd
commit ff85d70c00

View File

@ -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);