补充功率因数

This commit is contained in:
caozehui
2026-07-06 08:43:07 +08:00
parent be318b2b54
commit 4d52e9c820
8 changed files with 65 additions and 31 deletions

View File

@@ -104,7 +104,6 @@ public class SimAndDigNonHarmonicServiceImpl extends ServiceImpl<SimAndDigNonHar
Map<String, List<RawResultDataVO>> info = new LinkedHashMap<>(2);
Map<String, SimAndDigNonHarmonicResult> adTypeMap = SimAndDigHarmonicResults.stream()
.sorted(Comparator.comparing(SimAndDigNonHarmonicResult::getResultFlag))
.collect(Collectors.toMap(SimAndDigNonHarmonicResult::getAdType, Function.identity(), (a, b) -> a, LinkedHashMap::new));
List<DictTree> dictTreeById = dictTreeService.getDictTreeById(new ArrayList<>(adTypeMap.keySet()));
Map<String, DictTree> dictTreeByName = dictTreeById.stream().collect(Collectors.toMap(DictTree::getId, Function.identity()));

View File

@@ -90,10 +90,14 @@ public class StorageUtil {
*/
case "P":
case "W":
case "VARW":
case "VAW":
unit = "W";
break;
case "VARW":
unit = "Var";
break;
case "VAW":
unit = "VA";
break;
/**
* 闪变
*/