Zimo 1 неделя назад
Родитель
Сommit
35bd650a15

+ 1 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/qhse/file/QhseInfoServiceImpl.java

@@ -54,6 +54,7 @@ public class QhseInfoServiceImpl implements QhseInfoService {
         List<QhseFileTreeDO> contents = qhseFileTreeService.getChildTreeList(ImmutableList.of(classId));
 //        if (CollUtil.isNotEmpty(contents)) {
         List<Long> contentIds = contents.stream().map(QhseFileTreeDO::getId).collect(Collectors.toList());
+        contentIds.add(classId);
         QhseInfoPageReqVO infoPageReqVO = new QhseInfoPageReqVO();
         infoPageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
         List<QhseInfoDO> files = qhseInfoMapper.selectPage(infoPageReqVO, contentIds).getList();