"jetbrains:/idea/checkout/git" did not exist on "e40eb6b763245a27d6189032dadadd6a3ccfc79a"
Commit 33793d8e authored by RuoYi's avatar RuoYi
Browse files

Excel导出类型NUMERIC支持精度浮点类型

parent 96529069
......@@ -503,7 +503,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));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment