Commit 6be6e63e authored by zhoushiguang's avatar zhoushiguang

路口异常状态增加方向

parent b859189e
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
ifnull(a.alarm_status,-1) alarm_status, ifnull(a.alarm_status,-1) alarm_status,
a.opt_status, a.opt_status,
dir, dir,
turn if(turn='null',null,turn) turn
from t_base_cross_info c from t_base_cross_info c
left join (select * from t_event_info where dt = DATE_FORMAT(NOW(),'%Y%m%d') and type in (701,702,703,707) and alarm_status in (0,1,2)) a on a.cross_id = c.id left join (select * from t_event_info where dt = DATE_FORMAT(NOW(),'%Y%m%d') and type in (701,702,703,707) and alarm_status in (0,1,2)) a on a.cross_id = c.id
left join (select a.event_type, a.label from t_config_event_category a where a.category = 4) b on a.type = b.event_type left join (select a.event_type, a.label from t_config_event_category a where a.category = 4) b on a.type = b.event_type
......
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