Ver código fonte

fix:声部查询失败

liujunchi 2 anos atrás
pai
commit
fdad956cc4

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

@@ -39,6 +39,9 @@ public class SubjectServiceImpl extends BaseServiceImpl<Long, Subject> implement
 
     @Override
     public List<Subject> findBySubjectByIdList(List<Long> subjectIdList) {
+        if (CollectionUtils.isEmpty(subjectIdList)) {
+            return new ArrayList<>();
+        }
         return subjectDao.findBySubjectIds(subjectIdList);
     }