前置联调
This commit is contained in:
@@ -58,9 +58,10 @@
|
||||
|
||||
|
||||
<select id="getMonitorDetail" resultType="com.njcn.device.biz.pojo.dto.LineDevGetDTO">
|
||||
select a.id pointId,a.name pointName,b.Time_Interval timeInterval
|
||||
select a.id pointId,a.name pointName,b.Time_Interval timeInterval,bus.pid devId
|
||||
from pq_line a
|
||||
inner join pq_line_detail b on a.id=b.id
|
||||
inner join pq_line bus on a.pid =bus.id
|
||||
where a.id = #{monitorId}
|
||||
</select>
|
||||
<select id="getLineDetailByIds" resultType="com.njcn.device.pq.pojo.po.LineDetail">
|
||||
|
||||
@@ -138,6 +138,12 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
|
||||
rmpEventDetailPO.setPhase(deatilDTO.getPhase());
|
||||
rmpEventDetailPO.setWavePath(deatilDTO.getWavePath());
|
||||
rmpEventDetailPO.setEventDescribe(" ");
|
||||
//默认都是其他
|
||||
DictData reason = dicDataFeignClient.getDicDataByCode(DicDataEnum.RESON_REST.getCode()).getData();
|
||||
DictData advanceType = dicDataFeignClient.getDicDataByCode(DicDataEnum.TYPE_REST.getCode()).getData();
|
||||
|
||||
rmpEventDetailPO.setAdvanceReason(reason.getId());
|
||||
rmpEventDetailPO.setAdvanceType(advanceType.getId());
|
||||
String severity = EventUtil.getYzd(deatilDTO.getDuration().floatValue(),(deatilDTO.getAmplitude().floatValue()/100));
|
||||
rmpEventDetailPO.setSeverity(Double.valueOf(severity));
|
||||
rmpEventDetailPO.setCreateTime(LocalDateTime.now());
|
||||
|
||||
@@ -411,6 +411,11 @@ public enum DicDataEnum {
|
||||
* 暂降原因
|
||||
*/
|
||||
SHORT_TROUBLE("短路故障", "Short_Trouble"),
|
||||
TRANSFORMER_EXCITATION("变压器激磁", "Transformer_Excitation"),
|
||||
RESON_REST("其他", "Reson_Rest"),
|
||||
LARGE_INDUCTION("大型感应电动机启动", "Large_Induction"),
|
||||
VOLTAGE_DISTURBANCE("电压扰动", "Voltage_Disturbance"),
|
||||
|
||||
|
||||
/**
|
||||
* 暂降类型
|
||||
|
||||
Reference in New Issue
Block a user