mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-08 05:17:42 +00:00
修复导入数据为负浮点数时丢失精度问题
This commit is contained in:
@@ -994,7 +994,7 @@ public class ExcelUtil<T>
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((Double) val % 1 > 0)
|
||||
if ((Double) val % 1 != 0)
|
||||
{
|
||||
val = new BigDecimal(val.toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user