mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-19 21:45:06 +08:00
完成操作日志的存储
This commit is contained in:
@ -272,7 +272,7 @@ public class OperateLogAspect {
|
||||
return ((MethodSignature) joinPoint.getSignature()).getMethod().getDeclaringClass().getAnnotation(annotationClass);
|
||||
}
|
||||
|
||||
private static Map<String, Object> obtainMethodArgs(ProceedingJoinPoint joinPoint) {
|
||||
private static String obtainMethodArgs(ProceedingJoinPoint joinPoint) {
|
||||
// TODO 提升:参数脱敏和忽略
|
||||
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
|
||||
String[] argNames = methodSignature.getParameterNames();
|
||||
@ -285,7 +285,7 @@ public class OperateLogAspect {
|
||||
// 被忽略时,标记为 ignore 字符串,避免和 null 混在一起
|
||||
args.put(argName, !isIgnoreArgs(argValue) ? argValue : "[ignore]");
|
||||
}
|
||||
return args;
|
||||
return JSON.toJSONString(argValues);
|
||||
}
|
||||
|
||||
private static String obtainResultData(Object result) {
|
||||
|
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* 该包是技术组件,每个子包,代表一个组件。每个组件包括两部分:
|
||||
* 1. core 包:是该组件的核心分装
|
||||
* 2. config 包:是该组件基于 Spring 的配置
|
||||
*
|
||||
* 技术组件,也分成两类:
|
||||
* 1. 框架组件:和我们熟悉的 MyBatis、Redis 等等的拓展
|
||||
* 2. 业务组件:和业务相关的组件的封装,例如说数据字典、操作日志等等。
|
||||
*/
|
||||
package cn.iocoder.dashboard.framework;
|
Reference in New Issue
Block a user