|
|
@ -207,10 +207,10 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
String errors = JSON.toJSONString(errorRows.get()); |
|
|
|
//String errors = JSON.toJSONString(errorRows.get());
|
|
|
|
//String skipeds = JSON.toJSONString(skipedRows.get());
|
|
|
|
|
|
|
|
log.error(errors); |
|
|
|
//log.error(errors);
|
|
|
|
//log.error(skipeds);
|
|
|
|
|
|
|
|
try { |
|
|
@ -920,6 +920,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
//public static final ThreadLocal<Map<String, List<ErrorRow>>> errorRows = new ThreadLocal<>();
|
|
|
|
|
|
|
|
String fileName = "导入失败条目清单.xls"; |
|
|
|
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); |
|
|
|
response.setHeader("content-Type", "application/vnd.ms-excel"); |
|
|
|
response.setHeader("Content-Disposition", "attachment;fileName=" + URLEncoder.encode(fileName, "UTF-8")); |
|
|
|
|
|
|
@ -928,7 +929,7 @@ public class IcResiUserImportServiceImpl implements IcResiUserImportService, Res |
|
|
|
list.addAll(entry.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
list.forEach(row -> {System.out.println(row.getTableName());row.setSheetName(IcResiUserTableEnums.getObjectByTableName(row.tableName).getTableComment());}); |
|
|
|
//list.forEach(row -> {System.out.println(row.getTableName());row.setSheetName(IcResiUserTableEnums.getObjectByTableName(row.tableName).getTableComment());});
|
|
|
|
|
|
|
|
Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams("导入失败的条目列表","导入失败"), |
|
|
|
ErrorRow.class, list); |
|
|
|