diff --git a/src/main/java/com/chint/domain/service/RouteRequestDomainService.java b/src/main/java/com/chint/domain/service/RouteRequestDomainService.java index ece5a540..80893dbe 100644 --- a/src/main/java/com/chint/domain/service/RouteRequestDomainService.java +++ b/src/main/java/com/chint/domain/service/RouteRequestDomainService.java @@ -139,7 +139,7 @@ public class RouteRequestDomainService { if (supplierOptional.isPresent()) { collect = legs .stream() - .collect(Collectors.partitioningBy(leg -> supplierDomainService.ifCanCancel(leg, it.getSupplier()) || legIds.contains(leg.getLegId()))); + .collect(Collectors.partitioningBy(leg -> supplierDomainService.ifCanCancel(leg, it.getSupplier()) && legIds.contains(leg.getLegId()))); List orderedLegs = collect.get(false); if (!orderedLegs.isEmpty()) { it.reloadGenerateRequestLegs(orderedLegs);