From e4defad9830531b93312af509016aa5a28654046 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Tue, 9 Jul 2024 17:45:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E8=A7=84=E5=88=92=E5=8D=95=E5=92=8C=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=BC=96=E5=8F=B7=E6=9F=A5=E8=AF=A2=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E6=98=AF=E4=B8=B4=E6=97=B6=E5=8D=95=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/chint/application/queryies/OrderQuery.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); + } }