消费赠券

This commit is contained in:
2025-12-11 18:25:23 +08:00
parent ea0f2a7b42
commit 979759eb88

View File

@@ -76,7 +76,7 @@ public class MkShopConsumerCouponServiceImpl extends ServiceImpl<MkShopConsumerC
return;
}
MkCouponGiftDTO giftCoupon = giftCoupons.getFirst();
if (consumerCoupon.getLeftNum() == -10086 || consumerCoupon.getLeftNum() >= consumerCoupon.getGiftNum()) {
if (consumerCoupon.getLeftNum() == -10086 || consumerCoupon.getLeftNum() >= giftCoupon.getNum()) {
boolean canReceive = consumerCoupon.getGetLimit() == -10086;
// 限量发放,校验用户已经发放数量
if (consumerCoupon.getGetLimit() != -10086) {