fix:修改过账名称

This commit is contained in:
郭飞 2025-05-28 14:13:40 +08:00
parent a901b7c392
commit 0b81cd5594

View File

@ -1042,9 +1042,9 @@ public class ToSAPServiceImpl {
bodyJSonData.put("MJAHR", MJAHR); bodyJSonData.put("MJAHR", MJAHR);
//过账日期 //过账日期
bodyJSonData.put("BUDAT", "20250430"); bodyJSonData.put("BUDAT", TimeStampUtil.getCurrentTime("yyyyMMdd"));
//凭证日期 //凭证日期
bodyJSonData.put("BLDAT", "20250430"); bodyJSonData.put("BLDAT", TimeStampUtil.getCurrentTime("yyyyMMdd"));
String sendData = MainData.toJSONString(); String sendData = MainData.toJSONString();
return sendData; return sendData;
@ -5112,7 +5112,7 @@ public class ToSAPServiceImpl {
ErpMessageLog erplog = new ErpMessageLog(); ErpMessageLog erplog = new ErpMessageLog();
erplog.setEventUser(user); erplog.setEventUser(user);
erplog.setServerName("WmsToErp"); erplog.setServerName("WmsToErp");
erplog.setEventName("无来源转库-311"); erplog.setEventName("无来源转库");
erplog.setId(uuid.toString()); erplog.setId(uuid.toString());
erplog.setInterfaceTime(TimeStampUtil.getCurrentTime(TimeStampUtil.FORMAT_DEFAULT)); erplog.setInterfaceTime(TimeStampUtil.getCurrentTime(TimeStampUtil.FORMAT_DEFAULT));
erplog.setMessageId(UUID.randomUUID().toString()); erplog.setMessageId(UUID.randomUUID().toString());
@ -5891,10 +5891,9 @@ public class ToSAPServiceImpl {
// String insmk = StringUtils.equals(mm.get("OQARESULTSTATE").toString(),"END")?"":"X"; // String insmk = StringUtils.equals(mm.get("OQARESULTSTATE").toString(),"END")?"":"X";
item.put("INSMK", insmk); item.put("INSMK", insmk);
itemData.add(item); itemData.add(item);
} }
// TimeStampUtil.getCurrentTime("yyyyMMdd") // TimeStampUtil.getCurrentTime("yyyyMMdd")
String sendData = ToSAPMessageUtil.mm067(user, bodyData, itemData,"2025-04-30"); String sendData = ToSAPMessageUtil.mm067(user, bodyData, itemData,TimeStampUtil.getCurrentTime("yyyyMMdd"));
String sapreturn = toSAPMessageUtil.sendHttpPost(toSAPMessageUtil.materialChangeLocationUrl,"",sendData); String sapreturn = toSAPMessageUtil.sendHttpPost(toSAPMessageUtil.materialChangeLocationUrl,"",sendData);
org.json.JSONObject receiveJsonObject = new org.json.JSONObject(sapreturn); org.json.JSONObject receiveJsonObject = new org.json.JSONObject(sapreturn);