We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
工作表.xls
DataListener listener = new DataListener (); EasyExcel.read(file.getInputStream(),listener) .extraRead(CellExtraTypeEnum.MERGE) .ignoreEmptyRow(false) .sheet(index) .headRowNumber(0) .doRead(); @Slf4j public class DataListener extends AnalysisEventListener<Map<Integer, String>> { private List<Map<Integer, String>> dataList = new ArrayList<>(); private List<CellExtra> cellExtraList = new ArrayList<>(); private Integer emptyRow = 0; @Override public void invoke(Map<Integer, String> data, AnalysisContext analysisContext) { dataList.add(data); } @Override public void doAfterAllAnalysed(AnalysisContext context) { } @Override public void extra(CellExtra extra, AnalysisContext context) { switch (extra.getType()) { case MERGE: cellExtraList.add(extra); break; default: } } public List<Map<Integer, String>> getDataList() { return dataList; } public List<CellExtra> getCellExtraList() { return cellExtraList; } public void clear(){ dataList.clear(); cellExtraList.clear(); } }
The text was updated successfully, but these errors were encountered:
zhuangjiaju
No branches or pull requests
触发场景描述
工作表.xls
触发Bug的代码
The text was updated successfully, but these errors were encountered: