Commit 2350e1b9 by 吕明尚

修改可用优惠券判断

parent 94664eb1
...@@ -222,8 +222,10 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe ...@@ -222,8 +222,10 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
} else { } else {
SPack byId = packService.getById(roomLabel.getPackId()); SPack byId = packService.getById(roomLabel.getPackId());
if (!ObjectUtils.isEmpty(byId) && byId.getIsOpen().equals(YesNoEnum.yes.getIndex())) { if (!ObjectUtils.isEmpty(byId) && byId.getIsOpen().equals(YesNoEnum.yes.getIndex())) {
couponRequest.setPackageId(roomLabel.getPackId());
couponRequest.setOrderMode(BuyTypeEnum.PACK.getCode()); couponRequest.setOrderMode(BuyTypeEnum.PACK.getCode());
} else { } else {
couponRequest.setPackageId(null);
couponRequest.setOrderMode(BuyTypeEnum.TIME.getCode()); couponRequest.setOrderMode(BuyTypeEnum.TIME.getCode());
} }
} }
......
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