tj
2025-03-20 5ac56c82c48200f5bfd82917d04279ff502a906f
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();
    }
}