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);