Merge branch 'master' of http://192.168.1.22:3000/root/pqs
This commit is contained in:
@@ -137,7 +137,7 @@ public class PqTypicalSourceCreatePOServiceImpl extends ServiceImpl<PqTypicalSou
|
|||||||
.eq(PqTypicalSourceCreatePO::getComputeDate,uploadParam.getTime())
|
.eq(PqTypicalSourceCreatePO::getComputeDate,uploadParam.getTime())
|
||||||
.in(PqTypicalSourceCreatePO::getId,uploadParam.getList())
|
.in(PqTypicalSourceCreatePO::getId,uploadParam.getList())
|
||||||
.isNotNull(PqTypicalSourceCreatePO::getComputeDate)
|
.isNotNull(PqTypicalSourceCreatePO::getComputeDate)
|
||||||
.in(PqTypicalSourceCreatePO::getStatisticalLevel,Stream.of("3","4").collect(Collectors.toList()))
|
.in(PqTypicalSourceCreatePO::getStatisticalLevel,Stream.of("3","4","5").collect(Collectors.toList()))
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
//未指定数据上送,则将所有未上送的数据,上送上去
|
//未指定数据上送,则将所有未上送的数据,上送上去
|
||||||
@@ -145,7 +145,7 @@ public class PqTypicalSourceCreatePOServiceImpl extends ServiceImpl<PqTypicalSou
|
|||||||
list = this.lambdaQuery()
|
list = this.lambdaQuery()
|
||||||
.eq(PqTypicalSourceCreatePO::getComputeDate,uploadParam.getTime())
|
.eq(PqTypicalSourceCreatePO::getComputeDate,uploadParam.getTime())
|
||||||
.isNotNull(PqTypicalSourceCreatePO::getComputeDate)
|
.isNotNull(PqTypicalSourceCreatePO::getComputeDate)
|
||||||
.in(PqTypicalSourceCreatePO::getStatisticalLevel, Stream.of("3","4").collect(Collectors.toList()))
|
.in(PqTypicalSourceCreatePO::getStatisticalLevel, Stream.of("3","4","5").collect(Collectors.toList()))
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ public class PointStatisticalDataServiceImpl extends ServiceImpl<RUploadPointSta
|
|||||||
else {
|
else {
|
||||||
list = this.lambdaQuery()
|
list = this.lambdaQuery()
|
||||||
.eq(RUploadPointStatisticalDataD::getComputeDate,param.getTime())
|
.eq(RUploadPointStatisticalDataD::getComputeDate,param.getTime())
|
||||||
.in(RUploadPointStatisticalDataD::getStatisticalLevel, Stream.of("3","4").collect(Collectors.toList()))
|
.in(RUploadPointStatisticalDataD::getStatisticalLevel, Stream.of("3","4","5").collect(Collectors.toList()))
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -130,11 +130,11 @@ public class REvaluationDataServiceImpl extends ServiceImpl<RUploadEvaluationDat
|
|||||||
.in(RUploadEvaluationDataD::getId, param.getList())
|
.in(RUploadEvaluationDataD::getId, param.getList())
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
//未指定数据上送,则上送省级数据(包含日、月数据)
|
//未指定数据上送,则上送省市县级数据(包含日、月数据)
|
||||||
else {
|
else {
|
||||||
list = this.lambdaQuery()
|
list = this.lambdaQuery()
|
||||||
.eq(RUploadEvaluationDataD::getComputeDate, param.getTime())
|
.eq(RUploadEvaluationDataD::getComputeDate, param.getTime())
|
||||||
.in(RUploadEvaluationDataD::getStatisticalLevel, Stream.of("3", "4").collect(Collectors.toList()))
|
.in(RUploadEvaluationDataD::getStatisticalLevel, Stream.of("3", "4","5").collect(Collectors.toList()))
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,9 +82,7 @@ public class RSubstationStatisticalDataServiceImpl extends ServiceImpl<RUploadSu
|
|||||||
else {
|
else {
|
||||||
list = this.lambdaQuery()
|
list = this.lambdaQuery()
|
||||||
.eq(RUploadSubstationStatisticalDataD::getStatisticalDate,param.getTime())
|
.eq(RUploadSubstationStatisticalDataD::getStatisticalDate,param.getTime())
|
||||||
//.eq(RUploadSubstationStatisticalDataD::getCityId,"")
|
|
||||||
.isNotNull(RUploadSubstationStatisticalDataD::getComputeDate)
|
.isNotNull(RUploadSubstationStatisticalDataD::getComputeDate)
|
||||||
.eq(RUploadSubstationStatisticalDataD::getCountyId,"")
|
|
||||||
.list();
|
.list();
|
||||||
}
|
}
|
||||||
//以尺寸100分片
|
//以尺寸100分片
|
||||||
|
|||||||
@@ -315,6 +315,7 @@ public class RUploadPointStatisticalDataDServiceImpl extends MppServiceImpl<RUpl
|
|||||||
List<RUploadPointStatisticalDataD> resultPO = new ArrayList<>();
|
List<RUploadPointStatisticalDataD> resultPO = new ArrayList<>();
|
||||||
pmsRunStatisticMap.forEach((deptId,item)->{
|
pmsRunStatisticMap.forEach((deptId,item)->{
|
||||||
PvTerminalTreeVO dept = deptMap.get(deptId);
|
PvTerminalTreeVO dept = deptMap.get(deptId);
|
||||||
|
|
||||||
//跳过全国这个单位
|
//跳过全国这个单位
|
||||||
if (Objects.equals(Integer.parseInt(UploadEnum.NJCN_DEPT_LEVEL_1.getCode()), dept.getLevel())) {
|
if (Objects.equals(Integer.parseInt(UploadEnum.NJCN_DEPT_LEVEL_1.getCode()), dept.getLevel())) {
|
||||||
return;
|
return;
|
||||||
@@ -322,7 +323,13 @@ public class RUploadPointStatisticalDataDServiceImpl extends MppServiceImpl<RUpl
|
|||||||
List<String> runMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getRunMonitorIds())?item.getRunMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
List<String> runMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getRunMonitorIds())?item.getRunMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
||||||
List<String> onlineMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getOnlineMonitorIds())?item.getOnlineMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
List<String> onlineMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getOnlineMonitorIds())?item.getOnlineMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
||||||
List<String> runDevIds = Arrays.stream(StrUtil.isNotBlank(item.getRunDevIds())?item.getRunDevIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
List<String> runDevIds = Arrays.stream(StrUtil.isNotBlank(item.getRunDevIds())?item.getRunDevIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
||||||
List<LineDTO> lineDTOList = commLineClient.getLineDetailBatch(onlineMonitorIds).getData();
|
|
||||||
|
List<LineDTO> lineDTOList;
|
||||||
|
if(CollUtil.isNotEmpty(onlineMonitorIds)) {
|
||||||
|
lineDTOList = commLineClient.getLineDetailBatch(onlineMonitorIds).getData();
|
||||||
|
}else {
|
||||||
|
lineDTOList = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
List<RStatIntegrityD> deptRStatIntegrityDList = rStatIntegrityDList.stream().filter(it->runMonitorIds.contains(it.getLineIndex())).collect(toList());
|
List<RStatIntegrityD> deptRStatIntegrityDList = rStatIntegrityDList.stream().filter(it->runMonitorIds.contains(it.getLineIndex())).collect(toList());
|
||||||
|
|
||||||
@@ -461,7 +468,12 @@ public class RUploadPointStatisticalDataDServiceImpl extends MppServiceImpl<RUpl
|
|||||||
List<String> runMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getRunMonitorIds())?item.getRunMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
List<String> runMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getRunMonitorIds())?item.getRunMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
||||||
List<String> onlineMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getOnlineMonitorIds())?item.getOnlineMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
List<String> onlineMonitorIds = Arrays.stream(StrUtil.isNotBlank(item.getOnlineMonitorIds())?item.getOnlineMonitorIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
||||||
List<String> runDevIds = Arrays.stream(StrUtil.isNotBlank(item.getRunDevIds())?item.getRunDevIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
List<String> runDevIds = Arrays.stream(StrUtil.isNotBlank(item.getRunDevIds())?item.getRunDevIds().split(StrUtil.COMMA):new String[]{}).collect(toList());
|
||||||
List<LineDTO> lineDTOList = commLineClient.getLineDetailBatch(onlineMonitorIds).getData();
|
List<LineDTO> lineDTOList;
|
||||||
|
if(CollUtil.isNotEmpty(onlineMonitorIds)) {
|
||||||
|
lineDTOList = commLineClient.getLineDetailBatch(onlineMonitorIds).getData();
|
||||||
|
}else {
|
||||||
|
lineDTOList = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
List<RStatIntegrityD> deptRStatIntegrityDList = rStatIntegrityDList.stream().filter(it->runMonitorIds.contains(it.getLineIndex())).collect(toList());
|
List<RStatIntegrityD> deptRStatIntegrityDList = rStatIntegrityDList.stream().filter(it->runMonitorIds.contains(it.getLineIndex())).collect(toList());
|
||||||
int due = deptRStatIntegrityDList.stream().mapToInt(RStatIntegrityD::getDueTime).sum();
|
int due = deptRStatIntegrityDList.stream().mapToInt(RStatIntegrityD::getDueTime).sum();
|
||||||
|
|||||||
@@ -284,12 +284,6 @@ public class SupvReportM {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 各类型本年监督数量
|
|
||||||
*/
|
|
||||||
@TableField(exist = false)
|
|
||||||
private Integer planYearCountNum;
|
private Integer planYearCountNum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -154,6 +154,8 @@ public class SupvReportMServiceImpl extends MppServiceImpl<SupvReportMMapper, Su
|
|||||||
//供电电压本月前统计
|
//供电电压本月前统计
|
||||||
List<ProcessPublicDTO> processPublicDTODianYaListM = this.baseMapper.statisticPlanReport(firstYearDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
List<ProcessPublicDTO> processPublicDTODianYaListM = this.baseMapper.statisticPlanReport(firstYearDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
||||||
List<ProcessPublicDTO> processPublicDTODianYaListAll = this.baseMapper.statisticPlanReport(firstYearDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
List<ProcessPublicDTO> processPublicDTODianYaListAll = this.baseMapper.statisticPlanReport(firstYearDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
||||||
|
List<ProcessPublicDTO> processPublicDTODianYaYearPlan = this.baseMapper.statisticPlanReportYear(firstYearDay,endYearDay,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
||||||
|
|
||||||
|
|
||||||
//供电电压问题数量
|
//供电电压问题数量
|
||||||
List<ProcessPublicDTO> processPublicDTODianYaGanM = this.baseMapper.statisticQueReport(firstDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
List<ProcessPublicDTO> processPublicDTODianYaGanM = this.baseMapper.statisticQueReport(firstDay,endTime,mapStatistic.get(DicDataEnum.Technical_Super.getCode()).getId(),null,null);
|
||||||
@@ -196,7 +198,9 @@ public class SupvReportMServiceImpl extends MppServiceImpl<SupvReportMMapper, Su
|
|||||||
if(deptGetBase.getDeptLevel() !=2 && deptGetBase.getDeptLevel() !=3 && deptGetBase.getDeptLevel() !=4){
|
if(deptGetBase.getDeptLevel() !=2 && deptGetBase.getDeptLevel() !=3 && deptGetBase.getDeptLevel() !=4){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
//月累计监督数量
|
||||||
Integer all = 0;
|
Integer all = 0;
|
||||||
|
Integer yearAll = 0;
|
||||||
SupvReportM supvReportM = new SupvReportM();
|
SupvReportM supvReportM = new SupvReportM();
|
||||||
supvReportM.setStatisticsDate(timeId.with(TemporalAdjusters.firstDayOfMonth()));
|
supvReportM.setStatisticsDate(timeId.with(TemporalAdjusters.firstDayOfMonth()));
|
||||||
supvReportM.setStatisticsDept(deptGetBase.getUnitId());
|
supvReportM.setStatisticsDept(deptGetBase.getUnitId());
|
||||||
@@ -204,66 +208,64 @@ public class SupvReportMServiceImpl extends MppServiceImpl<SupvReportMMapper, Su
|
|||||||
List<String> childrenDeptList = deptGetBase.getUnitChildrenList();
|
List<String> childrenDeptList = deptGetBase.getUnitChildrenList();
|
||||||
if(CollUtil.isNotEmpty(childrenDeptList)){
|
if(CollUtil.isNotEmpty(childrenDeptList)){
|
||||||
supvReportM.setConvertMonthSupvNum(dealData(childrenDeptList,processPublicDTOListM));
|
supvReportM.setConvertMonthSupvNum(dealData(childrenDeptList,processPublicDTOListM));
|
||||||
|
|
||||||
|
|
||||||
supvReportM.setConvertYearSupvNum(dealData(childrenDeptList,processPublicDTOListY));
|
supvReportM.setConvertYearSupvNum(dealData(childrenDeptList,processPublicDTOListY));
|
||||||
|
yearAll+=supvReportM.getConvertYearSupvNum();
|
||||||
|
|
||||||
Integer a = dealData(childrenDeptList,processPublicDTOListAll);
|
supvReportM.setConvertTotalSupvNum(dealData(childrenDeptList,processPublicDTOListAll));
|
||||||
supvReportM.setConvertTotalSupvNum(a);
|
all+=supvReportM.getConvertTotalSupvNum();
|
||||||
all+=a;
|
|
||||||
supvReportM.setEnergyMonthSupvNum(dealData(childrenDeptList,processPublicDTOListNewM));
|
supvReportM.setEnergyMonthSupvNum(dealData(childrenDeptList,processPublicDTOListNewM));
|
||||||
supvReportM.setEnergyYearSupvNum(dealData(childrenDeptList,processPublicDTOListNewY));
|
|
||||||
|
|
||||||
Integer b = dealData(childrenDeptList,processPublicDTOListNewAll);
|
|
||||||
supvReportM.setEnergyTotalSupvNum(b);
|
supvReportM.setEnergyYearSupvNum(dealData(childrenDeptList,processPublicDTOListNewY));
|
||||||
all+=b;
|
yearAll+=supvReportM.getEnergyYearSupvNum();
|
||||||
|
|
||||||
|
|
||||||
|
supvReportM.setEnergyTotalSupvNum(dealData(childrenDeptList,processPublicDTOListNewAll));
|
||||||
|
all+=supvReportM.getEnergyTotalSupvNum();
|
||||||
|
|
||||||
|
|
||||||
supvReportM.setEnergyMonthSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZM));
|
supvReportM.setEnergyMonthSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZM));
|
||||||
supvReportM.setEnergyYearSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZY));
|
supvReportM.setEnergyYearSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZY));
|
||||||
|
yearAll+=supvReportM.getEnergyYearSupvNewNum();
|
||||||
supvReportM.setEnergyTotalSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZAll));
|
supvReportM.setEnergyTotalSupvNewNum(dealData(childrenDeptList,processPublicDTOListNewZAll));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
supvReportM.setConvertMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesM));
|
supvReportM.setConvertMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesM));
|
||||||
supvReportM.setConvertTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesAll));
|
supvReportM.setConvertTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesAll));
|
||||||
|
|
||||||
supvReportM.setConvertMonthReformNum(dealData(childrenDeptList,processPublicDTOQesYesM));
|
supvReportM.setConvertMonthReformNum(dealData(childrenDeptList,processPublicDTOQesYesM));
|
||||||
supvReportM.setConvertTotalReformNum(dealData(childrenDeptList,processPublicDTOQesYesAll));
|
supvReportM.setConvertTotalReformNum(dealData(childrenDeptList,processPublicDTOQesYesAll));
|
||||||
|
|
||||||
supvReportM.setEnergyMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesNewM));
|
supvReportM.setEnergyMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesNewM));
|
||||||
supvReportM.setEnergyTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesNewAll));
|
supvReportM.setEnergyTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesNewAll));
|
||||||
|
|
||||||
supvReportM.setEnergyMonthReformNum(dealData(childrenDeptList,processPublicDTOQesNewYesM));
|
supvReportM.setEnergyMonthReformNum(dealData(childrenDeptList,processPublicDTOQesNewYesM));
|
||||||
supvReportM.setEnergyTotalReformNum(dealData(childrenDeptList,processPublicDTOQesNewYesAll));
|
supvReportM.setEnergyTotalReformNum(dealData(childrenDeptList,processPublicDTOQesNewYesAll));
|
||||||
|
|
||||||
supvReportM.setEnergyMonthQuesNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiM));
|
supvReportM.setEnergyMonthQuesNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiM));
|
||||||
supvReportM.setEnergyTotalQuesNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiAll));
|
supvReportM.setEnergyTotalQuesNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiAll));
|
||||||
|
|
||||||
supvReportM.setEnergyMonthReformNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiYesM));
|
supvReportM.setEnergyMonthReformNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiYesM));
|
||||||
supvReportM.setEnergyTotalReformNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiYesAll));
|
supvReportM.setEnergyTotalReformNewNum(dealData(childrenDeptList,processPublicDTOQesNewGaiYesAll));
|
||||||
|
|
||||||
//敏感用户
|
//敏感用户
|
||||||
supvReportM.setSensitiveMonthSupvNum(dealData(childrenDeptList,processPublicDTOMingGanM));
|
supvReportM.setSensitiveMonthSupvNum(dealData(childrenDeptList,processPublicDTOMingGanM));
|
||||||
supvReportM.setSensitiveYearSupvNum(dealData(childrenDeptList,processPublicDTOMingGanY));
|
supvReportM.setSensitiveYearSupvNum(dealData(childrenDeptList,processPublicDTOMingGanY));
|
||||||
|
yearAll+=supvReportM.getSensitiveYearSupvNum();
|
||||||
Integer c = dealData(childrenDeptList,processPublicDTOMingGanAll);
|
supvReportM.setSensitiveTotalSupvNum(dealData(childrenDeptList,processPublicDTOMingGanAll));
|
||||||
supvReportM.setSensitiveTotalSupvNum(c);
|
all+=supvReportM.getSensitiveTotalSupvNum();
|
||||||
all+=c;
|
|
||||||
|
|
||||||
supvReportM.setSensitiveMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesMingGanM));
|
supvReportM.setSensitiveMonthQuesNum(dealData(childrenDeptList,processPublicDTOQesMingGanM));
|
||||||
supvReportM.setSensitiveTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesMingGanAll));
|
supvReportM.setSensitiveTotalQuesNum(dealData(childrenDeptList,processPublicDTOQesMingGanAll));
|
||||||
|
|
||||||
supvReportM.setSensitiveMonthReformNum(dealData(childrenDeptList,processPublicDTOQesMingGanYesM));
|
supvReportM.setSensitiveMonthReformNum(dealData(childrenDeptList,processPublicDTOQesMingGanYesM));
|
||||||
supvReportM.setSensitiveTotalReformNum(dealData(childrenDeptList,processPublicDTOQesMingGanYesAll));
|
supvReportM.setSensitiveTotalReformNum(dealData(childrenDeptList,processPublicDTOQesMingGanYesAll));
|
||||||
|
|
||||||
//电压
|
//电压
|
||||||
supvReportM.setPowerMonthPlanNum(dealData(childrenDeptList,processPublicDTODianYaListM));
|
supvReportM.setPowerMonthPlanNum(dealData(childrenDeptList,processPublicDTODianYaListM));
|
||||||
Integer d = dealData(childrenDeptList,processPublicDTODianYaListAll);
|
supvReportM.setPowerMonthConductedNum(dealData(childrenDeptList,processPublicDTODianYaListAll));
|
||||||
supvReportM.setPowerMonthConductedNum(d);
|
all+=supvReportM.getPowerMonthConductedNum();
|
||||||
|
Integer dd = dealData(childrenDeptList,processPublicDTODianYaYearPlan);
|
||||||
|
yearAll+=dd;
|
||||||
supvReportM.setPowerMonthQuesNum(dealData(childrenDeptList,processPublicDTODianYaGanM));
|
supvReportM.setPowerMonthQuesNum(dealData(childrenDeptList,processPublicDTODianYaGanM));
|
||||||
supvReportM.setPowerTotalQuesNum(dealData(childrenDeptList,processPublicDTODianYaGanAll));
|
supvReportM.setPowerTotalQuesNum(dealData(childrenDeptList,processPublicDTODianYaGanAll));
|
||||||
supvReportM.setPowerMonthReformNum(dealData(childrenDeptList,processPublicDTODianYaGanYesM));
|
supvReportM.setPowerMonthReformNum(dealData(childrenDeptList,processPublicDTODianYaGanYesM));
|
||||||
supvReportM.setPowerTotalReformNum(dealData(childrenDeptList,processPublicDTODianYaGanYesAll));
|
supvReportM.setPowerTotalReformNum(dealData(childrenDeptList,processPublicDTODianYaGanYesAll));
|
||||||
all+=d;
|
|
||||||
|
|
||||||
//电容器组
|
//电容器组
|
||||||
supvReportM.setCapacitorYearSupvNum(dealData(childrenDeptList,processPublicYearDTOS));
|
supvReportM.setCapacitorYearSupvNum(dealData(childrenDeptList,processPublicYearDTOS));
|
||||||
@@ -274,6 +276,7 @@ public class SupvReportMServiceImpl extends MppServiceImpl<SupvReportMMapper, Su
|
|||||||
supvReportM.setCapacitorMonthReformNum(dealData(childrenDeptList,processPublicDTOCapacitorGanYesM));
|
supvReportM.setCapacitorMonthReformNum(dealData(childrenDeptList,processPublicDTOCapacitorGanYesM));
|
||||||
supvReportM.setCapacitorTotalReformNum(dealData(childrenDeptList,processPublicDTOCapacitorYesAll));
|
supvReportM.setCapacitorTotalReformNum(dealData(childrenDeptList,processPublicDTOCapacitorYesAll));
|
||||||
all+=supvReportM.getCapacitorTotalSupvNum();
|
all+=supvReportM.getCapacitorTotalSupvNum();
|
||||||
|
yearAll+=supvReportM.getCapacitorYearSupvNum();
|
||||||
//评估报告
|
//评估报告
|
||||||
supvReportM.setAppraisalReportYearSupvNum(dealData(childrenDeptList,processPublicYearDTOAppraisalS));
|
supvReportM.setAppraisalReportYearSupvNum(dealData(childrenDeptList,processPublicYearDTOAppraisalS));
|
||||||
supvReportM.setAppraisalReportMonthSupvNum(dealData(childrenDeptList,processPublicDTOAppraisalListM));
|
supvReportM.setAppraisalReportMonthSupvNum(dealData(childrenDeptList,processPublicDTOAppraisalListM));
|
||||||
@@ -283,7 +286,9 @@ public class SupvReportMServiceImpl extends MppServiceImpl<SupvReportMMapper, Su
|
|||||||
supvReportM.setAppraisalReportMonthReformNum(dealData(childrenDeptList,processPublicDTOAppraisalGanYesM));
|
supvReportM.setAppraisalReportMonthReformNum(dealData(childrenDeptList,processPublicDTOAppraisalGanYesM));
|
||||||
supvReportM.setAppraisalReportTotalReformNum(dealData(childrenDeptList,processPublicDTOAppraisalYesAll));
|
supvReportM.setAppraisalReportTotalReformNum(dealData(childrenDeptList,processPublicDTOAppraisalYesAll));
|
||||||
all+=supvReportM.getAppraisalReportTotalSupvNum();
|
all+=supvReportM.getAppraisalReportTotalSupvNum();
|
||||||
|
yearAll+=supvReportM.getAppraisalReportYearSupvNum();
|
||||||
|
|
||||||
|
supvReportM.setPlanYearCountNum(yearAll);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,13 +356,7 @@ public class SupvReportMServiceImpl extends MppServiceImpl<SupvReportMMapper, Su
|
|||||||
List<SupvReportM> records = page.getRecords();
|
List<SupvReportM> records = page.getRecords();
|
||||||
if(CollUtil.isNotEmpty(records)){
|
if(CollUtil.isNotEmpty(records)){
|
||||||
for (SupvReportM record : records) {
|
for (SupvReportM record : records) {
|
||||||
record.setPlanYearCountNum(record.getConvertYearSupvNum()+
|
|
||||||
record.getEnergyYearSupvNum()+
|
|
||||||
record.getEnergyYearSupvNewNum()+
|
|
||||||
record.getSensitiveYearSupvNum()+
|
|
||||||
record.getCapacitorYearSupvNum()+
|
|
||||||
record.getAppraisalReportYearSupvNum()
|
|
||||||
);
|
|
||||||
record.setPlanCountNum(record.getConvertTotalSupvNum()+
|
record.setPlanCountNum(record.getConvertTotalSupvNum()+
|
||||||
record.getEnergyTotalSupvNum()+
|
record.getEnergyTotalSupvNum()+
|
||||||
record.getEnergyTotalSupvNewNum()+
|
record.getEnergyTotalSupvNewNum()+
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public enum SupervisionResponseEnum {
|
|||||||
* A00550 ~ A00649
|
* A00550 ~ A00649
|
||||||
*/
|
*/
|
||||||
SUPERVISION_COMMON_ERROR("A00550","监督管理模块异常"),
|
SUPERVISION_COMMON_ERROR("A00550","监督管理模块异常"),
|
||||||
NO_POWER("A00550","很抱歉,该流程不是您创建的,没有权限操作!")
|
NO_POWER("A00550","不能操作非自己创建的任务!")
|
||||||
;
|
;
|
||||||
|
|
||||||
private final String code;
|
private final String code;
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ public class WarningLeafletVO extends BaseEntity implements Serializable{
|
|||||||
*/
|
*/
|
||||||
private String problemId;
|
private String problemId;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单子类型:1:预警单;2:告警单
|
* 单子类型:1:预警单;2:告警单
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollectionUtil;
|
|||||||
import cn.hutool.core.date.DatePattern;
|
import cn.hutool.core.date.DatePattern;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.date.LocalDateTimeUtil;
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
@@ -163,7 +164,20 @@ public class WarningLeafletServiceImpl extends ServiceImpl<WarningLeafletMapper,
|
|||||||
.eq("supervision_warning_leaflet.state",DataStateEnum.ENABLE.getCode())
|
.eq("supervision_warning_leaflet.state",DataStateEnum.ENABLE.getCode())
|
||||||
.eq("supervision_warning_leaflet.leaflet_type", LeafletTypeEnum.ALARM.getCode())
|
.eq("supervision_warning_leaflet.leaflet_type", LeafletTypeEnum.ALARM.getCode())
|
||||||
.orderByDesc("supervision_warning_leaflet.Update_Time");
|
.orderByDesc("supervision_warning_leaflet.Update_Time");
|
||||||
return this.baseMapper.alarmPageData(new Page<>(PageFactory.getPageNum(warningLeafletQueryParam), PageFactory.getPageSize(warningLeafletQueryParam)), warningLeafletVOQueryWrapper);
|
Page<WarningLeafletVO> warningLeafletVOPage = this.baseMapper.alarmPageData(new Page<>(PageFactory.getPageNum(warningLeafletQueryParam), PageFactory.getPageSize(warningLeafletQueryParam)), warningLeafletVOQueryWrapper);
|
||||||
|
//目前仅知道现场测试超标会有附件
|
||||||
|
List<WarningLeafletVO> records = warningLeafletVOPage.getRecords();
|
||||||
|
if(CollectionUtil.isNotEmpty(records)){
|
||||||
|
for (WarningLeafletVO record : records) {
|
||||||
|
if(record.getProblemType().equals(ProblemTypeEnum.SITE_TEST.getCode()) && StrUtil.isNotBlank(record.getProblemId())){
|
||||||
|
//查询到现场测试超标附件地址
|
||||||
|
SupervisionGeneralSurveyPlanPO generalSurveyPlanPO = supervisionGeneralSurveyPlanPOService.getById(record.getProblemId());
|
||||||
|
record.setProblemPath(generalSurveyPlanPO.getFilePath());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return warningLeafletVOPage;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -211,10 +211,13 @@ public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IR
|
|||||||
return this.baseMapper.selectList(queryWrapper);
|
return this.baseMapper.selectList(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色类型 0:超级管理员;1:管理员;2:普通用户
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<Role> simpleList() {
|
public List<Role> simpleList() {
|
||||||
LambdaQueryWrapper<Role> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<Role> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
lambdaQueryWrapper.select(Role::getId,Role::getName).eq(Role::getState,DataStateEnum.ENABLE.getCode());
|
lambdaQueryWrapper.select(Role::getId, Role::getName).eq(Role::getState, DataStateEnum.ENABLE.getCode()).eq(Role::getType, 2);
|
||||||
return this.baseMapper.selectList(lambdaQueryWrapper);
|
return this.baseMapper.selectList(lambdaQueryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user