添加暂态事件id
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user