| | |
| | | @ApiModelProperty("投资类别(0企业投资,1政府投资,2外商投资,3境外投资)") |
| | | private String investType; |
| | | |
| | | /** 项目阶段(0储备规划阶段, 1项目前期阶段, 2实施阶段, 3竣工投用阶段) */ |
| | | @ApiModelProperty("项目阶段(0储备规划阶段, 1项目前期阶段, 2实施阶段, 3竣工投用阶段)") |
| | | /** 项目阶段(1储备规划阶段, 2项目前期阶段, 3实施阶段, 4竣工投用阶段) */ |
| | | @ApiModelProperty("项目阶段(1储备规划阶段, 2项目前期阶段, 3实施阶段, 4竣工投用阶段)") |
| | | private String projectPhase; |
| | | |
| | | /** 标签 */ |
| | |
| | | |
| | | /** 主管部门(对应审批部门id) */ |
| | | @ApiModelProperty("主管部门(对应审批部门id)") |
| | | private List<Long> competentDepartmentList; |
| | | |
| | | |
| | | |
| | | |
| | | private String competentDepartment; |
| | | |
| | | @ApiModelProperty("主管部门联系人") |
| | | /** 主管部门联系人 */ |
| | | private String competentDepartmentPerson; |
| | | |
| | | @ApiModelProperty("主管部门联系方式") |
| | | /** 主管部门联系方式 */ |
| | | private String competentDepartmentPhone; |
| | | |
| | | /** 行政区域 */ |
| | | @ApiModelProperty("行政区域") |
| | | private String area; |
| | |
| | | @ApiModelProperty("行业主管部门") |
| | | private Long industryCompetentDepartment; |
| | | @ApiModelProperty("行业主管部门联系人") |
| | | private Long industryCompetentDepartmentPerson; |
| | | private String industryCompetentDepartmentPerson; |
| | | @ApiModelProperty("行业主管部门联系方式") |
| | | private String departmentPersonPhone; |
| | | |
| | |
| | | } |
| | | |
| | | BeanUtils.copyProperties(entity, vo); |
| | | //主管部门转成list |
| | | String competentDepartment = entity.getCompetentDepartment(); |
| | | if(!StringUtils.isBlank(competentDepartment)){ |
| | | List<Long> list = Arrays.stream(competentDepartment.split(",")) |
| | | .map(Long::parseLong) |
| | | .collect(Collectors.toList()); |
| | | vo.setCompetentDepartmentList(list); |
| | | } |
| | | |
| | | //管理归口转换 |
| | | String managementCentralization = entity.getManagementCentralization(); |
| | | if(!StringUtils.isBlank(managementCentralization)){ |
| | |
| | | } |
| | | //转换字符串集合字段 |
| | | public static void transform(@NonNull ProjectInfoVO vo) { |
| | | //主管部门转成list |
| | | String competentDepartment = vo.getCompetentDepartment(); |
| | | if(!StringUtils.isBlank(competentDepartment)){ |
| | | List<Long> list = Arrays.stream(competentDepartment.split(",")) |
| | | .map(Long::parseLong) |
| | | .collect(Collectors.toList()); |
| | | vo.setCompetentDepartmentList(list); |
| | | } |
| | | //管理归口转换 |
| | | String managementCentralization = vo.getManagementCentralization(); |
| | | if(!StringUtils.isBlank(managementCentralization)){ |
| | |
| | | } |
| | | |
| | | //分类类型转换 |
| | | |
| | | String importanceType = vo.getImportanceType(); |
| | | if (!StringUtils.isBlank(importanceType)) { |
| | | vo.setImportanceTypeList(Arrays.asList(importanceType.split(","))); |