修改交班落地数据逻辑
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
</select>
|
||||
<select id="selectByShopIdAndTrade"
|
||||
resultType="com.chaozhanggui.system.cashierservice.entity.ShopUserDuty">
|
||||
select * from tb_shop_user_duty where trade_day = #{day} and shop_id = #{shopId}
|
||||
select * from tb_shop_user_duty where trade_day = #{day} and shop_id = #{shopId} and status = '0'
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_shop_user_duty
|
||||
@@ -222,6 +222,6 @@
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateStatusByTokenId">
|
||||
update tb_shop_user_duty set status = '1' and login_out_time = now() where token_id = #{tokenId}
|
||||
update tb_shop_user_duty set status = '1' , login_out_time = now() where shop_id = #{shopId} and trade_day = #{day}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user