|
|
|
@ -10,6 +10,7 @@ import org.dromara.common.mybatis.core.page.PageQuery; |
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Service |
|
|
|
@ -18,9 +19,21 @@ public class ScanDataSituationServiceImpl implements IScanDataSituationService { |
|
|
|
|
|
|
|
private final ScanDataSituationMapper scanDataSituationMapper; |
|
|
|
|
|
|
|
/** |
|
|
|
* 构建分页对象:排序统一由 XML 中的 orderByColumn 白名单控制。 |
|
|
|
* 清空 MyBatis-Plus 的 OrderItem,避免 PageQuery 把驼峰列名转成下划线列名后, |
|
|
|
* 在 SQL 里再追加一个排序字段(如 order by xzzf_count asc, xzzfCount asc)。 |
|
|
|
*/ |
|
|
|
private <T> Page<T> buildPage(PageQuery pageQuery) { |
|
|
|
Page<T> page = pageQuery.build(); |
|
|
|
// 排序只由 XML 中的 orderByColumn 白名单决定,清空 MP 的 OrderItem
|
|
|
|
page.setOrders(new ArrayList<>()); |
|
|
|
return page; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<ScanDataSituationVo> selectScanDataSituationAreaPageList(PageQuery pageQuery, ScanDataSituationBo bo) { |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationAreaPageList(pageQuery.build(),bo); |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationAreaPageList(buildPage(pageQuery),bo); |
|
|
|
return TableDataInfo.build(page); |
|
|
|
} |
|
|
|
|
|
|
|
@ -31,14 +44,14 @@ public class ScanDataSituationServiceImpl implements IScanDataSituationService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<ScanDataSituationVo> selectScanDataSituationAreaDetailsPageList(PageQuery pageQuery, ScanDataSituationBo bo) { |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationAreaDetailsPageList(pageQuery.build(),bo); |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationAreaDetailsPageList(buildPage(pageQuery),bo); |
|
|
|
return TableDataInfo.build(page); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<ScanDataSituationVo> selectScanDataSituationDomainPageList(PageQuery pageQuery, ScanDataSituationBo bo) { |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationDomainPageList(pageQuery.build(),bo); |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationDomainPageList(buildPage(pageQuery),bo); |
|
|
|
return TableDataInfo.build(page); |
|
|
|
} |
|
|
|
|
|
|
|
@ -49,7 +62,7 @@ public class ScanDataSituationServiceImpl implements IScanDataSituationService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public TableDataInfo<ScanDataSituationVo> selectScanDataSituationDomainDetailsPageList(PageQuery pageQuery, ScanDataSituationBo bo) { |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationDomainDetailsPageList(pageQuery.build(),bo); |
|
|
|
Page<ScanDataSituationVo> page=scanDataSituationMapper.selectScanDataSituationDomainDetailsPageList(buildPage(pageQuery),bo); |
|
|
|
return TableDataInfo.build(page); |
|
|
|
} |
|
|
|
} |
|
|
|
|