| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.entity.dict.DataDictionary; |
| | | import com.ycl.mapper.dict.DataDictionaryMapper; |
| | | import com.ycl.mapper.dict.DataDictionaryMapper; |
| | | import com.ycl.service.dict.IDataDictionaryService; |
| | | import com.ycl.service.redis.RedisService; |
| | | import com.ycl.utils.common.LiveTimeMillisecond; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Page listIllegalBuildingSettings(Page<DataDictionary> dataDictionaryPage, String keyWord) { |
| | | public Page listIllegalBuildingSettings(Integer current, Integer size, String keyWord) { |
| | | Page<DataDictionary> dataDictionaryPage = new Page<>(); |
| | | dataDictionaryPage.setSize(size); |
| | | dataDictionaryPage.setCurrent(current); |
| | | Page<DataDictionary> dataDictionaryPageList = dataDictionaryMapper.listDataDictionaryPage(dataDictionaryPage, keyWord); |
| | | return dataDictionaryPageList; |
| | | } |
| | | |
| | | @Override |
| | | public Page listViolations(Page<ViolationSettingVO> dataDictionaryPage, String keyWord) { |
| | | public Page listViolations(Integer current, Integer size, String keyWord) { |
| | | Page<ViolationSettingVO> dataDictionaryPage = new Page<>(); |
| | | dataDictionaryPage.setSize(size); |
| | | dataDictionaryPage.setCurrent(current); |
| | | dataDictionaryPage.setOptimizeCountSql(false); |
| | | Page<ViolationSettingVO> dataDictionaryPageList = dataDictionaryMapper.listViolationPage(dataDictionaryPage, keyWord); |
| | | return dataDictionaryPageList; |
| | |
| | | public List<DataDictionaryVo> queryTreeType(String typeCode, Integer level) { |
| | | return baseMapper.queryTreeType(typeCode, level); |
| | | } |
| | | |
| | | @Override |
| | | public List<DataDictionary> queryByRemark(String remark) { |
| | | LambdaQueryWrapper<DataDictionary> queryWrapper = new LambdaQueryWrapper<DataDictionary>() |
| | | .eq(DataDictionary::getRemark, remark); |
| | | |
| | | List<DataDictionary> dataDictionary = dataDictionaryMapper.selectList(queryWrapper); |
| | | return dataDictionary; |
| | | } |
| | | } |