update ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/poi/ExcelUtil.java.

* update:  数字类型应该转为double输出。若使用string输出,会导致生成的单元格变成文本类型。
pull/227/head
颜奕强 2 years ago committed by Gitee
parent c8a108b93a
commit 467557fef3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -888,7 +888,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))
{

Loading…
Cancel
Save