访客签离sql优化
This commit is contained in:
@@ -707,10 +707,9 @@
|
||||
<select id="queryVisitorUnsigned" resultType="com.dcsoft.system.visitor.domain.Visitor">
|
||||
select id, name, phone, idcard
|
||||
from vis_visitor
|
||||
where 1 = 1
|
||||
and out_time is null
|
||||
and in_time is not null
|
||||
order by create_time desc
|
||||
where (out_time is null
|
||||
and in_time is not null) or (in_time <![CDATA[ > ]]> out_time)
|
||||
order by in_time desc
|
||||
</select>
|
||||
<select id="queryVisCheckCodeById" resultType="com.dcsoft.system.visitor.domain.CheckCodeVo">
|
||||
select id, code, start_time startTime, end_time endTime
|
||||
|
||||
Reference in New Issue
Block a user