|
|
|
@ -164,7 +164,7 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
double sum = stationDevices.stream().mapToDouble(EminfoAndEmParamVo::getInstalledCapacity).sum(); |
|
|
|
|
item.setInstalledCapacity(sum); |
|
|
|
|
// 装机容量详情
|
|
|
|
|
List<String> details = stationDevices.stream().map(device-> "[" + device.getName() + " " +device.getInstalledCapacity() +"kW]").collect(Collectors.toList()); |
|
|
|
|
List<String> details = stationDevices.stream().map(device-> "[" + device.getName() + " " + (int) Math.floor(device.getInstalledCapacity()) +"kW]").collect(Collectors.toList()); |
|
|
|
|
item.setDetail(String.join("|",details)); |
|
|
|
|
return item; |
|
|
|
|
}).filter(capacity->Math.abs(capacity.getInstalledCapacity()) > 0).collect(Collectors.toList()); |
|
|
|
|