访客签离sql优化
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user