fix: 88410 法规符合性评估库--导出文件有代码

This commit is contained in:
2024-08-11 18:34:09 +08:00
parent 83f2033190
commit 8746770cd8
3 changed files with 3 additions and 1 deletions
@@ -94,7 +94,7 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
@RequiresPermissions("lawsEvaluationNotMet:export")
@GetMapping(value = "/exportXls")
public void exportXls(HttpServletResponse response, LawsEvaluationNotMetLibrary lawsEvaluationNotMet, HttpServletRequest req) {
lawsEvaluationNotMetLibraryService.export(response, lawsEvaluationNotMet, "不符合项", "不符合项", req);
lawsEvaluationNotMetLibraryService.export(response, lawsEvaluationNotMet, "不符合项", "不符合项", req);
}
}
@@ -186,6 +186,7 @@ public class LawsConformityAssessmentLibraryServiceImpl extends ServiceImpl<Laws
// 生成excel
ExportParams exportParams = new ExportParams();
exportParams.setType(ExcelType.HSSF);
exportParams.setSheetName(sheetName);
// 复制一份数据
List<LawsConformityAssessmentLibraryExportVO> newRecordsExport = new ArrayList<>(recordsExport);
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, LawsConformityAssessmentLibraryExportVO.class, recordsExport);
@@ -130,6 +130,7 @@ public class LawsEvaluationNotMetLibraryServiceImpl extends ServiceImpl<LawsEval
// 生成excel
ExportParams exportParams = new ExportParams();
exportParams.setType(ExcelType.HSSF);
exportParams.setSheetName(sheetName);
// 复制一份数据
List<LawsEvaluationNotMetLibrary> newRecordsExport = new ArrayList<>(records);
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, LawsEvaluationNotMetLibrary.class, records);