修改分布式光伏概览-部门监测点信息bug
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_generation_user
|
||||
@@ -42,7 +42,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_distributionarea
|
||||
@@ -52,7 +52,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
) UNION ALL
|
||||
@@ -63,7 +63,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
)
|
||||
@@ -95,7 +95,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_generation_user
|
||||
@@ -105,7 +105,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_distributionarea
|
||||
@@ -115,7 +115,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
) UNION ALL
|
||||
@@ -126,7 +126,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
)
|
||||
@@ -160,7 +160,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_generation_user
|
||||
@@ -170,7 +170,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_distributionarea
|
||||
@@ -180,7 +180,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
) UNION ALL
|
||||
@@ -191,7 +191,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
)
|
||||
@@ -236,7 +236,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id,org_id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_generation_user
|
||||
@@ -246,7 +246,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
) UNION ALL
|
||||
( SELECT id,org_id, Operation_Id, Power_Station_Id, Line_Id FROM pms_power_distributionarea
|
||||
@@ -256,7 +256,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
) UNION ALL
|
||||
@@ -267,7 +267,7 @@
|
||||
<foreach collection="orgIds" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
AND Is_Up_To_Grid = 1 AND STATUS = 1
|
||||
AND STATUS = 1
|
||||
</where>
|
||||
|
||||
)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
pm.Powerr_Id,
|
||||
pm.Terminal_Id,
|
||||
pm.Voltage_Level,
|
||||
psm.capacity,
|
||||
IFNULL(psm.capacity,0) as capacity,
|
||||
ps.Longitude,
|
||||
ps.Latitude
|
||||
FROM
|
||||
|
||||
@@ -57,7 +57,8 @@ public class OverviewServiceImpl implements OverviewService {
|
||||
DicDataTypeEnum.LINE_SORT.getCode()).getData();
|
||||
|
||||
//获取部门数据
|
||||
List<String> deptListCode = getDeptListCode(param.getId());
|
||||
List<DeptDTO> data = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData();
|
||||
List<String> deptListCode = data.stream().map(DeptDTO::getCode).collect(Collectors.toList());
|
||||
if(CollectionUtil.isNotEmpty(deptListCode)){
|
||||
|
||||
List<OverviewVO.MonitorObject> overviewVOS = overviewMapper.selectYoY(deptListCode, param);
|
||||
@@ -125,7 +126,8 @@ public class OverviewServiceImpl implements OverviewService {
|
||||
public List<OverviewVO.AlarmVO> getAlarmProportion(OverviewParam.OverviewDateParam param) {
|
||||
List<OverviewVO.AlarmVO> alarmVOS=new ArrayList<>();
|
||||
//获取部门数据
|
||||
List<String> deptListCode = getDeptListCode(param.getId());
|
||||
List<DeptDTO> deptDTOS = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData();
|
||||
List<String> deptListCode = deptDTOS.stream().map(DeptDTO::getCode).collect(Collectors.toList());
|
||||
DictData data = dicDataFeignClient.getDicDataByCode(DicDataEnum.DISTRIBUTION_POINT.getCode()).getData();
|
||||
|
||||
//获取监测点类别集合(配网1-2-3类监测点)
|
||||
|
||||
@@ -167,10 +167,10 @@ public class SpecialAnalysisServiceImpl implements SpecialAnalysisService {
|
||||
for (DictData notData : notMeasurementList) {
|
||||
wiringTypeDetail = new SpecialAnalysisMonitorVO.WiringTypeDetail();
|
||||
wiringTypeDetail.setConnetGroupWay(notData.getId());
|
||||
wiringTypeDetail.setNum("0");
|
||||
wiringTypeDetail.setRateAvg("0");
|
||||
wiringTypeDetail.setRate95("0");
|
||||
wiringTypeDetail.setRate99("0");
|
||||
wiringTypeDetail.setNum(0);
|
||||
wiringTypeDetail.setRateAvg(0);
|
||||
wiringTypeDetail.setRate95(0);
|
||||
wiringTypeDetail.setRate99(0);
|
||||
wiringTypeRailway.add(wiringTypeDetail);
|
||||
}
|
||||
if (CollUtil.isNotEmpty(wiringTypeRailway)) {
|
||||
|
||||
Reference in New Issue
Block a user