|
|
|
@ -90,8 +90,7 @@ public class OrderPaySuccessService { |
|
|
|
|
*/ |
|
|
|
|
public void productVpd(OrderModel order, BsOrderChild childOrder) throws Exception { |
|
|
|
|
// 查询卡券订单
|
|
|
|
|
List<BsOrderCoupon> orderCouponList = orderCouponService.getListByChildOrderNo(childOrder.getChildOrderNo()); |
|
|
|
|
for (BsOrderCoupon orderCoupon : orderCouponList) { |
|
|
|
|
BsOrderCoupon orderCoupon = orderCouponService.getDetailByChildOrderNo(childOrder.getChildOrderNo()); |
|
|
|
|
// 查询卡券订单的卡密
|
|
|
|
|
List<BsOrderCouponNo> couponNoList = orderCouponNoService.getListByCouponOrderId(orderCoupon.getId()); |
|
|
|
|
for (BsOrderCouponNo couponNo : couponNoList) { |
|
|
|
@ -131,7 +130,7 @@ public class OrderPaySuccessService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else if (vpd.getSource() == GoodsVpdSourceEnum.type6.getCode()) { |
|
|
|
|
/* // 派发停车券
|
|
|
|
|
/* // 派发停车券
|
|
|
|
|
ApiBlxCoupon apiBlxCoupon = apiBlxCouponService.findBlxCoupon(coupon.getCouponKey()); |
|
|
|
|
if (apiBlxCoupon == null || apiBlxCoupon.getCouponStatus() != 1) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System , ErrorCode.COMMON_ERROR , "当前卡券不可购买"); |
|
|
|
@ -195,7 +194,4 @@ public class OrderPaySuccessService { |
|
|
|
|
orderCoupon.setPaySerialNo(order.getPaySerialNo()); |
|
|
|
|
orderCouponService.editData(orderCoupon); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|