|
@@ -63,7 +63,7 @@ public class UserCouponServiceImpl extends ServiceImpl<UserCouponMapper, UserCou
|
|
|
List<UserCouponVO> userCouponVOList = getBaseMapper().listUserCouponVO(queryWrapper);
|
|
|
for (UserCouponVO couponVO : userCouponVOList) {
|
|
|
// 指定盲票购买的优惠券
|
|
|
- if (couponVO.getType() == CouponTypeEnum.TICKET_ORDER && couponVO.getUseArea() == CouponUseAreaEnum.ONLINE_SOME) {
|
|
|
+ if (couponVO.getType() == CouponTypeEnum.TICKET_ORDER && couponVO.getUseArea() == CouponUseAreaEnum.PRE_SCOPE) {
|
|
|
List<CouponTicket> couponTicketList = couponTicketService.list(new LambdaQueryWrapper<CouponTicket>()
|
|
|
.eq(CouponTicket::getCouponId, couponVO.getCouponId()));
|
|
|
List<String> boxIds = couponTicketList.stream().map(couponTicket -> {
|
|
@@ -90,7 +90,7 @@ public class UserCouponServiceImpl extends ServiceImpl<UserCouponMapper, UserCou
|
|
|
while (iterator.hasNext()) {
|
|
|
UserCouponVO userCouponVO = iterator.next();
|
|
|
// 校验使用范围
|
|
|
- if (userCouponVO.getUseArea() == CouponUseAreaEnum.ONLINE_SOME) {
|
|
|
+ if (userCouponVO.getUseArea() == CouponUseAreaEnum.PRE_SCOPE) {
|
|
|
// 指定盲票
|
|
|
List<CouponTicket> couponTicketList = couponTicketService.list(
|
|
|
new LambdaQueryWrapper<CouponTicket>()
|