|
|
@@ -280,9 +280,10 @@ public class PrequalificationDeclaredProjectManage { |
|
|
|
public UserFullInfoDTO buildPermission(LambdaQueryWrapper<Project> query,UserFullInfoDTO user){ |
|
|
|
if(user.getIsOrgAdmin()){ |
|
|
|
//单位管理员 看到自己单位去申报的 + 待预审的主管单位是自己单位的项目 |
|
|
|
query.and(q1 -> q1.eq(Project::getBuildOrgCode ,user.getOrganizationCode()).or(q2 -> |
|
|
|
q2.eq(Project::getStage,ProjectStatusEnum.NOT_APPROVED.getCode()) |
|
|
|
.eq(Project::getStatus,ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode()) |
|
|
|
query.and(q1 -> q1.eq(Project::getBuildOrgCode ,user.getOrganizationCode()) |
|
|
|
.or(q2 -> q2.eq(Project::getStage,ProjectStatusEnum.NOT_APPROVED.getCode()) |
|
|
|
.and(s1 -> s1.eq(Project::getStatus,ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode()) |
|
|
|
.or(s2 -> s2.eq(Project::getStatus,ProjectStatusEnum.JOINT_REVIEW_BY_PROVINCIAL_DEPARTMENTS_SUCCESS.getCode()))) |
|
|
|
.eq(Project::getSuperOrgCode,user.getOrganizationCode()))); |
|
|
|
}else{ |
|
|
|
query.eq(Project::getBuildOrgCode ,user.getOrganizationCode()); |
|
|
|