|
|
@@ -3,6 +3,7 @@ package com.hdkj.lt.bf.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.hdkj.lt.base.exception.BusinessException;
|
|
|
+import com.hdkj.lt.base.model.response.PageVO;
|
|
|
import com.hdkj.lt.bf.entity.dto.ReconDetailReqDTO;
|
|
|
import com.hdkj.lt.bf.entity.dto.ReconListReqDTO;
|
|
|
import com.hdkj.lt.bf.entity.dto.ReconPageReqDTO;
|
|
|
@@ -94,7 +95,7 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Page<ReconSwitchSeqVO> getSwitchSeqPage(ReconPageReqDTO reqDTO) {
|
|
|
+ public PageVO<ReconSwitchSeqVO> getSwitchSeqPage(ReconPageReqDTO reqDTO) {
|
|
|
validatePageParam(reqDTO);
|
|
|
|
|
|
// 安全校验从主表获取
|
|
|
@@ -108,10 +109,10 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
.orderByAsc(FhzgReconSwitchSeq::getSeqNo)
|
|
|
);
|
|
|
|
|
|
- Page<ReconSwitchSeqVO> voPage = new Page<>();
|
|
|
+ PageVO<ReconSwitchSeqVO> voPage = new PageVO<>();
|
|
|
voPage.setTotal(resultPage.getTotal());
|
|
|
- voPage.setCurrent(resultPage.getCurrent());
|
|
|
- voPage.setSize(resultPage.getSize());
|
|
|
+ voPage.setPageNum(resultPage.getCurrent());
|
|
|
+ voPage.setPageSize(resultPage.getSize());
|
|
|
voPage.setRecords(resultPage.getRecords().stream()
|
|
|
.map(seq -> buildSwitchSeqVO(seq, safetyCheckPassed))
|
|
|
.collect(Collectors.toList()));
|
|
|
@@ -119,7 +120,7 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Page<ReconFeederCompareVO> getFeederComparePage(ReconPageReqDTO reqDTO) {
|
|
|
+ public PageVO<ReconFeederCompareVO> getFeederComparePage(ReconPageReqDTO reqDTO) {
|
|
|
validatePageParam(reqDTO);
|
|
|
|
|
|
Page<FhzgReconFeederResult> page = new Page<>(reqDTO.getPageNum(), reqDTO.getPageSize());
|
|
|
@@ -129,16 +130,16 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
.orderByAsc(FhzgReconFeederResult::getFeederNo)
|
|
|
);
|
|
|
|
|
|
- Page<ReconFeederCompareVO> voPage = new Page<>();
|
|
|
+ PageVO<ReconFeederCompareVO> voPage = new PageVO<>();
|
|
|
voPage.setTotal(resultPage.getTotal());
|
|
|
- voPage.setCurrent(resultPage.getCurrent());
|
|
|
- voPage.setSize(resultPage.getSize());
|
|
|
+ voPage.setPageNum(resultPage.getCurrent());
|
|
|
+ voPage.setPageSize(resultPage.getSize());
|
|
|
voPage.setRecords(resultPage.getRecords().stream().map(this::buildFeederCompareVO).collect(Collectors.toList()));
|
|
|
return voPage;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Page<ReconLoadpointCompareVO> getLoadpointComparePage(ReconPageReqDTO reqDTO) {
|
|
|
+ public PageVO<ReconLoadpointCompareVO> getLoadpointComparePage(ReconPageReqDTO reqDTO) {
|
|
|
validatePageParam(reqDTO);
|
|
|
|
|
|
Page<FhzgReconVolDetail> page = new Page<>(reqDTO.getPageNum(), reqDTO.getPageSize());
|
|
|
@@ -148,16 +149,16 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
.orderByAsc(FhzgReconVolDetail::getDetailNo)
|
|
|
);
|
|
|
|
|
|
- Page<ReconLoadpointCompareVO> voPage = new Page<>();
|
|
|
+ PageVO<ReconLoadpointCompareVO> voPage = new PageVO<>();
|
|
|
voPage.setTotal(resultPage.getTotal());
|
|
|
- voPage.setCurrent(resultPage.getCurrent());
|
|
|
- voPage.setSize(resultPage.getSize());
|
|
|
+ voPage.setPageNum(resultPage.getCurrent());
|
|
|
+ voPage.setPageSize(resultPage.getSize());
|
|
|
voPage.setRecords(resultPage.getRecords().stream().map(this::buildLoadpointCompareVO).collect(Collectors.toList()));
|
|
|
return voPage;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Page<ReconSwitchCompareVO> getSwitchComparePage(ReconPageReqDTO reqDTO) {
|
|
|
+ public PageVO<ReconSwitchCompareVO> getSwitchComparePage(ReconPageReqDTO reqDTO) {
|
|
|
validatePageParam(reqDTO);
|
|
|
|
|
|
Page<FhzgReconSwitchResultDetail> page = new Page<>(reqDTO.getPageNum(), reqDTO.getPageSize());
|
|
|
@@ -167,10 +168,10 @@ public class ReconQueryServiceImpl implements ReconQueryService {
|
|
|
.orderByAsc(FhzgReconSwitchResultDetail::getDetailNo)
|
|
|
);
|
|
|
|
|
|
- Page<ReconSwitchCompareVO> voPage = new Page<>();
|
|
|
+ PageVO<ReconSwitchCompareVO> voPage = new PageVO<>();
|
|
|
voPage.setTotal(resultPage.getTotal());
|
|
|
- voPage.setCurrent(resultPage.getCurrent());
|
|
|
- voPage.setSize(resultPage.getSize());
|
|
|
+ voPage.setPageNum(resultPage.getCurrent());
|
|
|
+ voPage.setPageSize(resultPage.getSize());
|
|
|
voPage.setRecords(resultPage.getRecords().stream().map(this::buildSwitchCompareVO).collect(Collectors.toList()));
|
|
|
return voPage;
|
|
|
}
|