From bc899f1d6ff45d56f6cd206af471a14202bcda7d Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期六, 07 十月 2023 15:20:15 +0800 Subject: [PATCH] #新增许可证 --- src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java b/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java index 0f716ab..68e76cd 100644 --- a/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java +++ b/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java @@ -13,6 +13,7 @@ import com.zy.asrs.service.OrderService; import com.zy.asrs.task.AbstractHandler; import com.zy.asrs.task.core.ReturnT; +import com.zy.asrs.utils.MesSyncUtil; import com.zy.common.utils.HttpHandler; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -185,9 +186,10 @@ response = new HttpHandler.Builder() .setUri(pakoutUri) .setPath(pakoutPath) + .setParams(MesSyncUtil.getRequestParamMap()) .setJson(JSON.toJSONString(requestMap)) .build() - .doPost(); + .doPostWithParam(); success = orderSettleUpdate(response,order); } catch (Exception e) { log.error("fail", e); @@ -213,6 +215,7 @@ private ReturnT<String> orderPakinSync (Order order, String orderType, List<OrderDetl> orderDetls){ Map<String,Object> requestMap = getRequestMap(order,orderType,orderDetls); + System.out.println("requestMap: " + requestMap); String response = ""; boolean success = false; @@ -221,9 +224,11 @@ response = new HttpHandler.Builder() .setUri(pakinUri) .setPath(pakinPath) + .setParams(MesSyncUtil.getRequestParamMap()) .setJson(JSON.toJSONString(requestMap)) .build() - .doPost(); + .doPostWithParam(); + System.out.println(response); success = orderSettleUpdate(response,order); } catch (Exception e) { log.error("fail", e); -- Gitblit v1.9.1