From 17cbd5b9f612f3d29f02f2722357ea334ede2b41 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 31 七月 2025 19:17:43 +0800
Subject: [PATCH] 提交再次试验需要将检验项目的结论重置为null
---
framework/src/main/java/com/yuanchu/mom/config/LogConfig.java | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/framework/src/main/java/com/yuanchu/mom/config/LogConfig.java b/framework/src/main/java/com/yuanchu/mom/config/LogConfig.java
index 036238d..3246661 100644
--- a/framework/src/main/java/com/yuanchu/mom/config/LogConfig.java
+++ b/framework/src/main/java/com/yuanchu/mom/config/LogConfig.java
@@ -39,10 +39,18 @@
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());
- systemLogMapper.insert(systemLog);
+ systemLog.setMethodName(value);
+ try {
+ systemLogMapper.insert(systemLog);
+ }catch (Exception e){
+ throw new ErrorException("璇烽噸鏂扮櫥褰�");
+ }
}
return HandlerInterceptor.super.preHandle(request, response, handler);
}
@@ -55,5 +63,6 @@
@Override
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
HandlerInterceptor.super.afterCompletion(request, response, handler, ex);
+
}
}
--
Gitblit v1.9.3