From 6d737de408159c4ff5a988a23c04642ef4a43b54 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Fri, 10 Mar 2023 10:19:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=9D=E8=B4=B9=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hai/service/impl/OutRechargeOrderServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java index dec37c8a..93e4c6da 100644 --- a/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java @@ -771,8 +771,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { @Override public void completeOrder(String orderNo) { - OutRechargeOrder order = outRechargeOrderService.findByOrderNo(orderNo); - OutRechargeChildOrder childOrder = order.getOutRechargeChildOrders().get(0); + OutRechargeChildOrder childOrder = outRechargeChildOrderService.findByOrderNo(orderNo); + // 查询充值订单 + OutRechargeOrder order = outRechargeOrderService.findByOrderId(childOrder.getParentOrderId()); // 修改话费充值业务订单状态 childOrder.setStatus(101);