From dd718f744772bef7b688f3224efe71f257156648 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Tue, 9 Jul 2024 17:14:42 +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 --- .../com/chint/application/services/OrderApplicationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chint/application/services/OrderApplicationService.java b/src/main/java/com/chint/application/services/OrderApplicationService.java index 5eb9bf61..5cb02b7c 100644 --- a/src/main/java/com/chint/application/services/OrderApplicationService.java +++ b/src/main/java/com/chint/application/services/OrderApplicationService.java @@ -105,7 +105,7 @@ public class OrderApplicationService { List legs = processLegData(legData, routeOrder); //创建行程节点 legDomainService.queryLocation(legs); legs.forEach(leg -> handleLegEvents(leg, addLegData, routeOrder)); - if (routeOrder.getApproveOrderNo() != null && routeOrder.getApproveOrderNo().getActualOrderNo() == null) { + if (routeOrder.getApproveOrderNo() == null || routeOrder.getApproveOrderNo().getActualOrderNo() == null) { routeRepository.saveTempRouteOrder(routeOrder, 24L); //如果是未审批状态的话 ,将行程规划单保存到redis } else { routeRepository.save(routeOrder); // 仅在所有操作完成后保存一次