谐波畸变bug修复&&区域统计bug修复
This commit is contained in:
@@ -87,7 +87,7 @@ public class AreaAnalysisServiceImpl implements AreaAnalysisService {
|
||||
List<String> dicIdsDouble = dicTypeList.stream().filter(item->item.getName().contains("双相接地")).map(DictData::getId).collect(Collectors.toList());
|
||||
Map<String, List<String>> stringListMap = new HashMap<>();
|
||||
stringListMap.put("单相接地",dicIdsOne);
|
||||
stringListMap.put("双相接地",dicIdsDouble);
|
||||
stringListMap.put("两相接地",dicIdsDouble);
|
||||
stringListMap.put("三相短路",dicIdsThree);
|
||||
stringListMap.put("相间故障",dicIdsXi);
|
||||
stringListMap.put("未知",dicIdsOther);
|
||||
@@ -217,7 +217,7 @@ public class AreaAnalysisServiceImpl implements AreaAnalysisService {
|
||||
Integer allCount = 0;
|
||||
for (Map.Entry<String, List<String>> stringListEntry : stringListMap.entrySet()) {
|
||||
List<String> value = stringListEntry.getValue();
|
||||
Integer count = Math.toIntExact(reasons.stream().filter(x -> value.contains(x)).count());
|
||||
Integer count = Math.toIntExact(reasons.stream().filter(x -> value.contains(x.getAdvanceType())).count());
|
||||
AreaAnalysisVO.Children allType = new AreaAnalysisVO.Children();
|
||||
allType.setName(stringListEntry.getKey());
|
||||
allType.setValue(count);
|
||||
|
||||
Reference in New Issue
Block a user