From e430bfca38cdae9dd230f951e108a75caebccb61 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 24 四月 2024 10:56:47 +0800
Subject: [PATCH] 完善代码
---
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/LogAspect.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/OperationLogAspect.java b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/LogAspect.java
similarity index 95%
rename from pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/OperationLogAspect.java
rename to pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/LogAspect.java
index 919556a..0902667 100644
--- a/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/OperationLogAspect.java
+++ b/pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/LogAspect.java
@@ -27,7 +27,7 @@
@Aspect
@Component
-public class OperationLogAspect {
+public class LogAspect {
@Value("${pms.sso.curUserUrl}")
public String SsoCurUserUrl ;
@@ -43,11 +43,11 @@
this.restTemplate = restTemplate ;
}
- @AfterReturning(pointcut = "@annotation(com.dy.pmsGlobal.aop.OperationDescription)", returning = "result")
+ @AfterReturning(pointcut = "@annotation(com.dy.pmsGlobal.aop.Log)", returning = "result")
public void logAfterReturning(JoinPoint joinPoint, Object result) {
// 鑾峰彇鏂规硶鐨勪腑鏂囨弿杩�
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
- OperationDescription operationDescription = methodSignature.getMethod().getAnnotation(OperationDescription.class);
+ Log operationDescription = methodSignature.getMethod().getAnnotation(Log.class);
String operationName = operationDescription.value();
//缁撴灉
BaseResponse response = (BaseResponse)result;
--
Gitblit v1.8.0