This commit is contained in:
wr
2024-09-27 16:21:45 +08:00
parent ae440613fb
commit 98cf051fab

View File

@@ -656,11 +656,11 @@ public class GridServiceImpl implements IGridService {
//谐波电流
List<Integer> list2 = getList(2,25,"getIharm",item2);
Integer maxValue2 = list2.stream().max(Integer::compareTo).orElse(null);
qualifiedDetail.setUHarm(Objects.isNull(maxValue2) ? null : PubUtils.doubleRound(2,100.0 - (maxValue2*100.0 / item2.getAllTime())));
qualifiedDetail.setIHarm(Objects.isNull(maxValue2) ? null : PubUtils.doubleRound(2,100.0 - (maxValue2*100.0 / item2.getAllTime())));
//间谐波电压
List<Integer> list3 = getList(1,16,"getInuharm",item2);
Integer maxValue3 = list3.stream().max(Integer::compareTo).orElse(null);
qualifiedDetail.setUHarm(Objects.isNull(maxValue3) ? null : PubUtils.doubleRound(2,100.0 - (maxValue3*100.0 / item2.getAllTime())));
qualifiedDetail.setInuHarm(Objects.isNull(maxValue3) ? null : PubUtils.doubleRound(2,100.0 - (maxValue3*100.0 / item2.getAllTime())));
qualifiedDetail.setINeg(PubUtils.doubleRound(2, 100.0 - (item2.getINegOvertime() * 100.0 / item2.getAllTime())));
}
if (item2.getFlickerAllTime() > 0) {