|
@@ -242,9 +242,9 @@ public class StorePlatformBenefitsServiceImpl extends ServiceImpl<StorePlatformB
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 检查库存
|
|
// 检查库存
|
|
|
- if (lifeDiscountCoupon.getSingleQty() == null || lifeDiscountCoupon.getSingleQty() <= 0) {
|
|
|
|
|
- throw new RuntimeException("优惠券库存不足");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (lifeDiscountCoupon.getSingleQty() == null || lifeDiscountCoupon.getSingleQty() <= 0) {
|
|
|
|
|
+// throw new RuntimeException("优惠券库存不足");
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
// 更新库存:减1
|
|
// 更新库存:减1
|
|
|
lifeDiscountCoupon.setSingleQty(lifeDiscountCoupon.getSingleQty() - 1);
|
|
lifeDiscountCoupon.setSingleQty(lifeDiscountCoupon.getSingleQty() - 1);
|