xiangpei
2025-02-24 0216e745dc57d021c0fa81115811b74abd815f36
business/src/main/java/com/ycl/domain/vo/ProjectInfoVO.java
@@ -61,6 +61,7 @@
    @ApiModelProperty("资金类型(0中预资金,1国债资金,2超长期国债,3地方政府专项债)")
    private String fundType;
    private List<String> fundTypeList;
    /** 投资类别(0企业投资,1政府投资,2外商投资,3境外投资) */
    @ApiModelProperty("投资类别(0企业投资,1政府投资,2外商投资,3境外投资)")
    private String investType;
@@ -76,6 +77,10 @@
    /** 主管部门(对应审批部门id) */
    @ApiModelProperty("主管部门(对应审批部门id)")
    private List<Long> competentDepartmentList;
    private String competentDepartment;
    /** 行政区域 */
    @ApiModelProperty("行政区域")
@@ -93,7 +98,7 @@
    /** 重点分类  (0省重点项目,  1遂宁市重点项目,  2.射洪市重点项目,  3.一般项目) */
    @ApiModelProperty("重点分类  (0省重点项目,  1遂宁市重点项目,  2.射洪市重点项目,  3.一般项目)")
    private String importanceType;
    private List<String> importanceTypeList;
//    /** 年度投资计划 */
//    @ApiModelProperty("年度投资计划")
//    private String year;
@@ -196,6 +201,7 @@
        if(vo == null) {
            vo = new ProjectInfoVO();
        }
        BeanUtils.copyProperties(entity, vo);
        //主管部门转成list
        String competentDepartment = entity.getCompetentDepartment();
@@ -210,6 +216,19 @@
        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;
    }
    //转换字符串集合字段
@@ -227,5 +246,19 @@
        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(",")));
        }
    }
}