From d9cea3d7757a8d580bb0574d419ba6dd9c2478e7 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期五, 13 十二月 2024 15:11:50 +0800
Subject: [PATCH] #search shuttle
---
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java
index a698bbb..2097f99 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java
@@ -7,7 +7,7 @@
import com.zy.asrs.wcs.system.entity.OperationRecord;
import com.zy.asrs.wcs.system.entity.User;
import com.zy.asrs.wcs.system.service.OperationRecordService;
-import com.zy.asrs.wcs.utils.Utils;
+import com.zy.asrs.wcs.utils.CommonUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.MethodSignature;
@@ -93,7 +93,7 @@
User user = getLoginUser();
if (user != null) {
record.setUserId(user.getId());
- record.setHostId(user.getHostId());
+// record.setHostId(user.getHostId());
}
// 璁板綍璇锋眰鍦板潃銆佽姹傛柟寮忋�乮p
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
@@ -105,7 +105,7 @@
// 璁板綍寮傚父淇℃伅
if (e != null) {
record.setResult(0);
- record.setErr(Utils.sub(e.toString(), MAX_LENGTH));
+ record.setErr(CommonUtils.sub(e.toString(), MAX_LENGTH));
} else {
record.setResult(1);
}
@@ -117,11 +117,11 @@
}
// 璁板綍璇锋眰鍙傛暟
if (ol.param() && request != null) {
- record.setRequest(Utils.sub(getParams(joinPoint, request), MAX_LENGTH));
+ record.setRequest(CommonUtils.sub(getParams(joinPoint, request), MAX_LENGTH));
}
// 璁板綍璇锋眰缁撴灉
if (ol.result() && result != null) {
- record.setResponse(Utils.sub(JSON.toJSONString(result), MAX_LENGTH));
+ record.setResponse(CommonUtils.sub(JSON.toJSONString(result), MAX_LENGTH));
}
operationRecordService.saveAsync(record);
}
@@ -154,7 +154,7 @@
Map<String, String[]> map = Collections.unmodifiableMap(request.getParameterMap());
for (Map.Entry<String, String[]> entry : map.entrySet()) {
- paramsMap.put(entry.getKey(), Utils.join(entry.getValue(), ","));
+ paramsMap.put(entry.getKey(), CommonUtils.join(entry.getValue(), ","));
}
if (paramsMap.keySet().size() > 0) {
--
Gitblit v1.9.1