| | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private ConfigSecurityMapper configSecurityMapper; |
| | | |
| | | @Resource |
| | | private ConfigSecurityMapperEx configSecurityMapperEx; |
| | | |
| | | @Resource |
| | | private LogService logService; |
| | |
| | | if (StringUtils.isNotEmpty(configSecurityQuery.getType())) { |
| | | criteria.andTypeEqualTo(configSecurityQuery.getType()); |
| | | } |
| | | if (!ObjectUtils.isEmpty(configSecurityQuery.getStatus())) { |
| | | criteria.andStatusEqualTo(configSecurityQuery.getStatus()); |
| | | } |
| | | |
| | | example.setOrderByClause(" create_time desc "); |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<ConfigSecurity> getEnabledListAll() { |
| | | |
| | | return configSecurityMapperEx.getEnabledListAll(); |
| | | } |
| | | |
| | | |
| | | } |