fix(iam): 去除phone校验
This commit is contained in:
-7
@@ -499,13 +499,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
||||
throw new ServiceException("工号【" + user.getUsername() + "】已存在!");
|
||||
}
|
||||
}
|
||||
// 手机号唯一校验
|
||||
if (StringUtils.isNotBlank(user.getPhone())) {
|
||||
Integer count = userMapper.selectCount(new LambdaQueryWrapper<SysUser>().eq(SysUser::getPhone, user.getPhone()));
|
||||
if (count > 0) {
|
||||
throw new ServiceException("电话【" + PasswordUtil.decrypt(user.getPhone()) + "】已存在!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user