修复BUG: 导出Excel功能, 当attr的cellType为String时, cell的cellType由Numeric修正为String。

master
mazh 4 years ago
parent b56898858d
commit a9695d1756
  1. 2
      ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java

@ -476,7 +476,7 @@ public class ExcelUtil<T>
{
if (ColumnType.STRING == attr.cellType())
{
cell.setCellType(CellType.NUMERIC);
cell.setCellType(CellType.STRING);
cell.setCellValue(StringUtils.isNull(value) ? attr.defaultValue() : value + attr.suffix());
}
else if (ColumnType.NUMERIC == attr.cellType())

Loading…
Cancel
Save