From 22be593a83d33b81ba42c56aef0b8f702b1cfc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=8E=E5=85=B4?= <2220574228@qq.com> Date: Thu, 11 Jun 2026 18:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E9=80=9A=E5=AE=87=20=E4=BF=9D?= =?UTF-8?q?=E7=A8=8E=E4=BB=93=E5=87=BA=E5=8F=A3=E8=AE=A2=E5=8D=95=E6=8E=A8?= =?UTF-8?q?=E9=80=81;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stockInOrder/StockInOrderApplicationService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mhd_wms/src/main/java/com/mhd/wms/application/service/stockInOrder/StockInOrderApplicationService.java b/mhd_wms/src/main/java/com/mhd/wms/application/service/stockInOrder/StockInOrderApplicationService.java index ba3f9a4e4..4048381cc 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/application/service/stockInOrder/StockInOrderApplicationService.java +++ b/mhd_wms/src/main/java/com/mhd/wms/application/service/stockInOrder/StockInOrderApplicationService.java @@ -2338,12 +2338,14 @@ public class StockInOrderApplicationService { orderList.add(gwInDetail); } gwStockInOrder.setOrderList(orderList); + List gwStockInOrderList = new LinkedList<>(); + gwStockInOrderList.add(gwStockInOrder); //构建推送数据 GwLogDTO gwLogDTO = new GwLogDTO(); gwLogDTO.setType("保税仓-进口订单"); gwLogDTO.setBusinessId(id); - gwLogDTO.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrder)); + gwLogDTO.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrderList)); gwLogDTO.setResponseBody(""); gwLogDTO.setStatus(1); gwLogDTO.setSendTime(new Date()); @@ -2369,7 +2371,7 @@ public class StockInOrderApplicationService { CloseableHttpClient httpClient = HttpClients.createDefault(); 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(gwStockInOrderList), "UTF-8"); httpPost.setEntity(postingString); httpPost.setHeader("Content-type", "application/json"); httpPost.setHeader("apiName", API_NAME);