修改,NCC报警原因显示故障设备name而非code;提交转移旧仿真记录的sql

This commit is contained in:
joylink_zhangsai 2023-05-25 13:14:41 +08:00
parent cced32fca8
commit 957dc9bd7f
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
INSERT INTO rts_user_simulation_record (map_id, user_id, type, duration, start_time, end_time)
SELECT map_id,
user_id,
'SIM',
duration,
start_time,
end_time
FROM user_simulation_stats
WHERE end_time > '2000-01-01 00:00:00';

View File

@ -135,7 +135,7 @@ public class NccAlarmService {
if (SwitchFault.SPLIT.name().equals(fault)) {
fault = "失表";
}
return String.format("%s(%s)%s", device.getDeviceType().getName(), device.getCode(),
return String.format("%s(%s)%s", device.getDeviceType().getName(), device.getName(),
fault);
}
}