1.微调
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user