清空不允许清空就餐人数
This commit is contained in:
@@ -1119,6 +1119,7 @@ public class CartService {
|
||||
.eq(TbCashierCart::getShopId, shopId)
|
||||
.and(q -> q.isNull(TbCashierCart::getTableId).or().eq(TbCashierCart::getTableId, ""))
|
||||
.eq(TbCashierCart::getUserId, userId)
|
||||
.ne(TbCashierCart::getProductId, "-999")
|
||||
.gt(TbCashierCart::getCreatedAt, DateUtil.offsetDay(DateUtil.date(), -1).getTime())
|
||||
.set(TbCashierCart::getStatus, "closed"));
|
||||
}
|
||||
|
||||
@@ -370,7 +370,7 @@
|
||||
</update>
|
||||
|
||||
<update id="updateStatusByOrderIdForMini">
|
||||
update tb_cashier_cart set status = #{status} where table_id = #{tableId} and status = 'create' and master_id is null
|
||||
update tb_cashier_cart set status = #{status} where table_id = #{tableId} and status = 'create' and master_id is null and product_id != '-999'
|
||||
</update>
|
||||
|
||||
<update id="updateStatusById">
|
||||
|
||||
Reference in New Issue
Block a user