liweifan 2 роки тому
батько
коміт
63f8210558

+ 3 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/SubjectServiceImpl.java

@@ -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);
         }