|
@@ -1171,7 +1171,12 @@ public class KwsEnterpriseService {
|
|
|
if (CollectionUtils.isEmpty(entIds)) {
|
|
if (CollectionUtils.isEmpty(entIds)) {
|
|
|
return Collections.emptyList();
|
|
return Collections.emptyList();
|
|
|
}
|
|
}
|
|
|
- kwsEnterprises = kwsEnterprises.stream().filter(item -> !entIds.contains(item.getId())).collect(Collectors.toList());
|
|
|
|
|
|
|
+// kwsEnterprises = kwsEnterprises.stream().filter(item -> !entIds.contains(item.getId())).collect(Collectors.toList());
|
|
|
|
|
+ List<Long> longList = kwsEnterprises.stream().map(KwsEnterprise::getId).distinct().collect(Collectors.toList());
|
|
|
|
|
+ List<Long> intersection = longList.stream()
|
|
|
|
|
+ .filter(entIds::contains)
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
+ kwsEnterprises = kwsEnterpriseDao.selectByKeys(intersection);
|
|
|
} else {
|
|
} else {
|
|
|
//求交集数据
|
|
//求交集数据
|
|
|
List<Long> entIds = remoteSystemService.queryEntIdsByCode(accessSpecial, null);
|
|
List<Long> entIds = remoteSystemService.queryEntIdsByCode(accessSpecial, null);
|