1.谐波溯源算法bug

This commit is contained in:
2025-10-17 15:32:54 +08:00
parent e0cfcbccf8
commit 0e1605d9b3
7 changed files with 25 additions and 13 deletions

View File

@@ -18,14 +18,17 @@
b.logic_next nodeNext,
d.Algo_Describe type
FROM
pqs_tflgploy ploy,
pqs_tflgployass a,
pqs_tflgass b,
pqs_transformer c,
sys_dict_data d
WHERE
a.tf_index = b.tf_index
ploy.TP_Index = a.TP_Index
and a.tf_index = b.tf_index
AND b.tf_index = c.tf_index
and c.Wiring = d.id
and ploy.Status = 1
</select>
</mapper>

View File

@@ -78,14 +78,6 @@ public class EventRelevantAnalysisServiceImpl extends ServiceImpl<RmpEventAdvanc
public void processEvents(LocalDateTime startTime, LocalDateTime endTime, String deptId) {
TimeInterval timeInterval = new TimeInterval();
//获取节点和变压器配置信息
Map<String, Map<String, Integer>> nodeMap1 = getBeforeNodeInfo();
Set<Map.Entry<String, Map<String, Integer>>> nodeSort1 = nodeMap1.entrySet();
System.out.println(nodeSort1);
Map<String, EntityMtrans> entityMtransMap1 = getNodeInfo();
Set<Map.Entry<String, EntityMtrans>> setMtrans1 = entityMtransMap1.entrySet();
System.out.println(setMtrans1);
LocalDateTime date = LocalDateTime.now();
HandleEvent handleEvent = new HandleEvent();
@@ -117,6 +109,7 @@ public class EventRelevantAnalysisServiceImpl extends ServiceImpl<RmpEventAdvanc
for (Map.Entry<String, Integer> mm : mapValue) {
for (EntityGroupEvtData groupEvtData : baseList) {
//矩阵只计算短路故障相关的事件,其他事件另行计算
if (groupEvtData.getNodePhysics().equals(mm.getKey()) && dictData.getId().equals(groupEvtData.getSagReason())) {
groupEvtData.setNode(mm.getValue());
list.add(groupEvtData);

View File

@@ -1498,6 +1498,10 @@ public class RespDataServiceImpl extends ServiceImpl<RespDataMapper, RespData> i
param.setLineIds(userList);
List<DataHarmPowerP> dataHarmPList = historyHarmonicService.getHarmonicPData(param);
Map<String, List<DataHarmPowerP>> collect = dataHarmPList.stream().collect(Collectors.groupingBy(DataHarmPowerP::getLineId));
Set<String> lineIds = collect.keySet();
List<DataHarmPowerP> result = new ArrayList<>();
collect.forEach((k,v)->{
LineDetailDataVO lineDetailData = lineService.getLineDetailData(k);