From 589e0169044d733169cd0c1da64aa79610c50857 Mon Sep 17 00:00:00 2001 From: gongquanlin <1025081659@qq.com> Date: Wed, 29 Mar 2023 15:57:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=90=8C=E6=AD=A5=E5=AE=A2=E5=95=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../consumer/modules/buyer/controller/MdmBuyerController.java | 1 + .../consumer/openapi/service/impl/SDEnregyServiceImpl.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/buyer/controller/MdmBuyerController.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/buyer/controller/MdmBuyerController.java index 5ef6a58d..e4c14901 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/buyer/controller/MdmBuyerController.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/buyer/controller/MdmBuyerController.java @@ -24,5 +24,6 @@ public class MdmBuyerController { @PostMapping("/sync") public R sync(@RequestBody @Validated SyncBuyerDTO dto) { return serviceAbstract.proactiveSyncMdmBuyer(dto.getZxbm()); + } } diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java index b9d976ac..281d7a44 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/SDEnregyServiceImpl.java @@ -418,6 +418,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { "}"; // 发送POST请求 + log.info("[MDM主动同步客商]请求地址:{},请求参数:{}", buyerUrl, requestBody); HttpResponse response = HttpRequest.post(buyerUrl) .timeout(20000) // 设置请求超时时间 .header("Content-Type", "application/json") @@ -426,6 +427,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { .body(requestBody) // 设置请求体内容 .execute(); String resp = response.body(); + log.info("[MDM主动同步客商]响应结果:{}", resp); SDEnergyMdmBaseBO baseBO = JSONObject.parseObject(resp, SDEnergyMdmBaseBO.class); List mdmGmfxxtbReqBOS = (List) Optional.of(baseBO)