|
@@ -238,7 +238,7 @@
|
|
|
</select>
|
|
|
<select id="getDayCheckedVistorNumByDeviceNoList" resultType="Integer">
|
|
|
<![CDATA[
|
|
|
- select count(*) from base_person_device_log where person_id = 0
|
|
|
+ select count(*) from base_person_device_log where match_face_id = 0
|
|
|
and record_time >=#{startTime}
|
|
|
and record_time <= #{endTime}
|
|
|
and temperature_ > 0
|
|
@@ -284,6 +284,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.guest_enabled is not true
|
|
|
]]>
|
|
|
<foreach collection="companyList" index="index" item="item" open=" and n.company_id in (" separator="," close=")">
|
|
|
#{item.id}
|
|
@@ -297,7 +298,7 @@
|
|
|
<select id="findVisitorLogByDeviceNoList" resultMap="PersonDeviceLogMap">
|
|
|
<![CDATA[
|
|
|
select * from base_person_device_log
|
|
|
- where person_id = 0
|
|
|
+ where match_face_id = 0
|
|
|
and record_time >= #{startTime}
|
|
|
and record_time <= #{endTime}
|
|
|
and temperature_>0
|
|
@@ -315,7 +316,8 @@
|
|
|
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 popedom_ like '%2%'
|
|
|
+ and n.popedom_ like '%2%'
|
|
|
+ and n.guest_enabled is not true
|
|
|
]]>
|
|
|
<foreach collection="list" index="index" item="item" open=" and n.company_id in (" separator="," close=")">
|
|
|
#{item.id}
|
|
@@ -353,7 +355,8 @@
|
|
|
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 popedom_ = '1'
|
|
|
+ and n.popedom_ = '1'
|
|
|
+ and n.guest_enabled is not true
|
|
|
]]>
|
|
|
<foreach collection="list" index="index" item="item" open=" and n.company_id in (" separator="," close=")">
|
|
|
#{item.id}
|
|
@@ -386,6 +389,7 @@
|
|
|
on a.person_id = b.id_
|
|
|
where a.record_time >=#{startTime}
|
|
|
and a.record_time <= #{endTime}
|
|
|
+ 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>
|
|
|
and a.del_flag = 0
|