|
@@ -190,7 +190,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
{
|
|
|
Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId();
|
|
|
// SysUser info = userMapper.checkPhoneUnique(user.getPhonenumber());
|
|
|
- SysUser info = userMapper.checkEmailUnique(user.getEmail(), user.getType());
|
|
|
+ SysUser info = userMapper.checkPhoneUnique(user.getEmail(), user.getType());
|
|
|
if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue())
|
|
|
{
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
@@ -207,12 +207,12 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
@Override
|
|
|
public boolean checkEmailUnique(SysUser user)
|
|
|
{
|
|
|
- Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId();
|
|
|
+ /*Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId();
|
|
|
SysUser info = userMapper.checkEmailUnique(user.getEmail(), user.getType());
|
|
|
if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue())
|
|
|
{
|
|
|
return UserConstants.NOT_UNIQUE;
|
|
|
- }
|
|
|
+ }*/
|
|
|
return UserConstants.UNIQUE;
|
|
|
}
|
|
|
|