Skip to content
New issue

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

能否提供读取空值单元格的功能? #14

Open
xingya771 opened this issue May 28, 2018 · 0 comments
Open

能否提供读取空值单元格的功能? #14

xingya771 opened this issue May 28, 2018 · 0 comments

Comments

@xingya771
Copy link

xingya771 commented May 28, 2018

readExcel2ObjectsHandler方法中是通过forEach迭代Row的方式获取的所有单元格,但是这种方式会忽略掉空的单元格。因为您的ExecelUtils是final类型的,所以能否在相关方法中加个参数控制支持读取空值?
`Cell cell=row.getCell(j);

String val;
if (cell == null) {
val="";
} else {
val = Utils.getCellValue(cell);
}
rows.add(val);
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant