|
|
@ -1563,6 +1563,12 @@ public class HydropowerServiceImpl implements HydropowerService { |
|
|
|
List<HydropowerUnitRealVo> reals = (List<HydropowerUnitRealVo>) redisTemplate.opsForValue().get(load_hydropower_unit_real_key); |
|
|
|
List<HydropowerUnitRealVo> reals = (List<HydropowerUnitRealVo>) redisTemplate.opsForValue().get(load_hydropower_unit_real_key); |
|
|
|
return stations.stream().map(station -> { |
|
|
|
return stations.stream().map(station -> { |
|
|
|
AppHydropowerStationVo hydropower = new AppHydropowerStationVo(); |
|
|
|
AppHydropowerStationVo hydropower = new AppHydropowerStationVo(); |
|
|
|
|
|
|
|
R<Dept> dept = sysClient.getDept(station.getRefDept()); |
|
|
|
|
|
|
|
if(dept.isSuccess() && !ObjectUtil.isEmpty(dept.getData())){ |
|
|
|
|
|
|
|
hydropower.setSort(dept.getData().getSort()); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
hydropower.setSort(1); |
|
|
|
|
|
|
|
} |
|
|
|
hydropower.setDeptId(station.getRefDept()); |
|
|
|
hydropower.setDeptId(station.getRefDept()); |
|
|
|
hydropower.setDeptName(station.getName()); |
|
|
|
hydropower.setDeptName(station.getName()); |
|
|
|
// 天气区间
|
|
|
|
// 天气区间
|
|
|
@ -1615,7 +1621,7 @@ public class HydropowerServiceImpl implements HydropowerService { |
|
|
|
// 负荷单位
|
|
|
|
// 负荷单位
|
|
|
|
hydropower.setLoadUnit("kW"); |
|
|
|
hydropower.setLoadUnit("kW"); |
|
|
|
return hydropower; |
|
|
|
return hydropower; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
}).sorted(Comparator.comparing(AppHydropowerStationVo::getSort)).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|