同步功能添加对已下单的飞机不进行取消同步

This commit is contained in:
lulz1 2024-04-12 09:30:39 +08:00
parent 7fdc0f79bf
commit ac4edd598d
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ public class RouteRequestDomainService {
Map<Boolean, List<Leg>> 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<Leg> orderedLegs = collect.get(true);
if (!orderedLegs.isEmpty()) {
it.reloadGenerateRequestLegs(orderedLegs);