提交 bba0c57f authored 作者: taojinlong's avatar taojinlong

fix: excel 多sheets页面

上级 1ba98b57
...@@ -885,12 +885,14 @@ public class ExtractDataService { ...@@ -885,12 +885,14 @@ public class ExtractDataService {
List<String> sheetNames = new ArrayList<>(); List<String> sheetNames = new ArrayList<>();
List<String> files = new ArrayList<>(); List<String> files = new ArrayList<>();
List<String> filesRequired = new ArrayList<>();
for (ExcelSheetData excelSheetData : excelSheetDataList) { for (ExcelSheetData excelSheetData : excelSheetDataList) {
if(!sheetNames.contains(excelSheetData.getExcelLable())){ if(!sheetNames.contains(excelSheetData.getExcelLable())){
sheetNames.add(excelSheetData.getExcelLable()); sheetNames.add(excelSheetData.getExcelLable());
} }
if(!files.contains(excelSheetData.getPath())){ if(!files.contains(excelSheetData.getPath())){
files.add(excelSheetData.getPath()); files.add(excelSheetData.getPath());
filesRequired.add("Y");
} }
} }
if (StringUtils.equalsIgnoreCase(suffix, "xlsx")) { if (StringUtils.equalsIgnoreCase(suffix, "xlsx")) {
...@@ -903,6 +905,7 @@ public class ExtractDataService { ...@@ -903,6 +905,7 @@ public class ExtractDataService {
} }
excelInputMeta.setPassword("Encrypted"); excelInputMeta.setPassword("Encrypted");
excelInputMeta.setFileName( files.toArray(new String[files.size()])); excelInputMeta.setFileName( files.toArray(new String[files.size()]));
excelInputMeta.setFileRequired(filesRequired.toArray(new String[filesRequired.size()]));
excelInputMeta.setStartsWithHeader(true); excelInputMeta.setStartsWithHeader(true);
excelInputMeta.setIgnoreEmptyRows(true); excelInputMeta.setIgnoreEmptyRows(true);
ExcelInputField[] fields = new ExcelInputField[datasetTableFields.size()]; ExcelInputField[] fields = new ExcelInputField[datasetTableFields.size()];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论