diff --git a/cutejava-springboot3/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java b/cutejava-springboot3/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java index 6e36dfed..4732829c 100644 --- a/cutejava-springboot3/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java +++ b/cutejava-springboot3/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java @@ -52,18 +52,16 @@ public class OperationLogAspect { private SystemOperationLogMapper systemOperationLogMapper; @Around("@annotation(operationLog)") - public Object operationLogCatch(ProceedingJoinPoint joinPoint, OperationLog operationLog) - throws Throwable { - return handleLog(joinPoint, operationLog); + public Object operationLogCatch(ProceedingJoinPoint joinPoint, OperationLog operationLog) throws Throwable { + return this.handleLog(joinPoint, operationLog); } - private Object handleLog(ProceedingJoinPoint joinPoint, OperationLog annotation) - throws Throwable { + private Object handleLog(ProceedingJoinPoint joinPoint, OperationLog annotation) throws Throwable { TimeInterval timeInterval = new TimeInterval(); try { Object result = joinPoint.proceed(); long interval = timeInterval.interval(); - SystemOperationLogTb record = getOperationLogTb(joinPoint, annotation, interval); + SystemOperationLogTb record = this.getOperationLogTb(joinPoint, annotation, interval); ThreadUtil.execAsync( () -> { try { @@ -75,7 +73,7 @@ public class OperationLogAspect { return result; } catch (Throwable exception) { long interval = timeInterval.interval(); - SystemOperationLogTb record = getOperationLogTb(joinPoint, annotation, interval); + SystemOperationLogTb record = this.getOperationLogTb(joinPoint, annotation, interval); record.setExceptionDetail(ExceptionUtil.stacktraceToString(exception)); ThreadUtil.execAsync( () -> { diff --git a/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java b/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java index 3da5fd45..93f443fd 100644 --- a/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java +++ b/cutejava/cutejava-module-system/src/main/java/cn/odboy/system/framework/operalog/OperationLogAspect.java @@ -52,18 +52,16 @@ public class OperationLogAspect { private SystemOperationLogMapper systemOperationLogMapper; @Around("@annotation(operationLog)") - public Object operationLogCatch(ProceedingJoinPoint joinPoint, OperationLog operationLog) - throws Throwable { - return handleLog(joinPoint, operationLog); + public Object operationLogCatch(ProceedingJoinPoint joinPoint, OperationLog operationLog) throws Throwable { + return this.handleLog(joinPoint, operationLog); } - private Object handleLog(ProceedingJoinPoint joinPoint, OperationLog annotation) - throws Throwable { + private Object handleLog(ProceedingJoinPoint joinPoint, OperationLog annotation) throws Throwable { TimeInterval timeInterval = new TimeInterval(); try { Object result = joinPoint.proceed(); long interval = timeInterval.interval(); - SystemOperationLogTb record = getOperationLogTb(joinPoint, annotation, interval); + SystemOperationLogTb record = this.getOperationLogTb(joinPoint, annotation, interval); ThreadUtil.execAsync( () -> { try { @@ -75,7 +73,7 @@ public class OperationLogAspect { return result; } catch (Throwable exception) { long interval = timeInterval.interval(); - SystemOperationLogTb record = getOperationLogTb(joinPoint, annotation, interval); + SystemOperationLogTb record = this.getOperationLogTb(joinPoint, annotation, interval); record.setExceptionDetail(ExceptionUtil.stacktraceToString(exception)); ThreadUtil.execAsync( () -> { @@ -89,8 +87,7 @@ public class OperationLogAspect { } } - private SystemOperationLogTb getOperationLogTb( - ProceedingJoinPoint joinPoint, OperationLog annotation, long executeTime) { + private SystemOperationLogTb getOperationLogTb(ProceedingJoinPoint joinPoint, OperationLog annotation, long executeTime) { MethodSignature signature = (MethodSignature) joinPoint.getSignature(); String bizName = annotation.bizName(); if (StrUtil.isBlank(bizName)) {