|
@@ -220,8 +220,9 @@
|
|
from base_person_device_filter_log a
|
|
from base_person_device_filter_log a
|
|
LEFT JOIN base_person_info b on a.person_id=b.id_
|
|
LEFT JOIN base_person_info b on a.person_id=b.id_
|
|
LEFT JOIN base_company_info c on b.company_id=c.id_
|
|
LEFT JOIN base_company_info c on b.company_id=c.id_
|
|
- where a.del_flag=false
|
|
|
|
- and a.temperature_ >= #{temperature}
|
|
|
|
|
|
+ where a.del_flag=0
|
|
|
|
+ and b.del_flag=0
|
|
|
|
+ and a.temperature_ > #{temperature}
|
|
and a.record_time >= #{startDate}
|
|
and a.record_time >= #{startDate}
|
|
and a.record_time < #{endDate}
|
|
and a.record_time < #{endDate}
|
|
]]>
|
|
]]>
|