Browse Source

判断是否是单位管理员

tags/24080901
PoffyZhang 1 year ago
parent
commit
2edd247533
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java

+ 6
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java View File

@@ -162,14 +162,18 @@ public class PrequalificationDeclaredProjectManage {
* @return * @return
*/ */
public PageVo<ProjectLibListItemVO> projectLibList(PrequalificationDeclaredListReq preReq) { public PageVo<ProjectLibListItemVO> projectLibList(PrequalificationDeclaredListReq preReq) {
UserInfoDetails userInfoDetail = LoginUserUtil.loginUserDetail();
VUtils.isTrue(Objects.isNull(userInfoDetail)).throwMessage("获取登录用户失败!");
if(!userInfoDetail.getIsOrgAdmin()){
return PageVo.empty();
}
//限定参数 复制bean //限定参数 复制bean
ProjectListReq req = new ProjectListReq(); ProjectListReq req = new ProjectListReq();
BeanUtils.copyProperties(preReq,req); BeanUtils.copyProperties(preReq,req);
//项目阶段 状态 已定 待预审 //项目阶段 状态 已定 待预审
req.setStage(ProjectStatusEnum.NOT_APPROVED.getCode()); req.setStage(ProjectStatusEnum.NOT_APPROVED.getCode());
req.setStatus(ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode()); req.setStatus(ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode());
UserInfoDetails userInfoDetail = LoginUserUtil.loginUserDetail();
VUtils.isTrue(Objects.isNull(userInfoDetail)).throwMessage("获取登录用户失败!");

//放入用户的主管单位 //放入用户的主管单位
req.setSuperOrgCode(userInfoDetail.getOrganizationCode()); req.setSuperOrgCode(userInfoDetail.getOrganizationCode());
return projectLibManage.projectLibList(req); return projectLibManage.projectLibList(req);


Loading…
Cancel
Save