diff --git a/hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java b/hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java index f9ddeefd..5b7b3180 100644 --- a/hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java +++ b/hai-service/src/main/java/com/hai/order/service/impl/OrderPaySuccessServiceImpl.java @@ -183,15 +183,23 @@ public class OrderPaySuccessServiceImpl implements OrderPaySuccessService { for (HighChildOrder childOrder : order.getHighChildOrderList()) { if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE1.getNumber())) { + childOrder.setChildOrderStatus(OrderChildStatus.STATUS3.getNumber()); couponHandle(order, childOrder); } else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE2.getNumber())) { + order.setOrderStatus(OrderStatus.STATUS3.getNumber()); + order.setFinishTime(new Date()); integralHandle(order,childOrder); + childOrder.setChildOrderStatus(OrderChildStatus.STATUS3.getNumber()); + orderService.updateOrderData(order); + } else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE3.getNumber())) { order.setOrderStatus(OrderStatus.STATUS3.getNumber()); order.setFinishTime(new Date()); oilHandle(order,childOrder); + + childOrder.setChildOrderStatus(OrderChildStatus.STATUS3.getNumber()); orderService.updateOrderData(order); } else if (childOrder.getGoodsType().equals(OrderChildGoodsType.TYPE4.getNumber())) {