非通宇 保税仓入口订单推送;

This commit is contained in:
王奎兴
2026-06-11 15:58:07 +08:00
parent e81a1fda06
commit 92e0f43ffc
@@ -1998,11 +1998,13 @@ public class ReservationStockInOrderApplicationService {
orderList.add(gwInDetail); orderList.add(gwInDetail);
} }
gwStockInOrder.setOrderList(orderList); gwStockInOrder.setOrderList(orderList);
List<GwStockInOrder> list = new LinkedList<>();
list.add(gwStockInOrder);
GwLog gwLog = new GwLog(); GwLog gwLog = new GwLog();
gwLog.setType("保税仓-进口订单"); gwLog.setType("保税仓-进口订单");
gwLog.setBusinessId(id); gwLog.setBusinessId(id);
gwLog.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrder)); gwLog.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(list));
gwLog.setResponseBody(""); gwLog.setResponseBody("");
gwLog.setStatus(1); gwLog.setStatus(1);
gwLog.setSendTime(new Date()); gwLog.setSendTime(new Date());
@@ -2019,7 +2021,7 @@ public class ReservationStockInOrderApplicationService {
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(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrder), "UTF-8"); StringEntity postingString = new StringEntity(com.alibaba.fastjson.JSONObject.toJSONString(list), "UTF-8");
httpPost.setEntity(postingString); httpPost.setEntity(postingString);
httpPost.setHeader("Content-type", "application/json"); httpPost.setHeader("Content-type", "application/json");
httpPost.setHeader("apiName", API_NAME); httpPost.setHeader("apiName", API_NAME);