修改查询已同步行程节点的接口查询逻辑

This commit is contained in:
lulz1 2024-04-09 15:07:36 +08:00
parent d727db4da5
commit 7c76883246
1 changed files with 2 additions and 2 deletions

View File

@ -165,12 +165,12 @@ public class LegDomainService {
List<Long> sameSyncSupplierLegIds = routeOrder.getRouteRequestList()
.stream()
.filter(it->it.getSupplier().equals(supplierName))
.filter(it->!it.getSupplier().equals(supplierName))
.flatMap(it -> it.getRouteRequestLegList().stream().map(RouteRequestLeg::getLegId))
.toList();
legItems = legItems.stream()
.filter(it -> sameSyncSupplierLegIds.contains(it.getLegId()))
.filter(it -> !sameSyncSupplierLegIds.contains(it.getLegId()))
.toList();
legItems.forEach(Leg::reloadStatus);