|
|
@@ -1,7 +1,11 @@ |
|
|
|
package com.ningdatech.pmapi.projectlib.model.vo; |
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
import com.ningdatech.pmapi.common.enumeration.CommonEnum; |
|
|
|
import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; |
|
|
|
import com.ningdatech.pmapi.projectlib.enumeration.ProjectTypeEnum; |
|
|
|
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails; |
|
|
|
import com.ningdatech.pmapi.user.util.LoginUserUtil; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Builder; |
|
|
@@ -95,4 +99,23 @@ public class ProjectLibListItemVO { |
|
|
|
|
|
|
|
@ApiModelProperty("21位项目编号") |
|
|
|
private String projectCode; |
|
|
|
|
|
|
|
@ApiModelProperty("是否有上级条线主管部门 0没有 1有") |
|
|
|
private Integer isHigherSuperOrg; |
|
|
|
|
|
|
|
//预审申报时候 需不需要上传上级条线意见文件 |
|
|
|
private Boolean needUploadSuperLineFile; |
|
|
|
public Boolean getNeedUploadSuperLineFile() { |
|
|
|
UserInfoDetails userInfoDetail = LoginUserUtil.loginUserDetail(); |
|
|
|
//要满足条件 1.当前登录人是市本级单位 2.有上级条线单位 3.项目状态是待预审 |
|
|
|
if (Objects.nonNull(userInfoDetail) && userInfoDetail.getIsMunicipalOrg() |
|
|
|
&& Objects.nonNull(this.isHigherSuperOrg) |
|
|
|
&& ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode().equals(this.status) |
|
|
|
&& CommonEnum.YES.getCode().equals(this.isHigherSuperOrg)) { |
|
|
|
this.needUploadSuperLineFile = Boolean.TRUE; |
|
|
|
return this.needUploadSuperLineFile; |
|
|
|
} |
|
|
|
this.needUploadSuperLineFile = null; |
|
|
|
return this.needUploadSuperLineFile; |
|
|
|
} |
|
|
|
} |