From 286aad6c140a0b76081e72e59255cd81171fbe73 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Mon, 24 Jun 2024 09:42:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BC=9A=E5=88=9B=E5=BB=BA=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E5=8D=95=E5=8F=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/chint/application/queryies/OrderQuery.java | 7 +++---- .../com/chint/domain/factoriy/order/RouteOrderFactory.java | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/chint/application/queryies/OrderQuery.java b/src/main/java/com/chint/application/queryies/OrderQuery.java index 20a6b705..748b5dfc 100644 --- a/src/main/java/com/chint/application/queryies/OrderQuery.java +++ b/src/main/java/com/chint/application/queryies/OrderQuery.java @@ -324,8 +324,6 @@ public class OrderQuery { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); DateTimeFormatter simpleFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); -// RouteOrder routeOrder = routeRepository.findByFakeOrderNoAndSysCode(queryData.getBillcode(), queryData.getSysCode()) -// .reloadStatus(); String sysCode = queryData.getSysCode(); String fakeOrderNo = queryData.getFakeOrderNo(); @@ -337,8 +335,9 @@ public class OrderQuery { routeOrder = routeRepository.queryById(queryData.getRouteId()); } - // 这里查询出来的订单,需要保存它的状态 - routeRepository.saveTempRouteOrder(routeOrder,24L); + if(routeOrder != null){ + routeOrder.reloadStatus(); + } List locationList = new ArrayList<>(); User currentUser = userHttpRequest.loadUserInfo( diff --git a/src/main/java/com/chint/domain/factoriy/order/RouteOrderFactory.java b/src/main/java/com/chint/domain/factoriy/order/RouteOrderFactory.java index 17d5fbee..14fe5209 100644 --- a/src/main/java/com/chint/domain/factoriy/order/RouteOrderFactory.java +++ b/src/main/java/com/chint/domain/factoriy/order/RouteOrderFactory.java @@ -78,6 +78,8 @@ public class RouteOrderFactory implements OrderFactory { approveOrderNo.setAccountCompanyName(currentUser.getCompanyName()); routeOrder.setApproveOrderNo(approveOrderNo); routeOrder.setBookingTime(LocalDateTime.now()); + routeOrder.setCreateTime(LocalDateTime.now()); + routeOrder.setUpdateTime(LocalDateTime.now()); return routeOrder; }