|
|
@ -456,7 +456,7 @@ |
|
|
|
UNION ALL select 5 control_cause,'' cause_type,'警备任务' controlCauseName,'警备任务' causeTypeName |
|
|
|
UNION ALL select 6 control_cause,'' cause_type,'其他' controlCauseName,'其他' causeTypeName) t3 |
|
|
|
LEFT JOIN |
|
|
|
(select t2.control_type,t2.control_cause,t2.cause_type,count(*) num |
|
|
|
(select t2.control_type,t2.control_cause,IFNULL(t2.cause_type,'') cause_type,count(*) num |
|
|
|
from dc_event t1 LEFT JOIN dc_event_traffic_control t2 on t1.id = t2.id |
|
|
|
where |
|
|
|
t1.event_type = '3' and t1.event_subclass = '3-2' and t2.control_type = #{controlType} |
|
|
|