进出口单证推送数据修改

This commit is contained in:
zhaoqing
2026-05-16 17:21:33 +08:00
parent 99ceec0b77
commit abff686b32
@@ -201,7 +201,7 @@ public class BusinessDocumentOrderApplicationService {
GwLog gwLog = new GwLog(); GwLog gwLog = new GwLog();
gwLog.setType("进出口原始单证"); gwLog.setType("进出口原始单证");
gwLog.setBusinessId(Long.valueOf(pushData.getId())); gwLog.setBusinessId(Long.valueOf(pushData.getId()));
gwLog.setRequestBody(JSONObject.toJSONString(body)); gwLog.setRequestBody(JSONObject.toJSONString(bodyList));
gwLog.setResponseBody(""); gwLog.setResponseBody("");
gwLog.setStatus(1); gwLog.setStatus(1);
gwLog.setSendTime(new Date()); gwLog.setSendTime(new Date());
@@ -217,7 +217,7 @@ public class BusinessDocumentOrderApplicationService {
try { try {
CloseableHttpClient httpClient = HttpClients.createDefault(); CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(PUSH_API_URL); HttpPost httpPost = new HttpPost(PUSH_API_URL);
StringEntity postingString = new StringEntity(JSONObject.toJSONString(body), "UTF-8"); StringEntity postingString = new StringEntity(JSONObject.toJSONString(bodyList), "UTF-8");
httpPost.setEntity(postingString); httpPost.setEntity(postingString);
httpPost.setHeader("Content-type", "application/json"); httpPost.setHeader("Content-type", "application/json");