update:修改用户名的字段返回值

This commit is contained in:
sunzheng
2024-09-19 16:18:48 +08:00
parent 1a658915f5
commit 4e24874fd3
4 changed files with 9 additions and 2 deletions
@@ -259,7 +259,11 @@ public class TranslationAspect {
continue; //跳过循环
}
if (!StringUtils.isEmpty(table) && StrUtil.isNotBlank(text)) {
tmpValue = commonAPI.queryTableDictTextByKey(table, text, code, k.trim());
if ("sys_user".equals(table)&&"realname".equals(text)&&"id".equals(code)){
tmpValue = commonAPI.translateUserRealNameFromTable(k.trim());
}else {
tmpValue = commonAPI.queryTableDictTextByKey(table, text, code, k.trim());
}
} else {
List<SysDictItemCore> listNew = listDict.stream()
.filter(o -> Objects.equals(o.getDictCode(), code) &&