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

2.X
RuoYi 4 years ago committed by 疯狂的狮子li
parent d067409c2f
commit 95c2e5a084

@ -994,7 +994,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…
Cancel
Save