机场项目推送人员bug修复

This commit is contained in:
guoshengxiong 2025-12-11 11:28:12 +08:00
parent a3c37ec58d
commit 243f8aa301

View File

@ -96,6 +96,7 @@ public class JcCall {
userSyncRequest.setType(opt);
JcHttpUtil.UserSyncRequest.UserForm form = new JcHttpUtil.UserSyncRequest.UserForm();
form.setEmpCenterId(Convert.toStr(workerInfo.getId()));
form.setIdcardGrantOrg(workerInfo.getIssuingAuthorityForIdcard());
form.setEmpName(workerInfo.getWorkerName());
Map<String, String> birthdayAgeSexMap = IdCardUtils.getBirthdayAgeSex(workerInfo.getIdCard());
form.setAge(Convert.toInt(birthdayAgeSexMap.get("age")));
@ -103,8 +104,8 @@ public class JcCall {
if (StrUtil.isNotBlank(workerInfo.getPhoneNumber())) {
form.setPhone(AESUtil.Encrypt(workerInfo.getPhoneNumber(), AESUtil.SECRET));
}
if (StrUtil.isNotBlank(workerInfo.getIdCardDownPhotoUrl())) {
form.setHeadImg(PathUtil.getServerUrl() + "/image/" + workerInfo.getIdCardDownPhotoUrl());
if (StrUtil.isNotBlank(workerInfo.getIdCardUpPhotoUrl())) {
form.setHeadImg(PathUtil.getServerUrl() + "/image/" + workerInfo.getIdCardUpPhotoUrl());
}
form.setNation(workerInfo.getNation());
form.setIdcardType(1);