|
|
|
@ -1563,6 +1563,12 @@ public class HydropowerServiceImpl implements HydropowerService {
|
|
|
|
|
List<HydropowerUnitRealVo> reals = (List<HydropowerUnitRealVo>) redisTemplate.opsForValue().get(load_hydropower_unit_real_key); |
|
|
|
|
return stations.stream().map(station -> { |
|
|
|
|
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.setDeptName(station.getName()); |
|
|
|
|
// 天气区间
|
|
|
|
@ -1615,7 +1621,7 @@ public class HydropowerServiceImpl implements HydropowerService {
|
|
|
|
|
// 负荷单位
|
|
|
|
|
hydropower.setLoadUnit("kW"); |
|
|
|
|
return hydropower; |
|
|
|
|
}).collect(Collectors.toList()); |
|
|
|
|
}).sorted(Comparator.comparing(AppHydropowerStationVo::getSort)).collect(Collectors.toList()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|