easyexcel icon indicating copy to clipboard operation
easyexcel copied to clipboard

导入时整数自动加了.0

Open wcccode opened this issue 7 years ago • 3 comments

异常代码

   // t is null ,it's means Empty or Number
   CellDataTypeEnum type = CellDataTypeEnum.buildFromCellType(attributes.getValue(CELL_VALUE_TYPE_TAG));

异常提示 整数会被格式化成小数如5变成5.0 建议描述 为什么Empty 要默认成数字呢?可以默认成字符串吗

wcccode avatar Sep 21 '19 03:09 wcccode

如果是2.0.1之前的版本 请先升级。如果不是 建议 使用 @NumberFormat("#") 接收 会去除小数点。这个问题会在下下个版本解决

zhuangjiaju avatar Sep 23 '19 12:09 zhuangjiaju

目前使用3.1.1版本还是存在此问题

libleo avatar Aug 09 '22 02:08 libleo

  您好,您的来信我已收到,谢谢!!!

wcccode avatar Aug 09 '22 02:08 wcccode