前置联调

This commit is contained in:
hzj
2025-05-15 09:44:17 +08:00
parent e886c6caa8
commit 6e7a55cb93
3 changed files with 13 additions and 1 deletions

View File

@@ -58,9 +58,10 @@
<select id="getMonitorDetail" resultType="com.njcn.device.biz.pojo.dto.LineDevGetDTO"> <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 from pq_line a
inner join pq_line_detail b on a.id=b.id 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} where a.id = #{monitorId}
</select> </select>
<select id="getLineDetailByIds" resultType="com.njcn.device.pq.pojo.po.LineDetail"> <select id="getLineDetailByIds" resultType="com.njcn.device.pq.pojo.po.LineDetail">

View File

@@ -138,6 +138,12 @@ public class EventDetailServiceImpl extends ServiceImpl<EventDetailMapper, RmpEv
rmpEventDetailPO.setPhase(deatilDTO.getPhase()); rmpEventDetailPO.setPhase(deatilDTO.getPhase());
rmpEventDetailPO.setWavePath(deatilDTO.getWavePath()); rmpEventDetailPO.setWavePath(deatilDTO.getWavePath());
rmpEventDetailPO.setEventDescribe(" "); 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)); String severity = EventUtil.getYzd(deatilDTO.getDuration().floatValue(),(deatilDTO.getAmplitude().floatValue()/100));
rmpEventDetailPO.setSeverity(Double.valueOf(severity)); rmpEventDetailPO.setSeverity(Double.valueOf(severity));
rmpEventDetailPO.setCreateTime(LocalDateTime.now()); rmpEventDetailPO.setCreateTime(LocalDateTime.now());

View File

@@ -411,6 +411,11 @@ public enum DicDataEnum {
* 暂降原因 * 暂降原因
*/ */
SHORT_TROUBLE("短路故障", "Short_Trouble"), SHORT_TROUBLE("短路故障", "Short_Trouble"),
TRANSFORMER_EXCITATION("变压器激磁", "Transformer_Excitation"),
RESON_REST("其他", "Reson_Rest"),
LARGE_INDUCTION("大型感应电动机启动", "Large_Induction"),
VOLTAGE_DISTURBANCE("电压扰动", "Voltage_Disturbance"),
/** /**
* 暂降类型 * 暂降类型