| | |
| | | @ApiModelProperty("资金类型(0中预资金,1国债资金,2超长期国债,3地方政府专项债)") |
| | | private String fundType; |
| | | |
| | | private List<String> fundTypeList; |
| | | /** 投资类别(0企业投资,1政府投资,2外商投资,3境外投资) */ |
| | | @ApiModelProperty("投资类别(0企业投资,1政府投资,2外商投资,3境外投资)") |
| | | private String investType; |
| | |
| | | /** 主管部门(对应审批部门id) */ |
| | | @ApiModelProperty("主管部门(对应审批部门id)") |
| | | private List<Long> competentDepartmentList; |
| | | |
| | | |
| | | |
| | | |
| | | private String competentDepartment; |
| | | /** 行政区域 */ |
| | | @ApiModelProperty("行政区域") |
| | |
| | | /** 重点分类 (0省重点项目, 1遂宁市重点项目, 2.射洪市重点项目, 3.一般项目) */ |
| | | @ApiModelProperty("重点分类 (0省重点项目, 1遂宁市重点项目, 2.射洪市重点项目, 3.一般项目)") |
| | | private String importanceType; |
| | | |
| | | private List<String> importanceTypeList; |
| | | // /** 年度投资计划 */ |
| | | // @ApiModelProperty("年度投资计划") |
| | | // private String year; |
| | |
| | | if(vo == null) { |
| | | vo = new ProjectInfoVO(); |
| | | } |
| | | |
| | | BeanUtils.copyProperties(entity, vo); |
| | | //主管部门转成list |
| | | String competentDepartment = entity.getCompetentDepartment(); |
| | |
| | | if(!StringUtils.isBlank(managementCentralization)){ |
| | | vo.setManagementCentralizationList(Arrays.asList(managementCentralization.split(","))); |
| | | } |
| | | // |
| | | //分类类型转换 |
| | | String importanceType = entity.getImportanceType(); |
| | | if (!StringUtils.isBlank(importanceType)) { |
| | | vo.setImportanceTypeList(Arrays.asList(importanceType.split(","))); |
| | | } |
| | | |
| | | //资金类型 |
| | | String fundTypeList = entity.getFundType(); |
| | | if (!StringUtils.isBlank(fundTypeList)) { |
| | | vo.setFundTypeList(Arrays.asList(fundTypeList.split(","))); |
| | | } |
| | | |
| | | return vo; |
| | | } |
| | | //转换字符串集合字段 |
| | |
| | | if(!StringUtils.isBlank(managementCentralization)){ |
| | | vo.setManagementCentralizationList(Arrays.asList(managementCentralization.split(","))); |
| | | } |
| | | |
| | | //分类类型转换 |
| | | |
| | | String importanceType = vo.getImportanceType(); |
| | | if (!StringUtils.isBlank(importanceType)) { |
| | | vo.setImportanceTypeList(Arrays.asList(importanceType.split(","))); |
| | | } |
| | | |
| | | //资金类型 |
| | | String fundTypeList = vo.getFundType(); |
| | | if (!StringUtils.isBlank(fundTypeList)) { |
| | | vo.setFundTypeList(Arrays.asList(fundTypeList.split(","))); |
| | | } |
| | | |
| | | } |
| | | } |