autopoi icon indicating copy to clipboard operation
autopoi copied to clipboard

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

Open renzhuyan opened this issue 3 years ago • 4 comments

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

renzhuyan avatar Apr 23 '21 13:04 renzhuyan

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

zhangdaiscott avatar Apr 24 '21 09:04 zhangdaiscott

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

renzhuyan avatar Apr 24 '21 14:04 renzhuyan

+1

chenshouzuo avatar May 25 '21 03:05 chenshouzuo

没有解决方案吗

15610608565 avatar May 19 '22 09:05 15610608565