mirror of https://gitee.com/y_project/RuoYi.git
修复导入数据为负浮点数时,导入结果会丢失精度问题
parent
e1c2a28752
commit
033017c0ab
|
@ -1059,7 +1059,7 @@ public class ExcelUtil<T>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((Double) val % 1 > 0)
|
if ((Double) val % 1 != 0)
|
||||||
{
|
{
|
||||||
val = new BigDecimal(val.toString());
|
val = new BigDecimal(val.toString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue