From 2335443d6a9f6ca00a3c1f5270341be12be192dd Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 23 十二月 2024 16:12:41 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/jx-gt-crn-wcs' into jx-gt-crn-wcs
---
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 3d10f0a..56e4b21 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -50,6 +50,7 @@
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
+import javax.annotation.Resource;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.*;
@@ -96,6 +97,9 @@
private OrderService orderService;
@Autowired
private OrderDetlService orderDetlService;
+
+ @Resource
+ private ApiLogService apiLogService;
@Value("${wms.url}")
private String wmsUrl;
@@ -2165,6 +2169,21 @@
// log.info("杞彂agv浠诲姟锛氳姹備綋:"+JSONObject.toJSONString(requestParam)+",杩斿洖鍊�:"+jsonObject);
}catch (Exception e){
+ } finally {
+ try {
+ // 淇濆瓨鎺ュ彛鏃ュ織
+ apiLogService.save(
+ "鍑哄簱鍛煎彨agv",
+ url + path,
+ null,
+ "127.0.0.1",
+ JSONObject.toJSONString(requestParam),
+ response,
+ success.equals("SUCCESS")
+ );
+ } catch (Exception e) {
+ log.error("", e);
+ }
}
return success;
}
--
Gitblit v1.9.1