|
|
@ -517,7 +517,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public HighChildOrder couponPackage(CreateOrderChildModel createOrderChild) { |
|
|
|
public HighChildOrder couponPackage(HighOrder order , CreateOrderChildModel createOrderChild) { |
|
|
|
// 查询优惠券包
|
|
|
|
// 查询优惠券包
|
|
|
|
HighDiscountPackage discountPackage = discountPackageService.findDiscountPackageById(createOrderChild.getGoodsId().intValue()); |
|
|
|
HighDiscountPackage discountPackage = discountPackageService.findDiscountPackageById(createOrderChild.getGoodsId().intValue()); |
|
|
|
if (discountPackage == null) { |
|
|
|
if (discountPackage == null) { |
|
|
@ -546,6 +546,7 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService { |
|
|
|
childOrder.setGoodsId(discountPackage.getId().longValue()); |
|
|
|
childOrder.setGoodsId(discountPackage.getId().longValue()); |
|
|
|
childOrder.setGoodsName(discountPackage.getTitle()); |
|
|
|
childOrder.setGoodsName(discountPackage.getTitle()); |
|
|
|
childOrder.setGoodsImg(discountPackage.getListImg()); |
|
|
|
childOrder.setGoodsImg(discountPackage.getListImg()); |
|
|
|
|
|
|
|
childOrder.setOrderNo(order.getOrderNo()); |
|
|
|
childOrder.setGoodsSpecName("默认"); |
|
|
|
childOrder.setGoodsSpecName("默认"); |
|
|
|
childOrder.setGoodsPrice(discountPackage.getPrice()); |
|
|
|
childOrder.setGoodsPrice(discountPackage.getPrice()); |
|
|
|
childOrder.setGoodsActualPrice(discountPackage.getPrice()); |
|
|
|
childOrder.setGoodsActualPrice(discountPackage.getPrice()); |
|
|
|