mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
fix: 修复创建远程excel数据源失败
This commit is contained in:
@@ -183,7 +183,7 @@ public class ExcelUtils {
|
||||
if (sheet.getDeTableName().equalsIgnoreCase(datasourceRequest.getTable())) {
|
||||
List<TableField> tableFields = sheet.getFields();
|
||||
String suffix = fileNames.get("fileName").substring(fileNames.get("fileName").lastIndexOf(".") + 1);
|
||||
InputStream inputStream = new FileInputStream(path + datasourceRequest.getDatasource().getCreateBy() + "/" + fileNames.get("tranName"));
|
||||
InputStream inputStream = new FileInputStream(path + fileNames.get("tranName"));
|
||||
if (StringUtils.equalsIgnoreCase(suffix, "csv")) {
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));
|
||||
reader.readLine();//去掉表头
|
||||
|
||||
Reference in New Issue
Block a user