Commit 9f3de39b authored by KeYong's avatar KeYong

修改bug

parent 52d4665a
...@@ -234,4 +234,12 @@ public class EquipmentSpecificAlarmLog extends BaseEntity { ...@@ -234,4 +234,12 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
@ApiModelProperty(value = "机构编码") @ApiModelProperty(value = "机构编码")
@TableField(value = "biz_org_code") @TableField(value = "biz_org_code")
private String bizOrgCode; private String bizOrgCode;
@ApiModelProperty(value = "站名称")
@TableField(value = "station_name")
private String stationName;
@ApiModelProperty(value = "站编码")
@TableField(value = "station_code")
private String stationCode;
} }
...@@ -843,6 +843,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -843,6 +843,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
equipmentSpecificAlarmLog.setId(null); equipmentSpecificAlarmLog.setId(null);
equipmentSpecificAlarmLog.setCreateDate(new Date()); equipmentSpecificAlarmLog.setCreateDate(new Date());
equipmentSpecificAlarmLog.setEquipmentSpecificAlarmId(equipmentSpecificAlarm.getId()); equipmentSpecificAlarmLog.setEquipmentSpecificAlarmId(equipmentSpecificAlarm.getId());
equipmentSpecificAlarmLog.setStationCode(stationCode);
equipmentSpecificAlarmLog.setStationName(stationName);
boolean bool = equipmentSpecificAlarmLogService.save(equipmentSpecificAlarmLog); boolean bool = equipmentSpecificAlarmLogService.save(equipmentSpecificAlarmLog);
// 同步告警消息给平台 // 同步告警消息给平台
if (amosSwitch && bool) { if (amosSwitch && bool) {
......
...@@ -450,4 +450,16 @@ ...@@ -450,4 +450,16 @@
END# END#
</sql> </sql>
</changeSet> </changeSet>
<changeSet author="keyong" id="1668587041">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="wl_equipment_specific_alarm_log" columnName="station_name"/>
</not>
</preConditions>
<comment>新增站属性字段</comment>
<sql>
ALTER TABLE `wl_equipment_specific_alarm_log` ADD COLUMN `station_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '换流站名称';
ALTER TABLE `wl_equipment_specific_alarm_log` ADD COLUMN `station_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '换流站编码';
</sql>
</changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
...@@ -283,8 +283,8 @@ ...@@ -283,8 +283,8 @@
) createDate, ) createDate,
wlesal.equipment_specific_name as equipmentSpecificName, wlesal.equipment_specific_name as equipmentSpecificName,
wlesal.location, wlesal.location,
wlesal.biz_org_code AS bizOrgCode, wlesal.station_code AS stationCode,
wlesal.biz_org_name AS bizOrgName wlesal.station_name AS stationName
FROM wl_equipment_specific_alarm_log wlesal FROM wl_equipment_specific_alarm_log wlesal
<where> <where>
<if test="param.alarmType == 'BREAKDOWN'">AND wlesal.type = #{param.alarmType}</if> <if test="param.alarmType == 'BREAKDOWN'">AND wlesal.type = #{param.alarmType}</if>
...@@ -1372,7 +1372,8 @@ ...@@ -1372,7 +1372,8 @@
location, location,
emergency_level_color, emergency_level_color,
IF IF
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus` ( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
wlesal.station_name AS sationName
FROM FROM
`wl_equipment_specific_alarm_log` `wlesal` `wl_equipment_specific_alarm_log` `wlesal`
LEFT JOIN `wl_equipment_specific` `wles` ON `wlesal`.`equipment_specific_id` = `wles`.`id` LEFT JOIN `wl_equipment_specific` `wles` ON `wlesal`.`equipment_specific_id` = `wles`.`id`
......
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