@ -17,6 +17,7 @@ public class DeptNameTranslationImpl implements TranslationInterface<String> {
private final DeptService deptService;
@Override
public String translation(Object key, String other) {
if (key instanceof String ids) {
return deptService.selectDeptNameByIds(ids);
@ -18,6 +18,7 @@ public class DictTypeTranslationImpl implements TranslationInterface<String> {
private final DictService dictService;
if (key instanceof String dictValue && StringUtils.isNotBlank(other)) {
return dictService.getDictLabel(other, dictValue);
@ -17,6 +17,7 @@ public class OssUrlTranslationImpl implements TranslationInterface<String> {
private final OssService ossService;
return ossService.selectUrlByIds(ids);
@ -17,6 +17,7 @@ public class UserNameTranslationImpl implements TranslationInterface<String> {
private final UserService userService;
if (key instanceof Long id) {
return userService.selectUserNameById(id);