mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 【数据源】excel 数据源追加,excel 多个 sheet 都需要加载
This commit is contained in:
@@ -433,6 +433,7 @@ public class DatasourceServer implements DatasourceApi {
|
||||
commonThreadPool.addTask(() -> {
|
||||
datasourceSyncManage.extractExcelData(requestDatasource, "add_scope");
|
||||
});
|
||||
ExcelUtils.mergeSheets(requestDatasource, sourceData);
|
||||
dataSourceManage.checkName(dataSourceDTO);
|
||||
dataSourceManage.innerEdit(requestDatasource);
|
||||
}
|
||||
@@ -796,9 +797,6 @@ public class DatasourceServer implements DatasourceApi {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isEmpty(excelSheetDataList) || excelSheetDataList.size() != datasetTableDTOS.size()) {
|
||||
DEException.throwException("上传文件与源文件不一致,请检查文件!");
|
||||
}
|
||||
excelFileData.setSheets(excelSheetDataList);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user