From 5ac56c82c48200f5bfd82917d04279ff502a906f Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期四, 20 三月 2025 15:06:20 +0800
Subject: [PATCH] 高级安全防护
---
src/main/java/com/jsh/erp/service/configSecurity/impl/ConfigSecurityServiceImpl.java | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/jsh/erp/service/configSecurity/impl/ConfigSecurityServiceImpl.java b/src/main/java/com/jsh/erp/service/configSecurity/impl/ConfigSecurityServiceImpl.java
index 7497e33..13b98bb 100644
--- a/src/main/java/com/jsh/erp/service/configSecurity/impl/ConfigSecurityServiceImpl.java
+++ b/src/main/java/com/jsh/erp/service/configSecurity/impl/ConfigSecurityServiceImpl.java
@@ -7,6 +7,7 @@
import com.jsh.erp.datasource.entities.ConfigSecurity;
import com.jsh.erp.datasource.entities.ConfigSecurityExample;
import com.jsh.erp.datasource.mappers.ConfigSecurityMapper;
+import com.jsh.erp.datasource.mappers.ConfigSecurityMapperEx;
import com.jsh.erp.dto.ConfigSecurityQuery;
import com.jsh.erp.exception.JshException;
import com.jsh.erp.service.account.AccountService;
@@ -17,11 +18,11 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
+import org.springframework.util.ObjectUtils;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.annotation.Resource;
-import java.util.Collections;
import java.util.List;
import java.util.Objects;
@@ -32,6 +33,9 @@
@Resource
private ConfigSecurityMapper configSecurityMapper;
+
+ @Resource
+ private ConfigSecurityMapperEx configSecurityMapperEx;
@Resource
private LogService logService;
@@ -168,6 +172,9 @@
if (StringUtils.isNotEmpty(configSecurityQuery.getType())) {
criteria.andTypeEqualTo(configSecurityQuery.getType());
}
+ if (!ObjectUtils.isEmpty(configSecurityQuery.getStatus())) {
+ criteria.andStatusEqualTo(configSecurityQuery.getStatus());
+ }
example.setOrderByClause(" create_time desc ");
@@ -177,5 +184,11 @@
}
+ @Override
+ public List<ConfigSecurity> getEnabledListAll() {
+
+ return configSecurityMapperEx.getEnabledListAll();
+ }
+
}
--
Gitblit v1.9.3