mirror of https://gitee.com/y_project/RuoYi.git
Excel导出类型NUMERIC支持精度浮点类型
parent
7b3517f699
commit
fc2b73f2a8
|
@ -509,7 +509,7 @@ public class ExcelUtil<T>
|
|||
else if (ColumnType.NUMERIC == attr.cellType())
|
||||
{
|
||||
cell.setCellType(CellType.NUMERIC);
|
||||
cell.setCellValue(Integer.parseInt(value + ""));
|
||||
cell.setCellValue(StringUtils.contains(Convert.toStr(value), ".") ? Convert.toDouble(value) : Convert.toInt(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue