1.代客下单 已下单商品不支持删除

This commit is contained in:
2024-08-27 10:36:05 +08:00
parent 2461e5d808
commit 35e039a530
3 changed files with 30 additions and 38 deletions

View File

@@ -73,6 +73,6 @@ public interface TbCashierCartMapper {
@Delete("delete from tb_cashier_cart where master_id=#{masterId} and id=#{cartId}")
int deleteByCartId(@Param("masterId") String masterId, @Param("cartId")Integer cartId);
@Select("select count(*) from tb_cashier_cart where shop_id=#{shopId} and `status`='create' and table_id=#{qrcode}")
@Select("select count(*) from tb_cashier_cart where shop_id=#{shopId} and `status`='create' and table_id=#{qrcode} and order_id is not null")
int countTable(@Param("qrcode") String qrcode, @Param("shopId") Integer shopId);
}