Commit 6dec50ea authored by suhuiguang's avatar suhuiguang

1.新的告警插入时,设备的所在系统、设备名称、装备定义名称进行更新

parent e26568e8
...@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
action.setStatus(AlarmStatusEnum.HF.getCode()); action.setStatus(AlarmStatusEnum.HF.getCode());
} }
action.setUpdateDate(new Date()); action.setUpdateDate(new Date());
// 更新所在系统,设备可能编辑过 // 更新所在系统,设备可能编辑过,更新所在系统、装备名称、装备定义code
action.setSystemIds(equipmentSpcIndex.getSystemId()); action.setSystemIds(equipmentSpcIndex.getSystemId());
action.setSystemCodes(this.getSystemCodeBySpeId(equipmentSpcIndex.getSystemId())); action.setSystemCodes(this.getSystemCodeBySpeId(equipmentSpcIndex.getSystemId()));
action.setEquipmentSpecificName(equipmentSpcIndex.getEquipmentSpecificName());
action.setEquipmentCode(equipmentSpcIndex.getEquipmentSpecificCode());
// 冗余字段,alarm_log表更新时使用
action.setCode(equipmentSpcIndex.getEquipmentSpecificCode());
equipmentSpecificAlarms.add(action); equipmentSpecificAlarms.add(action);
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment