平台件认证清单导出

This commit is contained in:
zhn
2023-09-26 10:46:44 +08:00
parent d22ef821a9
commit d60ebb4a3c
@@ -35,11 +35,9 @@ import com.jero.modules.platform.service.IPlatformProjectCertificationInventoryE
import com.jero.modules.platform.service.IPlatformProjectLawsInventoryEOService; import com.jero.modules.platform.service.IPlatformProjectLawsInventoryEOService;
import com.jero.modules.platform.service.IPlatformProjectLibraryBaseService; import com.jero.modules.platform.service.IPlatformProjectLibraryBaseService;
import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEO; import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEO;
import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEOEn;
import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEOEnPlatform; import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEOEnPlatform;
import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEOPlatform; import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginnerEOPlatform;
import com.jero.modules.project.entity.ProjectCertificationInventoryEO; import com.jero.modules.project.entity.ProjectCertificationInventoryEO;
import com.jero.modules.project.entity.ProjectCertificationInventoryEOEn;
import com.jero.modules.project.entity.ProjectCertificationInventoryEOEnPlatform; import com.jero.modules.project.entity.ProjectCertificationInventoryEOEnPlatform;
import com.jero.modules.project.entity.ProjectCertificationInventoryEOPlatform; import com.jero.modules.project.entity.ProjectCertificationInventoryEOPlatform;
import com.jero.modules.project.entity.ProjectCertificationInventoryLogEO; import com.jero.modules.project.entity.ProjectCertificationInventoryLogEO;
@@ -5529,26 +5527,50 @@ public class PlatformProjectCertificationInventoryEOServiceImpl extends ServiceI
if(CutEnum.CN.getValue().equals(projectCertificationInventoryEO.getCut())){ if(CutEnum.CN.getValue().equals(projectCertificationInventoryEO.getCut())){
if(ProjectRoleEnum.INTERFACE_PERSON.getValue().equals(roleCode) || if(ProjectRoleEnum.INTERFACE_PERSON.getValue().equals(roleCode) ||
ProjectRoleEnum.PERSON_LIABLE.getValue().equals(roleCode)){ ProjectRoleEnum.PERSON_LIABLE.getValue().equals(roleCode)){
workbook = ExcelExportUtil.exportExcel(exportParams, ProjectCertificationInventoryDutyEnginnerEOPlatform.class, copy); List<ProjectCertificationInventoryDutyEnginnerEOPlatform> projectCertificationInventoryDutyEnginnerEOPlatformList = new ArrayList<>();
for (ProjectCertificationInventoryDutyEnginnerEO projectCertificationInventoryDutyEnginnerEO : copy) {
ProjectCertificationInventoryDutyEnginnerEOPlatform projectCertificationInventoryDutyEnginnerEOPlatform = new ProjectCertificationInventoryDutyEnginnerEOPlatform();
BeanUtils.copyProperties(projectCertificationInventoryDutyEnginnerEO,projectCertificationInventoryDutyEnginnerEOPlatform);
projectCertificationInventoryDutyEnginnerEOPlatformList.add(projectCertificationInventoryDutyEnginnerEOPlatform);
}
workbook = ExcelExportUtil.exportExcel(exportParams, ProjectCertificationInventoryDutyEnginnerEOPlatform.class, projectCertificationInventoryDutyEnginnerEOPlatformList);
}else{ }else{
workbook = ExcelExportUtil.exportExcel(exportParams, ProjectCertificationInventoryEOPlatform.class, dataList); List<ProjectCertificationInventoryEOPlatform> projectCertificationInventoryEOPlatformList = new ArrayList<>();
for (ProjectCertificationInventoryEO certificationInventoryEO : dataList) {
ProjectCertificationInventoryEOPlatform projectCertificationInventoryEOPlatform = new ProjectCertificationInventoryEOPlatform();
BeanUtils.copyProperties(certificationInventoryEO,projectCertificationInventoryEOPlatform);
projectCertificationInventoryEOPlatformList.add(projectCertificationInventoryEOPlatform);
}
workbook = ExcelExportUtil.exportExcel(exportParams, ProjectCertificationInventoryEOPlatform.class, projectCertificationInventoryEOPlatformList);
} }
}else{ }else{
if(ProjectRoleEnum.INTERFACE_PERSON.getValue().equals(roleCode) || if(ProjectRoleEnum.INTERFACE_PERSON.getValue().equals(roleCode) ||
ProjectRoleEnum.PERSON_LIABLE.getValue().equals(roleCode)){ ProjectRoleEnum.PERSON_LIABLE.getValue().equals(roleCode)){
List<ProjectCertificationInventoryDutyEnginnerEOEn> copyEn = new ArrayList<>(); // List<ProjectCertificationInventoryDutyEnginnerEOEn> copyEn = new ArrayList<>();
// for (ProjectCertificationInventoryDutyEnginnerEO projectCertificationInventoryDutyEnginnerEOTemp : copy) {
// ProjectCertificationInventoryDutyEnginnerEOEn projectCertificationInventoryDutyEnginnerEOEn = new ProjectCertificationInventoryDutyEnginnerEOEn();
// BeanUtils.copyProperties(projectCertificationInventoryDutyEnginnerEOTemp,projectCertificationInventoryDutyEnginnerEOEn);
// copyEn.add(projectCertificationInventoryDutyEnginnerEOEn);
// }
List<ProjectCertificationInventoryDutyEnginnerEOEnPlatform> copyEn = new ArrayList<>();
for (ProjectCertificationInventoryDutyEnginnerEO projectCertificationInventoryDutyEnginnerEOTemp : copy) { for (ProjectCertificationInventoryDutyEnginnerEO projectCertificationInventoryDutyEnginnerEOTemp : copy) {
ProjectCertificationInventoryDutyEnginnerEOEn projectCertificationInventoryDutyEnginnerEOEn = new ProjectCertificationInventoryDutyEnginnerEOEn(); ProjectCertificationInventoryDutyEnginnerEOEnPlatform projectCertificationInventoryDutyEnginnerEOEnPlatform = new ProjectCertificationInventoryDutyEnginnerEOEnPlatform();
BeanUtils.copyProperties(projectCertificationInventoryDutyEnginnerEOTemp,projectCertificationInventoryDutyEnginnerEOEn); BeanUtils.copyProperties(projectCertificationInventoryDutyEnginnerEOTemp,projectCertificationInventoryDutyEnginnerEOEnPlatform);
copyEn.add(projectCertificationInventoryDutyEnginnerEOEn); copyEn.add(projectCertificationInventoryDutyEnginnerEOEnPlatform);
} }
workbook = ExcelExportUtil.exportExcel(exportParams, ProjectCertificationInventoryDutyEnginnerEOEnPlatform.class, copyEn); workbook = ExcelExportUtil.exportExcel(exportParams, ProjectCertificationInventoryDutyEnginnerEOEnPlatform.class, copyEn);
}else{ }else{
List<ProjectCertificationInventoryEOEn> dataListEn = new ArrayList<>(); // List<ProjectCertificationInventoryEOEn> dataListEn = new ArrayList<>();
// for (ProjectCertificationInventoryEO projectCertificationInventoryEOTemp : dataList) {
// ProjectCertificationInventoryEOEn projectCertificationInventoryEOEn = new ProjectCertificationInventoryEOEn();
// BeanUtils.copyProperties(projectCertificationInventoryEOTemp,projectCertificationInventoryEOEn);
// dataListEn.add(projectCertificationInventoryEOEn);
// }
List<ProjectCertificationInventoryEOEnPlatform> dataListEn = new ArrayList<>();
for (ProjectCertificationInventoryEO projectCertificationInventoryEOTemp : dataList) { for (ProjectCertificationInventoryEO projectCertificationInventoryEOTemp : dataList) {
ProjectCertificationInventoryEOEn projectCertificationInventoryEOEn = new ProjectCertificationInventoryEOEn(); ProjectCertificationInventoryEOEnPlatform projectCertificationInventoryEOEnPlatform = new ProjectCertificationInventoryEOEnPlatform();
BeanUtils.copyProperties(projectCertificationInventoryEOTemp,projectCertificationInventoryEOEn); BeanUtils.copyProperties(projectCertificationInventoryEOTemp,projectCertificationInventoryEOEnPlatform);
dataListEn.add(projectCertificationInventoryEOEn); dataListEn.add(projectCertificationInventoryEOEnPlatform);
} }
//下拉选中英文转换 //下拉选中英文转换
// transition(dataListEn,projectCertificationInventoryEO); // transition(dataListEn,projectCertificationInventoryEO);