perf(数据源): Excel 数据源上传失败

This commit is contained in:
fit2cloud-chenyw
2024-12-10 18:45:12 +08:00
parent e2082a1fe5
commit 1c400d4440

View File

@@ -773,8 +773,10 @@ public class DatasourceServer implements DatasourceApi {
private static final Integer append = 1;
public ExcelFileData excelUpload(@RequestParam("file") MultipartFile file, @RequestParam("id") long datasourceId, @RequestParam("editType") Integer editType) throws DEException {
CoreDatasource coreDatasource = dataSourceManage.getCoreDatasource(datasourceId);
CoreDatasource coreDatasource = null;
if (ObjectUtils.isNotEmpty(datasourceId) && 0L != datasourceId) {
coreDatasource = dataSourceManage.getCoreDatasource(datasourceId);
}
ExcelUtils excelUtils = new ExcelUtils();
ExcelFileData excelFileData = excelUtils.excelSaveAndParse(file);