|
@@ -88,7 +88,8 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
.stream()
|
|
.stream()
|
|
.filter(i -> i.getHasInfo().equals(1))
|
|
.filter(i -> i.getHasInfo().equals(1))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
- if (staticKnowledgeIndexDTOList.size() > 100) {
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(staticKnowledgeIndexDTOList)
|
|
|
|
+ && staticKnowledgeIndexDTOList.size() > 100) {
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList.subList(0, 100);
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList.subList(0, 100);
|
|
}
|
|
}
|
|
return staticKnowledgeIndexDTOList;
|
|
return staticKnowledgeIndexDTOList;
|
|
@@ -107,7 +108,8 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
.stream()
|
|
.stream()
|
|
.filter(i -> i.getHasInfo().equals(0))
|
|
.filter(i -> i.getHasInfo().equals(0))
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
- if (staticKnowledgeIndexDTOList.size() > 100) {
|
|
|
|
|
|
+ if (ListUtil.isNotEmpty(staticKnowledgeIndexDTOList)
|
|
|
|
+ && staticKnowledgeIndexDTOList.size() > 100) {
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList.subList(0, 100);
|
|
staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList.subList(0, 100);
|
|
}
|
|
}
|
|
return staticKnowledgeIndexDTOList;
|
|
return staticKnowledgeIndexDTOList;
|