fix(iam): 去除phone校验

This commit is contained in:
yjz
2023-11-15 17:05:38 +08:00
parent 66277eda5e
commit 41655b2089
2 changed files with 0 additions and 18 deletions
@@ -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()) + "】已存在!");
}
}
}
/**