新增用户调整
parent
33b9a09667
commit
ef4bc73242
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue