publish 1.0.5
This commit is contained in:
@@ -3,6 +3,7 @@ package com.tiesheng.core.config.operation;
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.tiesheng.annotation.operation.OperationIgnore;
|
||||
import com.tiesheng.annotation.operation.OperationLog;
|
||||
import com.tiesheng.core.service.CoreLogService;
|
||||
import com.tiesheng.util.ServletKit;
|
||||
@@ -56,11 +57,16 @@ public class OperationAspect {
|
||||
return joinPoint.proceed(joinPoint.getArgs());
|
||||
}
|
||||
|
||||
String title = "", subject = "";
|
||||
String insertKey = "";
|
||||
|
||||
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
||||
Method method = signature.getMethod();
|
||||
|
||||
// 当存在忽略注解时,不添加操作日志
|
||||
if (method.getAnnotation(OperationIgnore.class) != null) {
|
||||
return joinPoint.proceed(joinPoint.getArgs());
|
||||
}
|
||||
|
||||
String title = "", subject = "";
|
||||
String insertKey = "";
|
||||
OperationLog operationLog = method.getAnnotation(OperationLog.class);
|
||||
if (operationLog != null) {
|
||||
title = operationLog.title();
|
||||
|
||||
Reference in New Issue
Block a user