!22 增加【前缀:"un_trans:"】,修复导入数据时,无法正确翻译的问题。

Merge pull request !22 from xlt/master
This commit is contained in:
阿沐 2024-08-19 02:53:47 +00:00 committed by Gitee
commit 8879f9bc0b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -210,7 +210,7 @@ public class ExcelUtils {
Field ref = ReflectUtils.getDeclaredField(clazz, trans.ref());
ref.setAccessible(true);
// 获取字典反向值
String value = dictionaryTransService.getDictionaryTransMap().get(trans.key() + "_" + ref.get(data));
String value = dictionaryTransService.getDictionaryTransMap().get("un_trans:" + trans.key() + "_" + ref.get(data));
if (StringUtils.isBlank(value)) {
continue;
}