Browse Source

修复导入数据为负浮点数时,导入结果会丢失精度问题

pull/256/head
RuoYi 4 years ago
parent
commit
033017c0ab
  1. 2
      ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java

2
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java

@ -1059,7 +1059,7 @@ public class ExcelUtil<T>
}
else
{
if ((Double) val % 1 > 0)
if ((Double) val % 1 != 0)
{
val = new BigDecimal(val.toString());
}

Loading…
Cancel
Save