update 按代码规范补全重写注解

Signed-off-by: 梁剑锋 <1822213252@qq.com>
This commit is contained in:
梁剑锋 2023-04-06 09:03:17 +00:00 committed by Gitee
parent 8619d97749
commit 1ad5a526e7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,8 @@ import org.springframework.stereotype.Component;
public class DeptNameTranslationImpl implements TranslationInterface<String> {
private final DeptService deptService;
@Override
public String translation(Object key, String other) {
return deptService.selectDeptNameByIds(key.toString());
}

View File

@ -20,6 +20,7 @@ public class DictTypeTranslationImpl implements TranslationInterface<String> {
private final DictService dictService;
@Override
public String translation(Object key, String other) {
if (key instanceof String && StringUtils.isNotBlank(other)) {
return dictService.getDictLabel(other, key.toString());

View File

@ -19,6 +19,7 @@ public class OssUrlTranslationImpl implements TranslationInterface<String> {
private final OssService ossService;
@Override
public String translation(Object key, String other) {
return ossService.selectUrlByIds(key.toString());
}

View File

@ -19,6 +19,7 @@ public class UserNameTranslationImpl implements TranslationInterface<String> {
private final UserService userService;
@Override
public String translation(Object key, String other) {
if (key instanceof Long) {
return userService.selectUserNameById((Long) key);