修改Excel设置STRING单元格类型

pull/197/head
RuoYi 2020-08-05 13:01:03 +08:00
parent 30278a0451
commit 4a64a9269a
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,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())