fix: float字段导出Excel时值不正确的问题

This commit is contained in:
jinle 2020-05-27 00:16:01 +08:00 committed by Gitee
parent 30b3909fc4
commit f9e9f3d7b4
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ public class ExcelUtil<T>
else if (ColumnType.NUMERIC == attr.cellType()) else if (ColumnType.NUMERIC == attr.cellType())
{ {
cell.setCellType(CellType.NUMERIC); cell.setCellType(CellType.NUMERIC);
cell.setCellValue(Integer.parseInt(value + "")); cell.setCellValue(((Number)value).doubleValue());
} }
} }