兴安兼容老版本

This commit is contained in:
zc
2025-07-02 10:53:56 +08:00
parent f439594100
commit cf336c67e4
10 changed files with 131 additions and 19 deletions

View File

@@ -1002,4 +1002,16 @@
AND p.phone = #{telephone}
ORDER BY r.created_time desc LIMIT 1
</select>
<select id="queryVisitor" resultType="java.lang.Integer">
select count(1)
from vis_visitor
where idcard = #{idcard}
and out_time is null
</select>
<select id="queryVisitorByIdCountOld" resultType="java.lang.Integer">
select count(1)
from vis_visitor
where phone = #{phone}
and out_time is null
</select>
</mapper>