|
@@ -150,7 +150,7 @@ select
|
|
|
when (`t_alm_active_alarm`.`alarm_object_type` = '000300001') then '存储设备'
|
|
|
when (substr(`t_alm_active_alarm`.`alarm_object_type`, 1, 4) = '0004') then '安全设备'
|
|
|
when (substr(`t_alm_active_alarm`.`alarm_object_type`, 1, 4) = '0014') then '网络'
|
|
|
- when ((`t_alm_active_alarm`.`alarm_object_type` = '0012')
|
|
|
+ when ((`t_alm_active_alarm`.`alarm_object_type` like '%0012%')
|
|
|
or (`t_alm_active_alarm`.`alarm_object_type` like '%app%')) then '应用'
|
|
|
else '其它未知类型'
|
|
|
end) as `alarm_object_type`,
|
|
@@ -183,7 +183,7 @@ select
|
|
|
when (`t_alm_history_alarm`.`alarm_object_type` = '000300001') then '存储设备'
|
|
|
when (substr(`t_alm_history_alarm`.`alarm_object_type`, 1, 4) = '0004') then '安全设备'
|
|
|
when (substr(`t_alm_history_alarm`.`alarm_object_type`, 1, 4) = '0014') then '网络'
|
|
|
- when ((`t_alm_history_alarm`.`alarm_object_type` = '0012')
|
|
|
+ when ((`t_alm_history_alarm`.`alarm_object_type` LIKE '%0012%')
|
|
|
or (`t_alm_history_alarm`.`alarm_object_type` like '%app%')) then '应用'
|
|
|
else '其它未知类型'
|
|
|
end) as `alarm_object_type`,
|