优化excel/scale属性导出单元格数值类型

pull/400/head
RuoYi 2022-08-09 08:01:47 +08:00
parent d318b719fc
commit 8fcc548d34
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ public class ExcelUtil<T>
}
else if (value instanceof BigDecimal && -1 != attr.scale())
{
cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).toString());
cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).doubleValue());
}
else if (!attr.handler().equals(ExcelHandlerAdapter.class))
{