From c62a6f661aa54cf722391d1ab301998f5b03bd60 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Fri, 12 Jul 2024 13:46:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8F=96=E6=B6=88=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=A1=8C=E7=A8=8B=E8=A7=84=E5=88=92=E5=8D=95=E7=9A=84=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/queryies/OrderQuery.java | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/chint/application/queryies/OrderQuery.java b/src/main/java/com/chint/application/queryies/OrderQuery.java index 116c989e..736a9f73 100644 --- a/src/main/java/com/chint/application/queryies/OrderQuery.java +++ b/src/main/java/com/chint/application/queryies/OrderQuery.java @@ -548,21 +548,20 @@ public class OrderQuery { List legItems = routeOrder.getLegItems(); if (legItems != null && !legItems.isEmpty()) { //这里使用领域事件进行检查leg的订单状态 ,用户每次想要查看行程都会进行一次检查 - if (routeOrder.getApprovalStatusCode() != APPROVAL_EVENT_PREPARE) { - legItems.forEach(leg -> legDomainService.legCheckOrder(leg)); - } - - List eventList = routeOrder.getLegItems().stream().flatMap(it -> it.getEventList().stream()) - .filter(it -> it.getLegId() == null) - .toList(); - if (!eventList.isEmpty()) { - ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo(); - if (approveOrderNo != null && approveOrderNo.getActualOrderNo() != null) { - routeRepository.save(routeOrder); - } else { - routeRepository.saveTempRouteOrder(routeOrder, 15L); - } - } +// if (routeOrder.getApprovalStatusCode() != APPROVAL_EVENT_PREPARE) { +// legItems.forEach(leg -> legDomainService.legCheckOrder(leg)); +// } +// List eventList = routeOrder.getLegItems().stream().flatMap(it -> it.getEventList().stream()) +// .filter(it -> it.getLegId() == null) +// .toList(); +// if (!eventList.isEmpty()) { +// ApproveOrderNo approveOrderNo = routeOrder.getApproveOrderNo(); +// if (approveOrderNo != null && approveOrderNo.getActualOrderNo() != null) { +// routeRepository.save(routeOrder); +// } else { +// routeRepository.saveTempRouteOrder(routeOrder, 15L); +// } +// } if (legDomainService.checkLocation(legItems)) { routeRepository.reloadRouteOrderInCache(routeOrder);