修改差旅申请单同步逻辑
This commit is contained in:
parent
3ec2668433
commit
ee8d1c1372
|
@ -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<Leg> orderedLegs = collect.get(false);
|
||||
if (!orderedLegs.isEmpty()) {
|
||||
it.reloadGenerateRequestLegs(orderedLegs);
|
||||
|
|
Loading…
Reference in New Issue