From 2edd247533ddc2a8c777ec00a9dc8373776d68c3 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 31 Mar 2023 13:36:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=98=AF?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E7=AE=A1=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/PrequalificationDeclaredProjectManage.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java index 1240c38..a4d65bf 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java @@ -162,14 +162,18 @@ public class PrequalificationDeclaredProjectManage { * @return */ public PageVo projectLibList(PrequalificationDeclaredListReq preReq) { + UserInfoDetails userInfoDetail = LoginUserUtil.loginUserDetail(); + VUtils.isTrue(Objects.isNull(userInfoDetail)).throwMessage("获取登录用户失败!"); + if(!userInfoDetail.getIsOrgAdmin()){ + return PageVo.empty(); + } //限定参数 复制bean ProjectListReq req = new ProjectListReq(); BeanUtils.copyProperties(preReq,req); //项目阶段 状态 已定 待预审 req.setStage(ProjectStatusEnum.NOT_APPROVED.getCode()); req.setStatus(ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode()); - UserInfoDetails userInfoDetail = LoginUserUtil.loginUserDetail(); - VUtils.isTrue(Objects.isNull(userInfoDetail)).throwMessage("获取登录用户失败!"); + //放入用户的主管单位 req.setSuperOrgCode(userInfoDetail.getOrganizationCode()); return projectLibManage.projectLibList(req);