优化话费定时任务代码

dev-discount
袁野 2 years ago
parent e5bb1c8241
commit 6d737de408
  1. 5
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java

@ -771,8 +771,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
@Override @Override
public void completeOrder(String orderNo) { public void completeOrder(String orderNo) {
OutRechargeOrder order = outRechargeOrderService.findByOrderNo(orderNo); OutRechargeChildOrder childOrder = outRechargeChildOrderService.findByOrderNo(orderNo);
OutRechargeChildOrder childOrder = order.getOutRechargeChildOrders().get(0); // 查询充值订单
OutRechargeOrder order = outRechargeOrderService.findByOrderId(childOrder.getParentOrderId());
// 修改话费充值业务订单状态 // 修改话费充值业务订单状态
childOrder.setStatus(101); childOrder.setStatus(101);

Loading…
Cancel
Save