diff --git a/src/main/java/com/chint/application/queryies/OrderQuery.java b/src/main/java/com/chint/application/queryies/OrderQuery.java index f9570683..d1822949 100644 --- a/src/main/java/com/chint/application/queryies/OrderQuery.java +++ b/src/main/java/com/chint/application/queryies/OrderQuery.java @@ -546,7 +546,12 @@ public class OrderQuery { .filter(it -> it.getLegId() == null) .toList(); if (!eventList.isEmpty()) { - routeRepository.save(routeOrder); + ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo(); + if (approveOrderNo != null && approveOrderNo.getActualOrderNo() != null) { + routeRepository.save(routeOrder); + } else { + routeRepository.saveTempRouteOrder(routeOrder, 15L); + } }