From 3d5ab71ae6d4a529f5805a7ee1882ef7f605dc64 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Tue, 25 Jun 2024 11:58:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=A1=8C=E7=A8=8B=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chint/application/services/OrderApplicationService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/chint/application/services/OrderApplicationService.java b/src/main/java/com/chint/application/services/OrderApplicationService.java index 6aa65e17..89c7deab 100644 --- a/src/main/java/com/chint/application/services/OrderApplicationService.java +++ b/src/main/java/com/chint/application/services/OrderApplicationService.java @@ -228,11 +228,7 @@ public class OrderApplicationService { if (routeOrder != null) { routeOrder.reloadStatus(); routeOrder.deleteLeg(legNo); - if (!routeOrder.getApprovalStatusCode().equals(APPROVAL_EVENT_PREPARE)) { - return routeRepository.saveTempRouteOrder(routeOrder, 24L); - } else { - return routeRepository.save(routeOrder); - } + return routeRepository.saveTempRouteOrder(routeOrder, 24L); } return null; }