fix: resolve export row generic inference

This commit is contained in:
2026-07-23 18:45:48 +08:00
parent 6b913ce8b9
commit e2c9d7e72d

View File

@@ -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.<RecruitmentFairExportRow>emptyList() : rows) {
Row row = sheet.createRow(rowIndex++);
List<Object> rowValues = values.values(rowData);
for (int i = 0; i < rowValues.size(); i++) {
@@ -168,7 +169,8 @@ public class RecruitmentFairExportService
CellStyle headerStyle)
{
Map<String, List<RecruitmentFairExportRow>> groups = new LinkedHashMap<>();
for (RecruitmentFairExportRow row : rows == null ? Collections.emptyList() : rows) {
for (RecruitmentFairExportRow row : rows == null
? Collections.<RecruitmentFairExportRow>emptyList() : rows) {
String key = row.getCompanyId() == null ? safe(row.getCompanyName())
: String.valueOf(row.getCompanyId());
groups.computeIfAbsent(key, ignored -> new ArrayList<>()).add(row);