| | |
| | | |
| | | /** 主管部门(对应审批部门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(","))); |