李林
2024-03-13 d6aa4c4cdc45bcbcf1cf1601449175ac4bfdcb92
framework/src/main/java/com/yuanchu/mom/config/LogConfig.java
@@ -39,9 +39,13 @@
            if (annotation == null) {
                return HandlerInterceptor.super.preHandle(request, response, handler);
            }
            String value = annotation.value();
            if (value.contains("获取")||value.contains("查询")){
                return HandlerInterceptor.super.preHandle(request, response, handler);
            }
            SystemLog systemLog = new SystemLog();
            systemLog.setMethod(method.getName());
            systemLog.setMethodName(annotation.value());
            systemLog.setMethodName(value);
            systemLogMapper.insert(systemLog);
        }
        return HandlerInterceptor.super.preHandle(request, response, handler);