提交2。0代码

dev-discount
袁野 2 years ago
parent f56bd6ecf5
commit dabe1f4c2f
  1. 2
      hai-service/src/main/java/com/hai/order/service/OrderCreateHandleService.java
  2. 3
      hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java
  3. 2
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceImpl.java

@ -47,7 +47,7 @@ public interface OrderCreateHandleService {
* @param createOrderChild * @param createOrderChild
* @return * @return
*/ */
HighChildOrder couponPackage(CreateOrderChildModel createOrderChild); HighChildOrder couponPackage(HighOrder order , CreateOrderChildModel createOrderChild);
/** /**
* 汇联通充值校验 * 汇联通充值校验

@ -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());

@ -222,7 +222,7 @@ public class OrderServiceImpl implements OrderService {
// 优惠券包 // 优惠券包
} else if (child.getGoodsType().equals(OrderChildGoodsType.TYPE7.getNumber())) { } else if (child.getGoodsType().equals(OrderChildGoodsType.TYPE7.getNumber())) {
order.setProductType(OrderProductType.PRODUCT_TYPE7.getNumber()); order.setProductType(OrderProductType.PRODUCT_TYPE7.getNumber());
HighChildOrder childOrder = orderCreateHandleService.couponPackage(child); HighChildOrder childOrder = orderCreateHandleService.couponPackage(order , child);
// 查询库存 // 查询库存
List<HighDiscountPackageActual> list = discountPackageActualService.getListByPackageId(childOrder.getGoodsId().intValue(), 1); List<HighDiscountPackageActual> list = discountPackageActualService.getListByPackageId(childOrder.getGoodsId().intValue(), 1);

Loading…
Cancel
Save