From 584bc2d18c92b3a42be2515f3b03535d11933229 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 3 Feb 2023 15:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/service/impl/OrderPaySuccessServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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())) {