From 18b5a9cd3843afc4817c6400d8481eeaa1b92206 Mon Sep 17 00:00:00 2001 From: "ZHOUZ\\Noble'lift" <1014987728@qq.com> Date: Sun, 23 Apr 2023 11:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java | 3 +++ .../nladmin-system/src/main/java/org/nl/wms/sch/AcsUtil.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lms/hd/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java b/lms/hd/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java index b7132de..f1fcd59 100644 --- a/lms/hd/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java +++ b/lms/hd/nladmin-system/src/main/java/org/nl/wms/ext/acs/service/impl/AcsToWmsServiceImpl.java @@ -45,6 +45,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { */ @Override public Map receiveTaskStatusAcs(String string) { + log.info("receiveTaskStatusAcs接口输入参数为:-------------------------------------"+string); JSONArray array = JSONArray.parseArray(string); //返回处理失败的任务 JSONArray errArr = new JSONArray(); @@ -116,6 +117,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { @Override public Map orderFinish(String string) { + log.info("orderFinish接口输入参数为:-------------------------------------"+string); JSONObject orderJson = JSONObject.parseObject(string); String ext_order_id = orderJson.getString("ext_order_id"); // JSONArray array = JSONArray.parseArray(string); @@ -139,6 +141,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { @Override @Transactional(rollbackFor = Exception.class) public JSONObject apply(JSONObject whereJson) { + log.info("apply接口输入参数为:-------------------------------------"+whereJson.toString()); String type = whereJson.getString("type"); String point_code = whereJson.getString("point_code"); String vehicle_num = whereJson.getString("vehicle_num"); diff --git a/lms/hd/nladmin-system/src/main/java/org/nl/wms/sch/AcsUtil.java b/lms/hd/nladmin-system/src/main/java/org/nl/wms/sch/AcsUtil.java index 3930d30..425a08f 100644 --- a/lms/hd/nladmin-system/src/main/java/org/nl/wms/sch/AcsUtil.java +++ b/lms/hd/nladmin-system/src/main/java/org/nl/wms/sch/AcsUtil.java @@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil; import cn.hutool.http.HttpRequest; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import lombok.extern.slf4j.Slf4j; import org.nl.modules.system.service.impl.ParamServiceImpl; import org.nl.utils.SpringContextHolder; import org.springframework.http.HttpStatus; @@ -12,8 +13,10 @@ import org.springframework.http.HttpStatus; /** * ACS连接工具类: */ +@Slf4j public class AcsUtil { public static JSONObject notifyAcs(String api, JSONArray list) { + log.info("下发ACS参数----------------------------------------+"+api+",---"+list.toString()); //判断是否连接ACS系统 String isConnect = SpringContextHolder.getBean(ParamServiceImpl.class).findByCode("IS_CONNECT_ACS").getValue(); JSONObject result = new JSONObject(); @@ -33,6 +36,7 @@ public class AcsUtil { .body(String.valueOf(list)) .execute().body(); result = JSONObject.parseObject(resultMsg); + log.info("ACS相应参数----------------------------------------+"+api+",---"+result.toString()); } catch (Exception e) { String msg = e.getMessage();