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; }