1.修改冀北日曲线bug

This commit is contained in:
wr
2023-08-16 10:47:49 +08:00
parent 500e4e3444
commit 49e939c550

View File

@@ -386,9 +386,9 @@ public class StatationStatServiceImpl extends ServiceImpl<StatationStatMapper, S
.eq(Monitor::getPowerrId, subID)
.eq(Monitor::getVoltageLevel, voltageLevel)
);
if (CollUtil.isEmpty(list)) {
// String lineId = list.get(0).getLineId();
addCurves(null,type,curves);
if (CollUtil.isNotEmpty(list)) {
String lineId = list.get(0).getLineId();
addCurves(lineId, type, curves);
} else {
List<PmsMonitorBaseDTO> disMonitorAllList = distributionMonitorMapper.getDisMonitorAllList(subID, 1);
@@ -398,7 +398,9 @@ public class StatationStatServiceImpl extends ServiceImpl<StatationStatMapper, S
addCurves(monitorId, type, curves);
}
}
if(CollUtil.isNotEmpty(curves)){
curves.sort(Comparator.comparing(r -> r.getTime()));
}
return curves;
}
@@ -429,6 +431,7 @@ public class StatationStatServiceImpl extends ServiceImpl<StatationStatMapper, S
/**
* 对象添加
*
* @param LineID 监测点id ff2d9674c1f1ecce7f33a5bf17fc4f2d
* @param type 0=谐波 1=总有功
* @param curves 初始集合