diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java index 2502104c..c391437f 100644 --- a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java +++ b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DeptNameTranslationImpl.java @@ -17,6 +17,7 @@ public class DeptNameTranslationImpl implements TranslationInterface { private final DeptService deptService; + @Override public String translation(Object key, String other) { if (key instanceof String ids) { return deptService.selectDeptNameByIds(ids); diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java index 4fc4adcc..859a93ea 100644 --- a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java +++ b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/DictTypeTranslationImpl.java @@ -18,6 +18,7 @@ public class DictTypeTranslationImpl implements TranslationInterface { private final DictService dictService; + @Override public String translation(Object key, String other) { if (key instanceof String dictValue && StringUtils.isNotBlank(other)) { return dictService.getDictLabel(other, dictValue); diff --git a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java index f81aacb8..fc6f6dfa 100644 --- a/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java +++ b/ruoyi-common/ruoyi-common-translation/src/main/java/org/dromara/common/translation/core/impl/OssUrlTranslationImpl.java @@ -17,6 +17,7 @@ public class OssUrlTranslationImpl implements TranslationInterface { private final OssService ossService; + @Override public String translation(Object key, String other) { if (key instanceof String ids) { return ossService.selectUrlByIds(ids); 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 8f0ebb3b..96f1cd3e 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 @@ public class UserNameTranslationImpl implements TranslationInterface { private final UserService userService; + @Override public String translation(Object key, String other) { if (key instanceof Long id) { return userService.selectUserNameById(id);