!22 增加【前缀:"un_trans:"】,修复导入数据时,无法正确翻译的问题。
Merge pull request !22 from xlt/master
This commit is contained in:
commit
8879f9bc0b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user