|
|
@ -108,7 +108,7 @@ public class WindHomeServiceImpl implements WindHomeService { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public WindScoreVo KPIs(Long deptId) { |
|
|
|
public WindScoreVo KPIs(Long deptId) { |
|
|
|
// 查询风电站
|
|
|
|
// 查询风电站
|
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(deptId,Collections.singletonList(HomePageConstant.WIND_POWER),HomePageConstant.HYDROPOWER_SERVETYPE); |
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(deptId,Collections.singletonList(HomePageConstant.WIND_POWER),HomePageConstant.HYDROPOWER_SERVETYPE,true); |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
return new WindScoreVo(); |
|
|
|
return new WindScoreVo(); |
|
|
|
} |
|
|
|
} |
|
|
@ -209,7 +209,7 @@ public class WindHomeServiceImpl implements WindHomeService { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<WindSubordinateVo> subordinate(Long deptId) { |
|
|
|
public List<WindSubordinateVo> subordinate(Long deptId) { |
|
|
|
Map<Dept, List<StationEntity>> areas = areaService.areaOrStaion(deptId, Collections.singletonList(HomePageConstant.WIND_POWER)); |
|
|
|
Map<Dept, List<StationEntity>> areas = areaService.areaOrStaion(deptId, Collections.singletonList(HomePageConstant.WIND_POWER),true); |
|
|
|
if (MapUtils.isEmpty(areas)) { |
|
|
|
if (MapUtils.isEmpty(areas)) { |
|
|
|
return new ArrayList<>(); |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
} |
|
|
@ -351,7 +351,7 @@ public class WindHomeServiceImpl implements WindHomeService { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<WindAreaVo> app_area(Long deptId) { |
|
|
|
public List<WindAreaVo> app_area(Long deptId) { |
|
|
|
// 区域数据查询
|
|
|
|
// 区域数据查询
|
|
|
|
Map<Dept, List<StationEntity>> areas = areaService.areaOrStaion(deptId, Collections.singletonList(HomePageConstant.WIND_POWER)); |
|
|
|
Map<Dept, List<StationEntity>> areas = areaService.areaOrStaion(deptId, Collections.singletonList(HomePageConstant.WIND_POWER),true); |
|
|
|
if (MapUtils.isEmpty(areas)) { |
|
|
|
if (MapUtils.isEmpty(areas)) { |
|
|
|
return new ArrayList<>(); |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
} |
|
|
@ -482,7 +482,7 @@ public class WindHomeServiceImpl implements WindHomeService { |
|
|
|
|
|
|
|
|
|
|
|
private void windFill(WindAreaDutyVo areaDuty,Long deptId) { |
|
|
|
private void windFill(WindAreaDutyVo areaDuty,Long deptId) { |
|
|
|
// 查询站点
|
|
|
|
// 查询站点
|
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(deptId,Collections.singletonList(HomePageConstant.WIND_POWER),HomePageConstant.HYDROPOWER_SERVETYPE); |
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(deptId,Collections.singletonList(HomePageConstant.WIND_POWER),HomePageConstant.HYDROPOWER_SERVETYPE,true); |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -797,7 +797,7 @@ public class WindHomeServiceImpl implements WindHomeService { |
|
|
|
* @param subordinate |
|
|
|
* @param subordinate |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void stations(WindSubordinateAppVo subordinate) { |
|
|
|
private void stations(WindSubordinateAppVo subordinate) { |
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(subordinate.getDeptId(),Collections.singletonList(HomePageConstant.WIND_POWER),HomePageConstant.HYDROPOWER_SERVETYPE); |
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(subordinate.getDeptId(),Collections.singletonList(HomePageConstant.WIND_POWER),HomePageConstant.HYDROPOWER_SERVETYPE,true); |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|