From e7ed4afe798f60f8abddff3a4fa86ca256daa76d Mon Sep 17 00:00:00 2001 From: David Wei Date: 星期三, 08 十一月 2023 10:29:35 +0800 Subject: [PATCH] update 登录策略代码优化 --- ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java index 8f0ebb3..96f1cd3 100644 --- a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java +++ b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/UserNameTranslationImpl.java @@ -17,6 +17,7 @@ private final UserService userService; + @Override public String translation(Object key, String other) { if (key instanceof Long id) { return userService.selectUserNameById(id); -- Gitblit v1.9.3