fix: 优惠券使用状态不正确修复
This commit is contained in:
@@ -405,7 +405,7 @@ public class TbShopCouponServiceImpl extends ServiceImpl<TbShopCouponMapper, TbS
|
|||||||
throw new BadRequestException("用户信息不存在");
|
throw new BadRequestException("用户信息不存在");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<TbCashierCart> cashierCarts = mpCashierCartService.selectByOrderIdAndState(orderId, TableConstant.OrderInfo.Status.UNPAID);
|
List<TbCashierCart> cashierCarts = mpCashierCartService.selectByOrderIdAndState(orderId, null);
|
||||||
List<TbUserCouponVo> activateCouponList = getActivateCoupon(shopUser, orderInfo.getOrderAmount(), shopId, cashierCarts.stream().map(TbCashierCart::getProductId).collect(Collectors.toSet()));
|
List<TbUserCouponVo> activateCouponList = getActivateCoupon(shopUser, orderInfo.getOrderAmount(), shopId, cashierCarts.stream().map(TbCashierCart::getProductId).collect(Collectors.toSet()));
|
||||||
// 将优惠券分类为满减和商品
|
// 将优惠券分类为满减和商品
|
||||||
ArrayList<TbUserCouponVo> fullReductionCoupon = new ArrayList<>();
|
ArrayList<TbUserCouponVo> fullReductionCoupon = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user