Commit 27c5b5f369eb24b321d02639767c1111b2339064
1 parent
b27964b4
解决敏感词导出excel内容为500错误问题
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sensitiveword/vo/SensitiveWordExcelVO.java
| ... | ... | @@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.system.controller.admin.sensitiveword.vo; |
| 2 | 2 | |
| 3 | 3 | import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; |
| 4 | 4 | import cn.iocoder.yudao.framework.excel.core.convert.DictConvert; |
| 5 | +import cn.iocoder.yudao.framework.excel.core.convert.JsonConvert; | |
| 5 | 6 | import cn.iocoder.yudao.module.system.enums.DictTypeConstants; |
| 6 | 7 | import com.alibaba.excel.annotation.ExcelProperty; |
| 7 | 8 | import lombok.Data; |
| ... | ... | @@ -23,7 +24,7 @@ public class SensitiveWordExcelVO { |
| 23 | 24 | @ExcelProperty("敏感词") |
| 24 | 25 | private String name; |
| 25 | 26 | |
| 26 | - @ExcelProperty("标签") | |
| 27 | + @ExcelProperty(value = "标签", converter = JsonConvert.class) | |
| 27 | 28 | private List<String> tags; |
| 28 | 29 | |
| 29 | 30 | @ExcelProperty(value = "状态", converter = DictConvert.class) | ... | ... |