@@ -115,6 +115,9 @@ public class SubjectServiceImpl extends BaseServiceImpl<Long, Subject> implement
List<Long> parentIds = subjects.stream().map(Subject::getParentSubjectId).collect(Collectors.toList());
+ if(CollectionUtils.isEmpty(parentIds)){
+ return subjectSelect(null);
+ }
parents = findBySubjectByIdList(parentIds);
}