fix: 查询到往期餐位费修改

This commit is contained in:
张松
2024-11-19 14:39:36 +08:00
parent 55adcacc4c
commit 6654c091d6
2 changed files with 1 additions and 1 deletions

View File

@@ -974,7 +974,6 @@ public class ProductService {
LambdaQueryWrapper<TbCashierCart> query = new LambdaQueryWrapper<TbCashierCart>()
.eq(TbCashierCart::getShopId, shopId)
.eq(TbCashierCart::getProductId, TableConstant.CART_SEAT_ID)
.eq(TbCashierCart::getSkuId, TableConstant.CART_SEAT_ID)
.eq(TbCashierCart::getStatus, "create")
.gt(TbCashierCart::getCreatedAt, DateUtil.offsetDay(DateUtil.date(), -1).getTime())
// .and(r -> r.eq(TbCashierCart::getUserId, userId).or().isNull(TbCashierCart::getUserId))

View File

@@ -50,6 +50,7 @@ public class TbCashierCartServiceImpl extends ServiceImpl<MpCashierCartMapper, T
@Override
public List<TbCashierCart> selectByOrderId(Integer shopId, Integer orderId) {
return list(new LambdaQueryWrapper<TbCashierCart>()
.gt(TbCashierCart::getCreatedAt, DateUtil.offsetDay(DateUtil.date(), -1).getTime())
.eq(TbCashierCart::getOrderId, orderId)
.eq(TbCashierCart::getShopId, shopId));
}