|
|
@@ -440,6 +440,10 @@ public class ProjectLibManage { |
|
|
|
if (!buildProjectLibPermission(req, user)) { |
|
|
|
return PageVo.empty(); |
|
|
|
} |
|
|
|
if (req.getDeclaredUnitId() != null) { |
|
|
|
List<Long> viewUnitIds = mhUnitCache.getViewChildIdsRecursion(req.getDeclaredUnitId()); |
|
|
|
req.setDeclaredUnitIds(viewUnitIds); |
|
|
|
} |
|
|
|
Page<ProjectPO> page = projectService.pageLibWithPermission(req.page(), req); |
|
|
|
|
|
|
|
if (CollUtil.isEmpty(page.getRecords())) { |
|
|
|