From d6ad52af57eb037e8e085058c52a5dd91988f7c1 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Sat, 20 Apr 2024 20:44:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=88=86=E9=A1=B5=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E5=B0=86=E5=B7=B2=E7=BB=93=E6=9D=9F=E7=9A=84=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=94=BE=E5=88=B0=E6=9C=80=E5=90=8E=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=AA=E6=8F=90=E4=BA=A4=E5=AE=A1=E6=89=B9=E7=9A=84=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=9F=A5=E8=AF=A2=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/dtos/response/RouteOrderRes.java | 2 +- src/main/java/com/chint/application/in/OrderController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chint/application/dtos/response/RouteOrderRes.java b/src/main/java/com/chint/application/dtos/response/RouteOrderRes.java index b039482d..dac7e5ea 100644 --- a/src/main/java/com/chint/application/dtos/response/RouteOrderRes.java +++ b/src/main/java/com/chint/application/dtos/response/RouteOrderRes.java @@ -62,7 +62,7 @@ public class RouteOrderRes { res.setEndTime(formatter.format(routeOrder.getEndTime())); } if (routeOrder.checkIfHaveTrainLeg()) { - res.setIfHaveTrainLeg("1"); + res.setIfHaveTrainLeg("0"); } else { res.setIfHaveTrainLeg("0"); } diff --git a/src/main/java/com/chint/application/in/OrderController.java b/src/main/java/com/chint/application/in/OrderController.java index 180720d8..5ee193d9 100644 --- a/src/main/java/com/chint/application/in/OrderController.java +++ b/src/main/java/com/chint/application/in/OrderController.java @@ -132,7 +132,7 @@ public class OrderController { if (orderDetailDomainService.syncOrderDetailStatusByRouteId(syncLegData.getRouteId())) { return Result.Success(SUCCESS); } else { - return Result.error(SYNC_FAILURE_TRAIN); + return Result.error(FAILURE); } } }