添加暂态事件id

This commit is contained in:
wr
2023-05-17 20:16:59 +08:00
parent c7b6d4022c
commit b4938a8345
7 changed files with 50 additions and 7 deletions

View File

@@ -347,7 +347,7 @@
<select id="eventLists" resultType="com.njcn.device.pq.pojo.vo.EventVO">
SELECT
ed.start_time "time",pl.`Name` "name",ed.advance_reason reason,ed.advance_type "type",ed.feature_amplitude amplitude,ed.duration
ed.event_id as eventId, ed.start_time "time",pl.`Name` "name",ed.advance_reason reason,ed.advance_type "type",ed.feature_amplitude amplitude,ed.duration
from r_mp_event_detail ed
left join pq_line pl on pl.id = ed.measurement_point_id
<where>

View File

@@ -158,6 +158,7 @@ public class AreaAnalysisServiceImpl implements AreaAnalysisService {
VoltageToleranceCurveDataList voltageToleranceCurve = new VoltageToleranceCurveDataList();
voltageToleranceCurve.setLineId(dto.getLineId());
voltageToleranceCurve.setEventId(dto.getEventId());
voltageToleranceCurve.setPersistTime(dto.getDuration());
voltageToleranceCurve.setEventValue(dto.getFeatureAmplitude());
voltageToleranceCurve.setTime(dto.getStartTime());

View File

@@ -1478,6 +1478,8 @@ public class EventAnalysisServiceImpl implements EventAnalysisService {
eventDetailNew = BeanUtil.copyProperties(eventDetail, EventDetail.class);
//监测点id
eventDetailNew.setLineId(eventDetail.getMeasurementPointId());
//监测点id
eventDetailNew.setEventId(eventDetail.getEventId());
//持续时间
eventDetailNew.setDuration(eventDetail.getDuration());
//特征幅值
@@ -1519,6 +1521,7 @@ public class EventAnalysisServiceImpl implements EventAnalysisService {
VoltageToleranceCurveVO.VoltageToleranceCurveDataList voltageToleranceCurve = new VoltageToleranceCurveVO.VoltageToleranceCurveDataList();
voltageToleranceCurve.setLineId(dto.getLineId());
voltageToleranceCurve.setEventId(dto.getEventId());
voltageToleranceCurve.setPersistTime(dto.getDuration());
voltageToleranceCurve.setEventValue(dto.getFeatureAmplitude()*100);
voltageToleranceCurve.setTime(dto.getStartTime());