mirror of https://gitee.com/y_project/RuoYi.git
修改Excel设置STRING单元格类型
parent
30278a0451
commit
4a64a9269a
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue