|
@@ -255,6 +255,7 @@
|
|
|
from base_person_device_log m inner join base_person_info n ON m.person_id = n.id_
|
|
|
where m.record_time>=#{startTime}
|
|
|
and m.record_time <=#{endTime}
|
|
|
+ and n.del_flag = 0
|
|
|
]]>
|
|
|
<foreach collection="companyList" index="index" item="item" open=" and n.company_id in (" separator="," close=")">
|
|
|
#{item.id}
|
|
@@ -284,6 +285,7 @@
|
|
|
from base_person_device_log m inner join base_person_info n ON m.person_id = n.id_
|
|
|
where m.record_time>=#{startTime}
|
|
|
and m.record_time <=#{endTime}
|
|
|
+ and n.del_flag = 0
|
|
|
and n.guest_enabled is not true
|
|
|
]]>
|
|
|
<foreach collection="companyList" index="index" item="item" open=" and n.company_id in (" separator="," close=")">
|
|
@@ -389,6 +391,7 @@
|
|
|
on a.person_id = b.id_
|
|
|
where a.record_time >=#{startTime}
|
|
|
and a.record_time <= #{endTime}
|
|
|
+ and b.del_flag = 0
|
|
|
and b.guest_enabled is not true
|
|
|
<foreach collection="list" index="index" item="item" open=" and b.company_id in (" separator="," close=")"> #{item.id}
|
|
|
</foreach>
|