Quellcode durchsuchen

按振坤取数逻辑修改应用的判定条件
select * from t_alm_active_alarm where alarm_object_type like '%0012%'

Ping vor 1 Jahr
Ursprung
Commit
2c25810a0e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      all.sql

+ 2 - 2
all.sql

@@ -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`,