新增用户调整

dev_xiangguanfang
zhaokai 2026-01-04 09:31:18 +08:00
parent 33b9a09667
commit ef4bc73242
1 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,11 @@ public class UserAddExe {
// if(corpInfoDO == null){
// throw new BizException("未创建相关方通用租户");
// }
List<UserDO> userList = userRepository.getListByPhone(cmd.getPhone(), null);
if (CollUtil.isNotEmpty(userList)) {
throw new BizException("手机号已注册");
}
BeanUtils.copyProperties(cmd, userE);
userE.setPassword(cmd.getNewPassword());
userE.encryptionPassword();