|
|
@@ -348,10 +348,10 @@ public class UserInfoManage { |
|
|
|
String employeeCode = reqUserDetailEditPO.getEmployeeCode(); |
|
|
|
String mobile = userInfo.getMobile(); |
|
|
|
Long userId = userInfo.getId(); |
|
|
|
if (StringUtils.isBlank(mobile)) { |
|
|
|
// if (StringUtils.isBlank(mobile)) { |
|
|
|
// 校验手机号是否重复 |
|
|
|
UserInfo repeatMobileUserInfo = iUserInfoService.getOne(Wrappers.lambdaQuery(UserInfo.class) |
|
|
|
.eq(UserInfo::getMobile, mobile).ne(UserInfo::getId, userId)); |
|
|
|
.eq(UserInfo::getMobile, reqUserDetailEditPO.getPhoneNo()).ne(UserInfo::getId, userId)); |
|
|
|
if (Objects.nonNull(repeatMobileUserInfo)) { |
|
|
|
throw new BizException("该手机号码已被绑定,请问重复绑定"); |
|
|
|
} |
|
|
@@ -365,8 +365,9 @@ public class UserInfoManage { |
|
|
|
.eq(DingEmployeeInfo::getMainJob, "true") |
|
|
|
.eq(DingEmployeeInfo::getEmployeeCode, employeeCode) |
|
|
|
.set(DingEmployeeInfo::getBindUserMobile, phoneNo)); |
|
|
|
iUserInfoService.updateById(userInfo); |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|