Commit 97725b3c by 吕明尚

赠送优惠券增加套餐券

parent b7654892
......@@ -446,8 +446,8 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
if (sCoupon.getNumber().equals(ZERO)) {
throw new RuntimeException("优惠券数量为0");
}
if (!sCoupon.getCouponType().equals(CouponTypeEnum.DURATION.getCode())) {
throw new RuntimeException("只能赠送时长劵");
if (!sCoupon.getCouponType().equals(CouponTypeEnum.DURATION.getCode()) && !sCoupon.getCouponType().equals(CouponTypeEnum.PACKAGE.getCode())) {
throw new RuntimeException("只能赠送时长劵或者套餐券");
}
//创建优惠卷领取记录
SConsumerCoupon newSConsumerCoupon = new SConsumerCoupon();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment