| | |
| | | List<Long> competentDepartmentList = form.getCompetentDepartmentList(); |
| | | if(!CollectionUtils.isEmpty(competentDepartmentList)){ |
| | | entity.setCompetentDepartment(StringUtils.join(competentDepartmentList, ",")); |
| | | } else { |
| | | entity.setCompetentDepartment(""); |
| | | } |
| | | //资金类型转换 |
| | | 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; |
| | | } |