| | |
| | | * @return 数据列表 |
| | | * @throws VciBaseException 执行出错的时候会抛出异常 |
| | | */ |
| | | public static List<SheetDataSet> readDataObjectFromExcel(File file) throws VciBaseException { |
| | | public static List<SheetDataSet> readDataObjectFromExcel(File file) throws VciBaseException { |
| | | return readDataObjectFromExcel(file, SheetDataSet.class); |
| | | } |
| | | |
| | |
| | | try { |
| | | for (int sheetIndex = 0; sheetIndex < workbook.getNumberOfSheets(); sheetIndex++) { |
| | | Sheet sheet = workbook.getSheetAt(sheetIndex); |
| | | String sheetName=sheet.getSheetName(); |
| | | if(StringUtils.isNotBlank(excelOption.getSheetName())){ |
| | | if(!sheet.getSheetName().equalsIgnoreCase(excelOption.getSheetName())){ |
| | | continue; |