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

This commit is contained in:
王奎兴
2026-06-11 18:20:00 +08:00
parent 42e70be592
commit 22be593a83
@@ -2338,12 +2338,14 @@ public class StockInOrderApplicationService {
orderList.add(gwInDetail);
}
gwStockInOrder.setOrderList(orderList);
List<GwStockInOrder> 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);