forked from github/dataease
Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
c0e0e617f4
@ -664,6 +664,7 @@ public class DataSetTableService {
|
||||
tableFiled.setFieldName(readCell(row.getCell(j)));
|
||||
tableFiled.setRemarks(readCell(row.getCell(j)));
|
||||
tableFiled.setFieldType("TEXT");
|
||||
tableFiled.setFieldSize(1024);
|
||||
if(StringUtils.isEmpty(tableFiled.getFieldName())){
|
||||
continue;
|
||||
}
|
||||
@ -698,6 +699,9 @@ public class DataSetTableService {
|
||||
tableFiled.setRemarks(readCell(row.getCell(j)));
|
||||
tableFiled.setFieldType("TEXT");
|
||||
tableFiled.setFieldSize(1024);
|
||||
if(StringUtils.isEmpty(tableFiled.getFieldName())){
|
||||
continue;
|
||||
}
|
||||
fields.add(tableFiled);
|
||||
} else {
|
||||
r[j] = readCell(row.getCell(j));
|
||||
|
@ -497,8 +497,14 @@ public class ExtractDataService {
|
||||
}
|
||||
|
||||
private StepMeta excelInputStep(String filePath, List<DatasetTableField> datasetTableFields) {
|
||||
String suffix = filePath.substring(filePath.lastIndexOf(".") + 1);
|
||||
ExcelInputMeta excelInputMeta = new ExcelInputMeta();
|
||||
if (StringUtils.equalsIgnoreCase(suffix, "xlsx")) {
|
||||
excelInputMeta.setSpreadSheetType(SpreadSheetType.SAX_POI);
|
||||
}
|
||||
if (StringUtils.equalsIgnoreCase(suffix, "xls")) {
|
||||
excelInputMeta.setSpreadSheetType(SpreadSheetType.JXL);
|
||||
}
|
||||
excelInputMeta.setPassword("Encrypted");
|
||||
excelInputMeta.setFileName(new String[]{filePath});
|
||||
excelInputMeta.setStartsWithHeader(true);
|
||||
|
Loading…
Reference in New Issue
Block a user