正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -911,6 +911,10 @@ public class ExcelUtil<T> | @@ -911,6 +911,10 @@ public class ExcelUtil<T> | ||
| 911 | { | 911 | { |
| 912 | cellValue = RegExUtils.replaceFirst(cellValue, FORMULA_REGEX_STR, "\t$0"); | 912 | cellValue = RegExUtils.replaceFirst(cellValue, FORMULA_REGEX_STR, "\t$0"); |
| 913 | } | 913 | } |
| 914 | + if (value instanceof Collection && StringUtils.equals("[]", cellValue)) | ||
| 915 | + { | ||
| 916 | + cellValue = StringUtils.EMPTY; | ||
| 917 | + } | ||
| 914 | cell.setCellValue(StringUtils.isNull(cellValue) ? attr.defaultValue() : cellValue + attr.suffix()); | 918 | cell.setCellValue(StringUtils.isNull(cellValue) ? attr.defaultValue() : cellValue + attr.suffix()); |
| 915 | } | 919 | } |
| 916 | else if (ColumnType.NUMERIC == attr.cellType()) | 920 | else if (ColumnType.NUMERIC == attr.cellType()) |
-
请 注册 或 登录 后发表评论