| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | private String projectStatus; |
| | | |
| | | @ApiModelProperty("资金类型(0中预资金,1国债资金,2超长期国债,3地方政府专项债)") |
| | | private String fundType; |
| | | private List<String> fundTypeList; |
| | | |
| | | @ApiModelProperty("投资类别(0企业投资,1政府投资,2外商投资,3境外投资)") |
| | | private String investType; |
| | | |
| | | @ApiModelProperty("项目阶段(0储备规划阶段, 1项目前期阶段, 2实施阶段, 3竣工投用阶段)") |
| | | @ApiModelProperty("项目阶段(1储备规划阶段, 2项目前期阶段, 3实施阶段, 4竣工投用阶段)") |
| | | private String projectPhase; |
| | | |
| | | @ApiModelProperty("标签") |
| | | private String tag; |
| | | |
| | | @ApiModelProperty("主管部门(对应审批部门id)") |
| | | private List<Long> competentDepartmentList; |
| | | private String competentDepartment; |
| | | |
| | | @ApiModelProperty("主管部门联系人") |
| | | /** 主管部门联系人 */ |
| | | private String competentDepartmentPerson; |
| | | |
| | | @ApiModelProperty("主管部门联系方式") |
| | | /** 主管部门联系方式 */ |
| | | private String competentDepartmentPhone; |
| | | |
| | | @ApiModelProperty("行政区域") |
| | | private String area; |
| | |
| | | private String projectApprovalType; |
| | | |
| | | @ApiModelProperty("重点分类 (0省重点项目, 1遂宁市重点项目, 2.射洪市重点项目, 3.一般项目)") |
| | | private String importanceType; |
| | | private List<String> importanceTypeList; |
| | | |
| | | |
| | | |
| | | |
| | | // @ApiModelProperty("年度投资计划") |
| | | // private String year; |
| | |
| | | @ApiModelProperty("行业主管部门") |
| | | private Long industryCompetentDepartment; |
| | | @ApiModelProperty("行业主管部门联系人") |
| | | private Long industryCompetentDepartmentPerson; |
| | | private String industryCompetentDepartmentPerson; |
| | | @ApiModelProperty("行业主管部门联系方式") |
| | | private String departmentPersonPhone; |
| | | |
| | |
| | | entity = new ProjectInfo(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | //审核部门转换 |
| | | List<Long> competentDepartmentList = form.getCompetentDepartmentList(); |
| | | if(!CollectionUtils.isEmpty(competentDepartmentList)){ |
| | | entity.setCompetentDepartment(StringUtils.join(competentDepartmentList, ",")); |
| | | //资金类型转换 |
| | | List<String> fundTypeList = form.getFundTypeList(); |
| | | if(!CollectionUtils.isEmpty(fundTypeList)){ |
| | | entity.setFundType(StringUtils.join(fundTypeList, ",")); |
| | | } else { |
| | | entity.setFundType(""); |
| | | } |
| | | //重点分类转换 |
| | | List<String> importanceTypeList = form.getImportanceTypeList(); |
| | | if(!CollectionUtils.isEmpty(importanceTypeList)){ |
| | | entity.setImportanceType(StringUtils.join(importanceTypeList, ",")); |
| | | } else { |
| | | entity.setImportanceType(""); |
| | | } |
| | | //管理归口转换 |
| | | List<String> managementCentralizationList = form.getManagementCentralizationList(); |
| | | if(!CollectionUtils.isEmpty(managementCentralizationList)){ |
| | | entity.setManagementCentralization(StringUtils.join(managementCentralizationList, ",")); |
| | | } else { |
| | | entity.setManagementCentralization(""); |
| | | } |
| | | return entity; |
| | | } |