mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 按代码规范补全重写注解
This commit is contained in:
		@@ -17,6 +17,7 @@ public class DeptNameTranslationImpl implements TranslationInterface<String> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private final DeptService deptService;
 | 
					    private final DeptService deptService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
    public String translation(Object key, String other) {
 | 
					    public String translation(Object key, String other) {
 | 
				
			||||||
        if (key instanceof String ids) {
 | 
					        if (key instanceof String ids) {
 | 
				
			||||||
            return deptService.selectDeptNameByIds(ids);
 | 
					            return deptService.selectDeptNameByIds(ids);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,7 @@ public class DictTypeTranslationImpl implements TranslationInterface<String> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private final DictService dictService;
 | 
					    private final DictService dictService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
    public String translation(Object key, String other) {
 | 
					    public String translation(Object key, String other) {
 | 
				
			||||||
        if (key instanceof String dictValue && StringUtils.isNotBlank(other)) {
 | 
					        if (key instanceof String dictValue && StringUtils.isNotBlank(other)) {
 | 
				
			||||||
            return dictService.getDictLabel(other, dictValue);
 | 
					            return dictService.getDictLabel(other, dictValue);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,6 +17,7 @@ public class OssUrlTranslationImpl implements TranslationInterface<String> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private final OssService ossService;
 | 
					    private final OssService ossService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
    public String translation(Object key, String other) {
 | 
					    public String translation(Object key, String other) {
 | 
				
			||||||
        if (key instanceof String ids) {
 | 
					        if (key instanceof String ids) {
 | 
				
			||||||
            return ossService.selectUrlByIds(ids);
 | 
					            return ossService.selectUrlByIds(ids);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,6 +17,7 @@ public class UserNameTranslationImpl implements TranslationInterface<String> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private final UserService userService;
 | 
					    private final UserService userService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
    public String translation(Object key, String other) {
 | 
					    public String translation(Object key, String other) {
 | 
				
			||||||
        if (key instanceof Long id) {
 | 
					        if (key instanceof Long id) {
 | 
				
			||||||
            return userService.selectUserNameById(id);
 | 
					            return userService.selectUserNameById(id);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user