!58 cell的cellType由Numeric修正为String

Merge pull request !58 from 4ook/master
This commit is contained in:
若依 2020-08-05 11:38:44 +08:00 committed by Gitee
commit 1a7baa0639
1 changed files with 1 additions and 1 deletions

View File

@ -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())