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