交班打印逻辑修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user