兴安优化定时任务出门证失效

This commit is contained in:
zc
2025-08-08 16:18:33 +08:00
parent 8194ff92d1
commit 8ef43cccf0
9 changed files with 82 additions and 8 deletions

View File

@@ -149,6 +149,15 @@
where id = #{id}
</update>
<update id="updateStaffState">
update vis_exit_out
set examine_state = #{examineState}
where id in
<foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<delete id="deleteVisitorReviewProcess">
delete from vis_visitor_review_process where exit_id = #{id}
</delete>
@@ -308,6 +317,16 @@
limit 1
</select>
<select id="selectexpireVisCarryStuff" resultType="java.lang.Long">
select
e.id
from vis_exit_out e
left join vis_exit_out_record r on e.id = exit_id
where r.exit_id is null
and e.examine_state = '0'
and e.update_time >= #{dateTime}
</select>
<insert id="insertVisExitOut" useGeneratedKeys="true" keyProperty="id">
insert into vis_exit_out
<trim prefix="(" suffix=")" suffixOverrides=",">