完成专项分析联调

This commit is contained in:
wr
2025-04-09 18:10:59 +08:00
parent 929200c869
commit f54781eb70
2 changed files with 3 additions and 9 deletions

View File

@@ -44,14 +44,13 @@ public class SpThroughServiceImpl extends MppServiceImpl<SpThroughMapper, SpThro
String treeId = dicTreeId(spThroughParam);
DictData dip = dicDataFeignClient.getDicDataByCode(DicDataEnum.VOLTAGE_DIP.getCode()).getData();
if (ObjectUtil.isNotNull(dip)) {
spThroughVO.setHighPressure(eventCount(spThroughParam, treeId, dip) + "");
spThroughVO.setLowPressure(eventCount(spThroughParam, treeId, dip) + "");
}
DictData rise = dicDataFeignClient.getDicDataByCode(DicDataEnum.VOLTAGE_RISE.getCode()).getData();
if (ObjectUtil.isNotNull(rise)) {
spThroughVO.setLowPressure(eventCount(spThroughParam, treeId, rise) + "");
spThroughVO.setHighPressure(eventCount(spThroughParam, treeId, rise) + "");
}
}
return spThroughVO;
}