fix: float字段导出Excel时值不正确的问题
This commit is contained in:
parent
30b3909fc4
commit
f9e9f3d7b4
|
|
@ -481,7 +481,7 @@ public class ExcelUtil<T>
|
|||
else if (ColumnType.NUMERIC == attr.cellType())
|
||||
{
|
||||
cell.setCellType(CellType.NUMERIC);
|
||||
cell.setCellValue(Integer.parseInt(value + ""));
|
||||
cell.setCellValue(((Number)value).doubleValue());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue