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

Merge pull request !227 from 颜奕强/N/A
pull/229/head
若依 2 years ago committed by Gitee
commit d56ef651e3
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()) 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)) else if (!attr.handler().equals(ExcelHandlerAdapter.class))
{ {

Loading…
Cancel
Save