访客签离sql优化

This commit is contained in:
zc
2026-06-25 17:11:15 +08:00
parent 6f2f2095fd
commit 641e2c5d50

View File

@@ -707,10 +707,9 @@
<select id="queryVisitorUnsigned" resultType="com.dcsoft.system.visitor.domain.Visitor"> <select id="queryVisitorUnsigned" resultType="com.dcsoft.system.visitor.domain.Visitor">
select id, name, phone, idcard select id, name, phone, idcard
from vis_visitor from vis_visitor
where 1 = 1 where (out_time is null
and out_time is null and in_time is not null) or (in_time <![CDATA[ > ]]> out_time)
and in_time is not null order by in_time desc
order by create_time desc
</select> </select>
<select id="queryVisCheckCodeById" resultType="com.dcsoft.system.visitor.domain.CheckCodeVo"> <select id="queryVisCheckCodeById" resultType="com.dcsoft.system.visitor.domain.CheckCodeVo">
select id, code, start_time startTime, end_time endTime select id, code, start_time startTime, end_time endTime