Skip to content

Commit

Permalink
修复xls无法获取sheetList的bug #621
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangjiaju committed Sep 24, 2019
1 parent 791f0ca commit 3ef6282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ public void processRecord(Record record) {
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);
} else {
context.readWorkbookHolder().setIgnoreRecord03(Boolean.TRUE);
}
}
sheetIndex++;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void t01Read07() {
}

@Test
public void t020Read03() {
public void t02Read03() {
read(file03);
}

Expand Down

0 comments on commit 3ef6282

Please sign in to comment.