非通宇 保税仓入口订单推送;
This commit is contained in:
+4
-2
@@ -1998,11 +1998,13 @@ public class ReservationStockInOrderApplicationService {
|
||||
orderList.add(gwInDetail);
|
||||
}
|
||||
gwStockInOrder.setOrderList(orderList);
|
||||
List<GwStockInOrder> list = new LinkedList<>();
|
||||
list.add(gwStockInOrder);
|
||||
|
||||
GwLog gwLog = new GwLog();
|
||||
gwLog.setType("保税仓-进口订单");
|
||||
gwLog.setBusinessId(id);
|
||||
gwLog.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(gwStockInOrder));
|
||||
gwLog.setRequestBody(com.alibaba.fastjson.JSONObject.toJSONString(list));
|
||||
gwLog.setResponseBody("");
|
||||
gwLog.setStatus(1);
|
||||
gwLog.setSendTime(new Date());
|
||||
@@ -2019,7 +2021,7 @@ public class ReservationStockInOrderApplicationService {
|
||||
|
||||
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(list), "UTF-8");
|
||||
httpPost.setEntity(postingString);
|
||||
httpPost.setHeader("Content-type", "application/json");
|
||||
httpPost.setHeader("apiName", API_NAME);
|
||||
|
||||
Reference in New Issue
Block a user