diff --git a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/RecruitmentFairExportService.java b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/RecruitmentFairExportService.java index 52800e6..4ebe0cb 100644 --- a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/RecruitmentFairExportService.java +++ b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/RecruitmentFairExportService.java @@ -154,7 +154,8 @@ public class RecruitmentFairExportService { writeHeader(sheet, headers, headerStyle); int rowIndex = 1; - for (RecruitmentFairExportRow rowData : rows == null ? Collections.emptyList() : rows) { + for (RecruitmentFairExportRow rowData : rows == null + ? Collections.emptyList() : rows) { Row row = sheet.createRow(rowIndex++); List rowValues = values.values(rowData); for (int i = 0; i < rowValues.size(); i++) { @@ -168,7 +169,8 @@ public class RecruitmentFairExportService CellStyle headerStyle) { Map> groups = new LinkedHashMap<>(); - for (RecruitmentFairExportRow row : rows == null ? Collections.emptyList() : rows) { + for (RecruitmentFairExportRow row : rows == null + ? Collections.emptyList() : rows) { String key = row.getCompanyId() == null ? safe(row.getCompanyName()) : String.valueOf(row.getCompanyId()); groups.computeIfAbsent(key, ignored -> new ArrayList<>()).add(row);