非通宇 保税仓出口订单推送;
This commit is contained in:
+4
-2
@@ -2338,12 +2338,14 @@ public class StockInOrderApplicationService {
|
|||||||
orderList.add(gwInDetail);
|
orderList.add(gwInDetail);
|
||||||
}
|
}
|
||||||
gwStockInOrder.setOrderList(orderList);
|
gwStockInOrder.setOrderList(orderList);
|
||||||
|
List<GwStockInOrder> gwStockInOrderList = new LinkedList<>();
|
||||||
|
gwStockInOrderList.add(gwStockInOrder);
|
||||||
|
|
||||||
//构建推送数据
|
//构建推送数据
|
||||||
GwLogDTO gwLogDTO = new GwLogDTO();
|
GwLogDTO gwLogDTO = new GwLogDTO();
|
||||||
gwLogDTO.setType("保税仓-进口订单");
|
gwLogDTO.setType("保税仓-进口订单");
|
||||||
gwLogDTO.setBusinessId(id);
|
gwLogDTO.setBusinessId(id);
|
||||||
gwLogDTO.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrder));
|
gwLogDTO.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrderList));
|
||||||
gwLogDTO.setResponseBody("");
|
gwLogDTO.setResponseBody("");
|
||||||
gwLogDTO.setStatus(1);
|
gwLogDTO.setStatus(1);
|
||||||
gwLogDTO.setSendTime(new Date());
|
gwLogDTO.setSendTime(new Date());
|
||||||
@@ -2369,7 +2371,7 @@ public class StockInOrderApplicationService {
|
|||||||
|
|
||||||
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(gwStockInOrderList), "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);
|
||||||
|
|||||||
Reference in New Issue
Block a user