diff --git a/pqs-process/process-api/src/main/java/com/njcn/process/pojo/po/SupvReportM.java b/pqs-process/process-api/src/main/java/com/njcn/process/pojo/po/SupvReportM.java index c90694fbe..9e25e0dad 100644 --- a/pqs-process/process-api/src/main/java/com/njcn/process/pojo/po/SupvReportM.java +++ b/pqs-process/process-api/src/main/java/com/njcn/process/pojo/po/SupvReportM.java @@ -284,12 +284,6 @@ public class SupvReportM { - - - /** - * 各类型本年监督数量 - */ - @TableField(exist = false) private Integer planYearCountNum; /** diff --git a/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvReportMServiceImpl.java b/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvReportMServiceImpl.java index 7c79523ad..b052ab9ad 100644 --- a/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvReportMServiceImpl.java +++ b/pqs-process/process-boot/src/main/java/com/njcn/process/service/impl/SupvReportMServiceImpl.java @@ -154,6 +154,8 @@ public class SupvReportMServiceImpl extends MppServiceImpl processPublicDTODianYaListM = this.baseMapper.statisticPlanReport(firstYearDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null); List processPublicDTODianYaListAll = this.baseMapper.statisticPlanReport(firstYearDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null); + List processPublicDTODianYaYearPlan = this.baseMapper.statisticPlanReportYear(firstYearDay,endYearDay,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null); + //供电电压问题数量 List processPublicDTODianYaGanM = this.baseMapper.statisticQueReport(firstDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null); @@ -196,7 +198,9 @@ public class SupvReportMServiceImpl extends MppServiceImpl childrenDeptList = deptGetBase.getUnitChildrenList(); if(CollUtil.isNotEmpty(childrenDeptList)){ supvReportM.setConvertMonthSupvNum(dealData(childrenDeptList,processPublicDTOListM)); + + supvReportM.setConvertYearSupvNum(dealData(childrenDeptList,processPublicDTOListY)); + yearAll+=supvReportM.getConvertYearSupvNum(); - Integer a = dealData(childrenDeptList,processPublicDTOListAll); - supvReportM.setConvertTotalSupvNum(a); - all+=a; + supvReportM.setConvertTotalSupvNum(dealData(childrenDeptList,processPublicDTOListAll)); + all+=supvReportM.getConvertTotalSupvNum(); supvReportM.setEnergyMonthSupvNum(dealData(childrenDeptList,processPublicDTOListNewM)); - supvReportM.setEnergyYearSupvNum(dealData(childrenDeptList,processPublicDTOListNewY)); - Integer b = dealData(childrenDeptList,processPublicDTOListNewAll); - supvReportM.setEnergyTotalSupvNum(b); - all+=b; + + supvReportM.setEnergyYearSupvNum(dealData(childrenDeptList,processPublicDTOListNewY)); + yearAll+=supvReportM.getEnergyYearSupvNum(); + + + supvReportM.setEnergyTotalSupvNum(dealData(childrenDeptList,processPublicDTOListNewAll)); + all+=supvReportM.getEnergyTotalSupvNum(); + supvReportM.setEnergyMonthSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZM)); supvReportM.setEnergyYearSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZY)); + yearAll+=supvReportM.getEnergyYearSupvNewNum(); supvReportM.setEnergyTotalSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZAll)); - - - supvReportM.setConvertMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesM)); supvReportM.setConvertTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesAll)); - supvReportM.setConvertMonthReformNum(dealData(childrenDeptList,processPublicDTOQesYesM)); supvReportM.setConvertTotalReformNum(dealData(childrenDeptList,processPublicDTOQesYesAll)); supvReportM.setEnergyMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesNewM)); supvReportM.setEnergyTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesNewAll)); - supvReportM.setEnergyMonthReformNum(dealData(childrenDeptList,processPublicDTOQesNewYesM)); supvReportM.setEnergyTotalReformNum(dealData(childrenDeptList,processPublicDTOQesNewYesAll)); - supvReportM.setEnergyMonthQuesNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiM)); supvReportM.setEnergyTotalQuesNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiAll)); - supvReportM.setEnergyMonthReformNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiYesM)); supvReportM.setEnergyTotalReformNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiYesAll)); //敏感用户 supvReportM.setSensitiveMonthSupvNum(dealData(childrenDeptList,processPublicDTOMingGanM)); supvReportM.setSensitiveYearSupvNum(dealData(childrenDeptList,processPublicDTOMingGanY)); - - Integer c = dealData(childrenDeptList,processPublicDTOMingGanAll); - supvReportM.setSensitiveTotalSupvNum(c); - all+=c; - + yearAll+=supvReportM.getSensitiveYearSupvNum(); + supvReportM.setSensitiveTotalSupvNum(dealData(childrenDeptList,processPublicDTOMingGanAll)); + all+=supvReportM.getSensitiveTotalSupvNum(); supvReportM.setSensitiveMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesMingGanM)); supvReportM.setSensitiveTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesMingGanAll)); - supvReportM.setSensitiveMonthReformNum(dealData(childrenDeptList,processPublicDTOQesMingGanYesM)); supvReportM.setSensitiveTotalReformNum(dealData(childrenDeptList,processPublicDTOQesMingGanYesAll)); //电压 supvReportM.setPowerMonthPlanNum(dealData(childrenDeptList,processPublicDTODianYaListM)); - Integer d = dealData(childrenDeptList,processPublicDTODianYaListAll); - supvReportM.setPowerMonthConductedNum(d); - + supvReportM.setPowerMonthConductedNum(dealData(childrenDeptList,processPublicDTODianYaListAll)); + all+=supvReportM.getPowerMonthConductedNum(); + Integer dd = dealData(childrenDeptList,processPublicDTODianYaYearPlan); + yearAll+=dd; supvReportM.setPowerMonthQuesNum(dealData(childrenDeptList,processPublicDTODianYaGanM)); supvReportM.setPowerTotalQuesNum(dealData(childrenDeptList,processPublicDTODianYaGanAll)); supvReportM.setPowerMonthReformNum(dealData(childrenDeptList,processPublicDTODianYaGanYesM)); supvReportM.setPowerTotalReformNum(dealData(childrenDeptList,processPublicDTODianYaGanYesAll)); - all+=d; + //电容器组 supvReportM.setCapacitorYearSupvNum(dealData(childrenDeptList,processPublicYearDTOS)); @@ -274,6 +276,7 @@ public class SupvReportMServiceImpl extends MppServiceImpl records = page.getRecords(); if(CollUtil.isNotEmpty(records)){ for (SupvReportM record : records) { - record.setPlanYearCountNum(record.getConvertYearSupvNum()+ - record.getEnergyYearSupvNum()+ - record.getEnergyYearSupvNewNum()+ - record.getSensitiveYearSupvNum()+ - record.getCapacitorYearSupvNum()+ - record.getAppraisalReportYearSupvNum() - ); + record.setPlanCountNum(record.getConvertTotalSupvNum()+ record.getEnergyTotalSupvNum()+ record.getEnergyTotalSupvNewNum()+