进出口单证推送数据修改
This commit is contained in:
+2
-2
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user