修改差旅申请单同步逻辑

This commit is contained in:
Superdandan 2024-04-13 10:49:41 +08:00
parent 3ec2668433
commit ee8d1c1372
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class RouteRequestDomainService {
if (supplierOptional.isPresent()) { if (supplierOptional.isPresent()) {
collect = legs collect = legs
.stream() .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<Leg> orderedLegs = collect.get(false); List<Leg> orderedLegs = collect.get(false);
if (!orderedLegs.isEmpty()) { if (!orderedLegs.isEmpty()) {
it.reloadGenerateRequestLegs(orderedLegs); it.reloadGenerateRequestLegs(orderedLegs);