From 4fe067a889f00617f03caf7ae3598466560dce33 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 9 Jan 2025 20:32:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(log):=20=E4=BF=AE=E5=A4=8D=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AE=B0=E5=BD=95=E6=97=B6=E6=89=80=E5=B1=9E=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=92=8C=E6=8F=8F=E8=BF=B0=E5=8F=96=E5=80=BC=E4=BC=98?= =?UTF-8?q?=E5=85=88=E7=BA=A7=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/top/continew/starter/log/AbstractLogHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/continew-starter-log/continew-starter-log-core/src/main/java/top/continew/starter/log/AbstractLogHandler.java b/continew-starter-log/continew-starter-log-core/src/main/java/top/continew/starter/log/AbstractLogHandler.java index 9a3df38b..9a01e30f 100644 --- a/continew-starter-log/continew-starter-log-core/src/main/java/top/continew/starter/log/AbstractLogHandler.java +++ b/continew-starter-log/continew-starter-log-core/src/main/java/top/continew/starter/log/AbstractLogHandler.java @@ -87,6 +87,7 @@ public abstract class AbstractLogHandler implements LogHandler { // 例如:@Log("新增部门") -> 新增部门 if (null != methodLog && CharSequenceUtil.isNotBlank(methodLog.value())) { logRecord.setDescription(methodLog.value()); + return; } // 例如:@Operation(summary="新增部门") -> 新增部门 Operation methodOperation = AnnotationUtil.getAnnotation(targetMethod, Operation.class); @@ -116,6 +117,7 @@ public abstract class AbstractLogHandler implements LogHandler { Log classLog = AnnotationUtil.getAnnotation(targetClass, Log.class); if (null != classLog && CharSequenceUtil.isNotBlank(classLog.module())) { logRecord.setModule(classLog.module()); + return; } // 例如:@Tag(name = "部门管理") -> 部门管理 Tag classTag = AnnotationUtil.getAnnotation(targetClass, Tag.class);