From 3ef6282f21cccf62e0868eea4f82ef0ee30d481a Mon Sep 17 00:00:00 2001 From: Jiaju Zhuang Date: Tue, 24 Sep 2019 18:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dxls=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=8E=B7=E5=8F=96sheetList=E7=9A=84bug=20#621?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alibaba/excel/analysis/v03/handlers/BofRecordHandler.java | 2 +- .../test/core/multiplesheets/MultipleSheetsDataTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/alibaba/excel/analysis/v03/handlers/BofRecordHandler.java b/src/main/java/com/alibaba/excel/analysis/v03/handlers/BofRecordHandler.java index 384f751..d6a93a5 100644 --- a/src/main/java/com/alibaba/excel/analysis/v03/handlers/BofRecordHandler.java +++ b/src/main/java/com/alibaba/excel/analysis/v03/handlers/BofRecordHandler.java @@ -49,7 +49,6 @@ public class BofRecordHandler extends AbstractXlsRecordHandler { ReadSheet readSheet = new ReadSheet(sheetIndex, orderedBsrs[sheetIndex].getSheetname()); sheets.add(readSheet); } - sheetIndex++; if (context.readSheetHolder() != null) { if (sheetIndex == context.readSheetHolder().getSheetNo()) { context.readWorkbookHolder().setIgnoreRecord03(Boolean.FALSE); @@ -57,6 +56,7 @@ public class BofRecordHandler extends AbstractXlsRecordHandler { context.readWorkbookHolder().setIgnoreRecord03(Boolean.TRUE); } } + sheetIndex++; } } } diff --git a/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java b/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java index a309027..579a821 100644 --- a/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java +++ b/src/test/java/com/alibaba/easyexcel/test/core/multiplesheets/MultipleSheetsDataTest.java @@ -36,7 +36,7 @@ public class MultipleSheetsDataTest { } @Test - public void t020Read03() { + public void t02Read03() { read(file03); }