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

导入String类型去掉后缀.0是为啥? #42

Open
renzhuyan opened this issue Apr 23, 2021 · 4 comments
Open

导入String类型去掉后缀.0是为啥? #42

renzhuyan opened this issue Apr 23, 2021 · 4 comments

Comments

@renzhuyan
Copy link

CellValueServer.getValueByType(String xclass, Object result, ExcelImportEntity entity)判断为String类型,为什么要去掉后缀.0?实际导入会存在名称为xxx2.0,xxx3.0的数据

@zhangdaiscott
Copy link
Member

应该是为了统一处理小数点*.0

@renzhuyan
Copy link
Author

目前无法包含所有的场景,我认为我们自己的对象字段类型为String的时候,不应该去除*.0,如果定义的对象为Bigdecimal以及其它数值类型,再去除才比较合理。

@chenshouzuo
Copy link

+1

@15610608565
Copy link

没有解决方案吗

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

4 participants