fix: 过滤掉没有列名的 sheet 页面

This commit is contained in:
taojinlong 2021-12-01 17:14:16 +08:00
parent 6053d0565d
commit 244e895195

View File

@ -1263,7 +1263,7 @@ public class DataSetTableService {
} else { } else {
retrunSheetDataList = excelSheetDataList; retrunSheetDataList = excelSheetDataList;
} }
retrunSheetDataList = retrunSheetDataList.stream().filter(excelSheetData -> CollectionUtils.isNotEmpty(excelSheetData.getFields())).collect(Collectors.toList());
// save file // save file
String excelId = UUID.randomUUID().toString(); String excelId = UUID.randomUUID().toString();
String filePath = saveFile(file, excelId); String filePath = saveFile(file, excelId);