|
@@ -570,6 +570,10 @@ public class SapUserService extends BaseService {
|
|
|
.build();
|
|
|
familyList.add(family);
|
|
|
}
|
|
|
+ if("1111".equals(user.getPersonId())) {
|
|
|
+ user.setCardType(CardTypeEnum.USA.getSapCode());
|
|
|
+ user.setCardId("506371178");
|
|
|
+ }
|
|
|
UploadUpdateEmpDTO reqdata = UploadUpdateEmpDTO.builder().cardId(user.getCardId())
|
|
|
.cardType(CardTypeEnum.getEnumBySapCode(user.getCardType()).getMyCode()).email(user.getEmail())
|
|
|
.entryDate(user.getStartDate()).jobNumber(user.getJobNumber()).phone(user.getFormatMobile())
|
|
@@ -597,17 +601,14 @@ public class SapUserService extends BaseService {
|
|
|
if (perPerson != null) {
|
|
|
reqdata.setBirthDate(perPerson.getDateOfBirth());
|
|
|
}
|
|
|
- if("1111".equals(user.getPersonId())) {
|
|
|
- reqdata.setCardType(CardTypeEnum.USA.getMyCode());
|
|
|
- reqdata.setCardId("506371178");
|
|
|
- }
|
|
|
String url = "http://cmcadmin.info666.com/hr/emp/modifyEmpInfo";
|
|
|
if (!devFlag) {
|
|
|
url = "https://manage.inet.cmcinc.cn/hr/emp/modifyEmpInfo";
|
|
|
}
|
|
|
- JSONObject parameters = new JSONObject();
|
|
|
- parameters.put("reqdata", reqdata);
|
|
|
- String result = HttpClientUtil.postJson(url, parameters.toJSONString());
|
|
|
+ JSONObject param = new JSONObject();
|
|
|
+ param.put("reqdata", reqdata);
|
|
|
+ LoggerUtil.info("uploadHrEmpUserInfo->param->" + param.toJSONString());
|
|
|
+ String result = HttpClientUtil.postJson(url, param.toJSONString());
|
|
|
LoggerUtil.info("uploadHrEmpUserInfo->result->" + result);
|
|
|
}
|
|
|
}
|