交班打印逻辑修改

This commit is contained in:
19991905653
2024-04-12 10:27:51 +08:00
parent c3c169d2b5
commit a2432316ea
6 changed files with 17 additions and 7 deletions

View File

@@ -224,6 +224,9 @@
<update id="updateStatusByTokenId">
update tb_shop_user_duty set status = '1' , login_out_time = now(),user_id = #{staffId} where shop_id = #{shopId} and trade_day = #{day} and status = '0'
</update>
<update id="updateStatusById">
update tb_shop_user_duty set status = '1' , login_out_time = now(),user_id = #{staffId} where id = #{id}
</update>
<select id="selectByShopIdAndDay" resultMap="BaseResultMap">
select * from tb_shop_user_duty where trade_day = #{day} and shop_id = #{shopId} order by id desc limit 1