|
|
@ -271,7 +271,6 @@ |
|
|
|
t1.event_type = '3' and t1.event_subclass = '3-2' and t1.event_state != '0' |
|
|
|
and date_format(t1.start_time,'%Y-%m-%d %H:%i:%s') <= date_format(#{endTime},'%Y-%m-%d %H:%i:%s') |
|
|
|
and (date_format(t1.end_time,'%Y-%m-%d %H:%i:%s') > date_format(#{startTime},'%Y-%m-%d %H:%i:%s') or ISNULL(t1.end_time)) |
|
|
|
and t2.classify in ('6','7','9') |
|
|
|
GROUP BY t2.facility_id) t2 on t1.id = t2.facilityId |
|
|
|
<where> |
|
|
|
t1.facility_type = '1' |
|
|
|