fix(user): 解决用户同步更新逻辑中的空指针异常
parent
1603a5151c
commit
440982b858
|
|
@ -920,14 +920,14 @@ public class HumanUserSyncExe {
|
|||
|
||||
String deptName = jsonObject.getStr("dept_name");
|
||||
Long deptId = StringUtils.isEmpty(deptName) || deptNameIdMap == null ? null : deptNameIdMap.get(deptName);
|
||||
if (existingHumanUser.getUserId() != null) {
|
||||
// if (existingHumanUser.getUserId() != null) {
|
||||
log.info("开始统一用户更新,userId={}",existingHumanUser.getUserId() );
|
||||
if (updateBasicInfodUser(existingHumanUser, deptId,corpId)) {
|
||||
userUpdateCount++;
|
||||
} else {
|
||||
log.warn("统一用户更新未成功,userId={},身份证号={}", existingHumanUser.getUserId(), idCardNumber);
|
||||
}
|
||||
}
|
||||
// }
|
||||
} catch (Exception e) {
|
||||
log.error("处理人员变更数据失败,原始数据:{}", item, e);
|
||||
failCount++;
|
||||
|
|
@ -938,9 +938,6 @@ public class HumanUserSyncExe {
|
|||
}
|
||||
|
||||
private boolean updateBasicInfodUser(HumanUserE humanUser, Long deptId, Long corpId) {
|
||||
if (humanUser.getUserId() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// SingleResponse<UserDetailCO> detailResponse = userFacade.getDetail(humanUser.getUserId());
|
||||
String phoneNumber = StringUtils.isNotEmpty(humanUser.getPhoneNumber()) ? humanUser.getPhoneNumber() : null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue