|
|
@@ -171,7 +171,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
{
|
|
|
String userId = StringUtils.isNull(user.getUserId()) ? "-1" : user.getUserId();
|
|
|
SysUser info = userMapper.checkUserNameUnique(user.getUserName());
|
|
|
- if (StringUtils.isNotNull(info) && info.getUserId() != userId)
|
|
|
+ if (StringUtils.isNotNull(info) && !userId.equals(info.getUserId()))
|
|
|
{
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
}
|
|
|
@@ -189,7 +189,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
{
|
|
|
String userId = StringUtils.isNull(user.getUserId()) ? "-1" : user.getUserId();
|
|
|
SysUser info = userMapper.checkPhoneUnique(user.getPhonenumber());
|
|
|
- if (StringUtils.isNotNull(info) && info.getUserId() != userId)
|
|
|
+ if (StringUtils.isNotNull(info) && !userId.equals(info.getUserId()))
|
|
|
{
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
}
|
|
|
@@ -207,7 +207,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
{
|
|
|
String userId = StringUtils.isNull(user.getUserId()) ? "-1" : user.getUserId();
|
|
|
SysUser info = userMapper.checkEmailUnique(user.getEmail());
|
|
|
- if (StringUtils.isNotNull(info) && info.getUserId() != userId)
|
|
|
+ if (StringUtils.isNotNull(info) && !userId.equals(info.getUserId()))
|
|
|
{
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
}
|