fix: 无桌码切换就餐模式获取不到信息修复

This commit is contained in:
张松
2024-11-25 15:59:49 +08:00
parent 99c08437d9
commit 13172e04bd

View File

@@ -1712,7 +1712,7 @@ public class CartService {
.eq(TbCashierCart::getShopId, choseEatModelDTO.getShopId())
.gt(TbCashierCart::getCreatedAt, DateUtil.offsetDay(DateUtil.date(), -1).getTime())
.isNull(TbCashierCart::getOrderId)
.eq(TbCashierCart::getTableId, choseEatModelDTO.getTableId())
.and(r -> r.eq(TbCashierCart::getTableId, choseEatModelDTO.getTableId()).or().isNull(TbCashierCart::getTableId).or().eq(TbCashierCart::getTableId, ""))
.and(q -> q.eq(TbCashierCart::getUseType, shopEatTypeInfoDTO.getUseType()).or().isNull(TbCashierCart::getUseType).or().eq(TbCashierCart::getUseType, ""))
.eq(TbCashierCart::getStatus, "create");
}