forked from github/dataease
fix: 替换excel文件失败
This commit is contained in:
parent
5969444127
commit
a84e27d687
@ -351,7 +351,7 @@ public class ExcelUtils {
|
||||
ReadCellData<?> cellData = headMap.get(key);
|
||||
String value = cellData.getStringValue();
|
||||
if (StringUtils.isEmpty(value)) {
|
||||
DEException.throwException(context.readSheetHolder().getSheetName() + ", 首行行中不允许有空单元格!");
|
||||
continue;
|
||||
}
|
||||
headerKey.add(key);
|
||||
header.add(value);
|
||||
|
@ -755,7 +755,7 @@ public class DatasourceServer implements DatasourceApi {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isEmpty(excelSheetDataList)) {
|
||||
if (CollectionUtils.isEmpty(excelSheetDataList) || excelSheetDataList.size() != datasetTableDTOS.size()) {
|
||||
DEException.throwException("上传文件与源文件不一致,请检查文件!");
|
||||
}
|
||||
excelFileData.setSheets(excelSheetDataList);
|
||||
|
Loading…
Reference in New Issue
Block a user