|
|
|
@ -73,8 +73,9 @@ public class IndexResult {
|
|
|
|
|
}
|
|
|
|
|
// 注意不要有重复值
|
|
|
|
|
Map<String, ModelAtomicIndex> atomicIndexMap = atomicIndexList.stream().collect(Collectors.toMap(ModelAtomicIndex::getId, k -> k, (k1, k2) -> k1));
|
|
|
|
|
this.atomicResults = atomicResultListFilter.stream().map(atomicResult -> new AtomicResult(indexId,
|
|
|
|
|
atomicIndexMap.get(atomicResult.getAtomicId()), atomicResult)).toList();
|
|
|
|
|
this.atomicResults = atomicResultListFilter.stream()
|
|
|
|
|
.filter(atomicResult -> null != atomicIndexMap.get(atomicResult.getAtomicId()))
|
|
|
|
|
.map(atomicResult -> new AtomicResult(indexId, atomicIndexMap.get(atomicResult.getAtomicId()), atomicResult)).toList();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|