diff --git a/src/main/java/com/chint/application/queryies/OrderQuery.java b/src/main/java/com/chint/application/queryies/OrderQuery.java index 116c989e..736a9f73 100644 --- a/src/main/java/com/chint/application/queryies/OrderQuery.java +++ b/src/main/java/com/chint/application/queryies/OrderQuery.java @@ -548,21 +548,20 @@ public class OrderQuery { List legItems = routeOrder.getLegItems(); if (legItems != null && !legItems.isEmpty()) { //这里使用领域事件进行检查leg的订单状态 ,用户每次想要查看行程都会进行一次检查 - if (routeOrder.getApprovalStatusCode() != APPROVAL_EVENT_PREPARE) { - legItems.forEach(leg -> legDomainService.legCheckOrder(leg)); - } - - List eventList = routeOrder.getLegItems().stream().flatMap(it -> it.getEventList().stream()) - .filter(it -> it.getLegId() == null) - .toList(); - if (!eventList.isEmpty()) { - ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo(); - if (approveOrderNo != null && approveOrderNo.getActualOrderNo() != null) { - routeRepository.save(routeOrder); - } else { - routeRepository.saveTempRouteOrder(routeOrder, 15L); - } - } +// if (routeOrder.getApprovalStatusCode() != APPROVAL_EVENT_PREPARE) { +// legItems.forEach(leg -> legDomainService.legCheckOrder(leg)); +// } +// List eventList = routeOrder.getLegItems().stream().flatMap(it -> it.getEventList().stream()) +// .filter(it -> it.getLegId() == null) +// .toList(); +// if (!eventList.isEmpty()) { +// ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo(); +// if (approveOrderNo != null && approveOrderNo.getActualOrderNo() != null) { +// routeRepository.save(routeOrder); +// } else { +// routeRepository.saveTempRouteOrder(routeOrder, 15L); +// } +// } if (legDomainService.checkLocation(legItems)) { routeRepository.reloadRouteOrderInCache(routeOrder);