Commit a9695d1756d2dce623bf6f0d4a627f44850dce3d

Authored by mazh
1 parent b5689885

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

ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java
... ... @@ -476,7 +476,7 @@ public class ExcelUtil<T>
476 476 {
477 477 if (ColumnType.STRING == attr.cellType())
478 478 {
479   - cell.setCellType(CellType.NUMERIC);
  479 + cell.setCellType(CellType.STRING);
480 480 cell.setCellValue(StringUtils.isNull(value) ? attr.defaultValue() : value + attr.suffix());
481 481 }
482 482 else if (ColumnType.NUMERIC == attr.cellType())
... ...