清空不允许清空就餐人数

This commit is contained in:
2024-09-27 16:02:29 +08:00
parent 97c525228c
commit 443903147b
2 changed files with 2 additions and 1 deletions

View File

@@ -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"));
}