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

master
RuoYi 2021-01-08 11:08:43 +08:00
parent 4125f44179
commit c5899bfbf0
1 changed files with 1 additions and 1 deletions

View File

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