From ac4edd598d8486611e6d9566a16acbaa3d46fa84 Mon Sep 17 00:00:00 2001 From: lulz1 Date: Fri, 12 Apr 2024 09:30:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8A=9F=E8=83=BD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AF=B9=E5=B7=B2=E4=B8=8B=E5=8D=95=E7=9A=84=E9=A3=9E?= =?UTF-8?q?=E6=9C=BA=E4=B8=8D=E8=BF=9B=E8=A1=8C=E5=8F=96=E6=B6=88=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/chint/domain/service/RouteRequestDomainService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chint/domain/service/RouteRequestDomainService.java b/src/main/java/com/chint/domain/service/RouteRequestDomainService.java index 689cd4e8..39b59076 100644 --- a/src/main/java/com/chint/domain/service/RouteRequestDomainService.java +++ b/src/main/java/com/chint/domain/service/RouteRequestDomainService.java @@ -125,7 +125,8 @@ public class RouteRequestDomainService { Map> collect = legs .stream() - .collect(Collectors.partitioningBy(leg -> leg.reloadStatus().getLegStatus().equals(LEG_STATUS_ORDERED))); + .collect(Collectors.partitioningBy(leg -> leg.reloadStatus().getLegStatus().equals(LEG_STATUS_ORDERED) + && leg.getLegType().equals(LEG_TYPE_AIRPLANE))); List orderedLegs = collect.get(true); if (!orderedLegs.isEmpty()) { it.reloadGenerateRequestLegs(orderedLegs);