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

当字段为Integer类型,excel导入,dict翻译时候,如果字段值有空格等情况不会自动过滤,而且很难排查 #124

Open
490937333 opened this issue Aug 2, 2024 · 0 comments

Comments

@490937333
Copy link

490937333 commented Aug 2, 2024

当字段为Integer类型,比如sex性别,字典里面性别1男 2女,如果excel输入的时候 是“女空格”的话,就无法处理,转换也不行,转换需要字段类型一致的情况
转换会报错,提示 Excel 值获取失败
ERROR o.jeecgframework.poi.excel.imports.CellValueServer:284 - For input string: "女 "
java.lang.NumberFormatException: For input string: "女 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.valueOf(Integer.java:766)

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