From 6c235963d6fc46b38ea59d9b19c6519b892e080b Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 16 May 2022 09:42:06 +0800 Subject: [PATCH] 20220516 逻辑删除,更新字段IS_Delete字段为已删除,默认为空,删除后其余信息从查询中过滤了 --- zq-erp/src/main/java/com/matrix/core/exception/GlobleExceptionResolver.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/core/exception/GlobleExceptionResolver.java b/zq-erp/src/main/java/com/matrix/core/exception/GlobleExceptionResolver.java index d6ca19c..f8037ae 100644 --- a/zq-erp/src/main/java/com/matrix/core/exception/GlobleExceptionResolver.java +++ b/zq-erp/src/main/java/com/matrix/core/exception/GlobleExceptionResolver.java @@ -8,6 +8,7 @@ import com.matrix.system.common.bean.SysUsers; import com.matrix.system.common.dao.ProjExceptionDao; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework.web.servlet.ModelAndView; @@ -27,6 +28,14 @@ public class GlobleExceptionResolver implements HandlerExceptionResolver { private static final String TRUE = "true"; + + @Value("${is_open_exception_report}") + String isOpenExceptionReport; + + + @Value("${showExcptionUrl}") + String showExcptionUrl; + /** * 忽略一些特定的异常 @@ -78,15 +87,14 @@ * @email 935090232@qq.com * @date 2018年5月9日 */ - public static void sendNoticeToAdmin(Exception ex, String mdc, String requestUrl) { + public void sendNoticeToAdmin(Exception ex, String mdc, String requestUrl) { String simpleMsg = ex.getMessage(); if (!EXCLUDE_EXCEPTION.contains(simpleMsg)) { - String isOpenDingdingExceptionNotice = PropertiesUtil.getString("is_open_exception_report"); - String showExcptionUrl = PropertiesUtil.getString("showExcptionUrl"); + String isOpenDingdingExceptionNotice =isOpenExceptionReport; if (isOpenDingdingExceptionNotice != null && TRUE.equals(isOpenDingdingExceptionNotice)) { -- Gitblit v1.9.1