fix: resolve export row generic inference
This commit is contained in:
@@ -154,7 +154,8 @@ public class RecruitmentFairExportService
|
|||||||
{
|
{
|
||||||
writeHeader(sheet, headers, headerStyle);
|
writeHeader(sheet, headers, headerStyle);
|
||||||
int rowIndex = 1;
|
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++);
|
Row row = sheet.createRow(rowIndex++);
|
||||||
List<Object> rowValues = values.values(rowData);
|
List<Object> rowValues = values.values(rowData);
|
||||||
for (int i = 0; i < rowValues.size(); i++) {
|
for (int i = 0; i < rowValues.size(); i++) {
|
||||||
@@ -168,7 +169,8 @@ public class RecruitmentFairExportService
|
|||||||
CellStyle headerStyle)
|
CellStyle headerStyle)
|
||||||
{
|
{
|
||||||
Map<String, List<RecruitmentFairExportRow>> groups = new LinkedHashMap<>();
|
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 key = row.getCompanyId() == null ? safe(row.getCompanyName())
|
||||||
: String.valueOf(row.getCompanyId());
|
: String.valueOf(row.getCompanyId());
|
||||||
groups.computeIfAbsent(key, ignored -> new ArrayList<>()).add(row);
|
groups.computeIfAbsent(key, ignored -> new ArrayList<>()).add(row);
|
||||||
|
|||||||
Reference in New Issue
Block a user