From bcc48ae847ddd33046e02966e07d0d38824226ab Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Tue, 28 Mar 2023 18:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=94=B9vo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java index bab67fe..dfbfa45 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/workbench/manage/WorkbenchManage.java @@ -47,6 +47,8 @@ public class WorkbenchManage { private final UserInfoHelper userInfoHelper; + private final ProjectLibManage projectLibManage; + public WorkbenchVO getWorkbenchData(Integer year){ UserInfoDetails userInfo = LoginUserUtil.loginUserDetail(); WorkbenchVO res = new WorkbenchVO(); @@ -69,7 +71,7 @@ public class WorkbenchManage { projectListReq.setPageNumber(1); projectListReq.setPageSize(5); projectListReq.setProjectYear(year); - res.setProjects(declaredProjectManage.projectLibList(projectListReq).getRecords().stream().collect(Collectors.toList())); + res.setProjects(projectLibManage.projectLibListWithPermission(projectListReq).getRecords().stream().collect(Collectors.toList())); //3.所有公告按类型分 NoticeListReq noticeListReq = new NoticeListReq();