正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -471,7 +471,12 @@ public class ExcelUtil<T> | @@ -471,7 +471,12 @@ public class ExcelUtil<T> | ||
| 471 | } | 471 | } |
| 472 | else if (StringUtils.isNotEmpty(attr.dictType())) | 472 | else if (StringUtils.isNotEmpty(attr.dictType())) |
| 473 | { | 473 | { |
| 474 | - val = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator()); | 474 | + if (!sysDictMap.containsKey(attr.dictType() + val)) |
| 475 | + { | ||
| 476 | + String dictValue = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator()); | ||
| 477 | + sysDictMap.put(attr.dictType() + val, dictValue); | ||
| 478 | + } | ||
| 479 | + val = sysDictMap.get(attr.dictType() + val); | ||
| 475 | } | 480 | } |
| 476 | else if (!attr.handler().equals(ExcelHandlerAdapter.class)) | 481 | else if (!attr.handler().equals(ExcelHandlerAdapter.class)) |
| 477 | { | 482 | { |
-
请 注册 或 登录 后发表评论