From 0d04bc5d8080b82338302fba0a59fccff2eaedfc Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期日, 06 七月 2025 11:28:29 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/aspect/OperationLogAspect.java | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 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 33c38d5..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 @@ -4,10 +4,10 @@ import com.zy.asrs.common.utils.IpTools; import com.zy.asrs.framework.common.Cools; import com.zy.asrs.wcs.common.annotation.OperationLog; -import com.zy.asrs.wcs.sys.entity.OperationRecord; -import com.zy.asrs.wcs.sys.entity.User; -import com.zy.asrs.wcs.sys.service.OperationRecordService; -import com.zy.asrs.wcs.utils.Utils; +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.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