预处理污区

This commit is contained in:
2023-04-25 14:18:12 +08:00
parent f55d4da1be
commit a81285874e

View File

@@ -743,7 +743,6 @@ public class PollutionServiceImpl implements PollutionService {
for (PollutionDTO pollution : pollutionList) { for (PollutionDTO pollution : pollutionList) {
for (PublicDTO item : harmonicVoltageList) { for (PublicDTO item : harmonicVoltageList) {
if (Objects.equals(pollution.getLineId(),item.getId())){ if (Objects.equals(pollution.getLineId(),item.getId())){
pollution.setVAll(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue());
pollution.setVHarmonic(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue()); pollution.setVHarmonic(BigDecimal.valueOf(item.getData()).setScale(4, RoundingMode.HALF_UP).doubleValue());
} }