|
@@ -52,7 +52,6 @@ public class UserInfoManage { |
|
|
private final UserInfoHelper userInfoHelper; |
|
|
private final UserInfoHelper userInfoHelper; |
|
|
|
|
|
|
|
|
public PageVo<ResUserInfoListVO> list(ReqUserInfoListPO reqUserInfoListPO) { |
|
|
public PageVo<ResUserInfoListVO> list(ReqUserInfoListPO reqUserInfoListPO) { |
|
|
|
|
|
|
|
|
String phoneNo = reqUserInfoListPO.getPhoneNo(); |
|
|
String phoneNo = reqUserInfoListPO.getPhoneNo(); |
|
|
String orgCode = reqUserInfoListPO.getOrgCode(); |
|
|
String orgCode = reqUserInfoListPO.getOrgCode(); |
|
|
String name = reqUserInfoListPO.getName(); |
|
|
String name = reqUserInfoListPO.getName(); |
|
@@ -193,13 +192,14 @@ public class UserInfoManage { |
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void userInfoDetailEdit(ReqUserDetailEditPO reqUserDetailEditPO) { |
|
|
public void userInfoDetailEdit(ReqUserDetailEditPO reqUserDetailEditPO) { |
|
|
|
|
|
String employeeCode = reqUserDetailEditPO.getEmployeeCode(); |
|
|
Long userId = generateUserId(reqUserDetailEditPO.getEmployeeCode()); |
|
|
Long userId = generateUserId(reqUserDetailEditPO.getEmployeeCode()); |
|
|
|
|
|
|
|
|
UserInfo userInfo = iUserInfoService.getById(userId); |
|
|
UserInfo userInfo = iUserInfoService.getById(userId); |
|
|
if (Objects.isNull(userInfo)) { |
|
|
if (Objects.isNull(userInfo)) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
userInfo.setMobile(reqUserDetailEditPO.getPhoneNo()); |
|
|
|
|
|
|
|
|
String phoneNo = reqUserDetailEditPO.getPhoneNo(); |
|
|
|
|
|
userInfo.setMobile(phoneNo); |
|
|
userInfo.setAvailable(reqUserDetailEditPO.getStatus()); |
|
|
userInfo.setAvailable(reqUserDetailEditPO.getStatus()); |
|
|
iUserInfoService.updateById(userInfo); |
|
|
iUserInfoService.updateById(userInfo); |
|
|
|
|
|
|
|
@@ -215,6 +215,14 @@ public class UserInfoManage { |
|
|
iUserRoleService.saveBatch(userRoleList); |
|
|
iUserRoleService.saveBatch(userRoleList); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 更新浙政钉相关数据 |
|
|
|
|
|
if (StringUtils.isNotBlank(phoneNo)) { |
|
|
|
|
|
iDingEmployeeInfoService |
|
|
|
|
|
.update(Wrappers.lambdaUpdate(DingEmployeeInfo.class) |
|
|
|
|
|
.eq(DingEmployeeInfo::getMainJob, "true") |
|
|
|
|
|
.eq(DingEmployeeInfo::getEmployeeCode, employeeCode) |
|
|
|
|
|
.set(DingEmployeeInfo::getBindUserMobile, phoneNo)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|