Sfoglia il codice sorgente

添加缺少的@Override

Sxile 5 anni fa
parent
commit
230d4170e1

+ 3 - 0
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/text/UUID.java

@@ -376,6 +376,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
376
      *
376
      *
377
      * @return UUID 的哈希码值。
377
      * @return UUID 的哈希码值。
378
      */
378
      */
379
+    @Override
379
     public int hashCode()
380
     public int hashCode()
380
     {
381
     {
381
         long hilo = mostSigBits ^ leastSigBits;
382
         long hilo = mostSigBits ^ leastSigBits;
@@ -391,6 +392,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
391
      *
392
      *
392
      * @return 如果对象相同,则返回 {@code true};否则返回 {@code false}
393
      * @return 如果对象相同,则返回 {@code true};否则返回 {@code false}
393
      */
394
      */
395
+    @Override
394
     public boolean equals(Object obj)
396
     public boolean equals(Object obj)
395
     {
397
     {
396
         if ((null == obj) || (obj.getClass() != UUID.class))
398
         if ((null == obj) || (obj.getClass() != UUID.class))
@@ -414,6 +416,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
414
      * @return 在此 UUID 小于、等于或大于 val 时,分别返回 -1、0 或 1。
416
      * @return 在此 UUID 小于、等于或大于 val 时,分别返回 -1、0 或 1。
415
      *
417
      *
416
      */
418
      */
419
+    @Override
417
     public int compareTo(UUID val)
420
     public int compareTo(UUID val)
418
     {
421
     {
419
         // The ordering is intentionally set up so that the UUIDs
422
         // The ordering is intentionally set up so that the UUIDs

+ 2 - 0
ruoyi-common/ruoyi-common-redis/src/main/java/com/ruoyi/common/redis/configure/FastJson2JsonRedisSerializer.java

@@ -36,6 +36,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
36
         this.clazz = clazz;
36
         this.clazz = clazz;
37
     }
37
     }
38
 
38
 
39
+    @Override
39
     public byte[] serialize(T t) throws SerializationException
40
     public byte[] serialize(T t) throws SerializationException
40
     {
41
     {
41
         if (t == null)
42
         if (t == null)
@@ -45,6 +46,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
45
         return JSON.toJSONString(t, SerializerFeature.WriteClassName).getBytes(DEFAULT_CHARSET);
46
         return JSON.toJSONString(t, SerializerFeature.WriteClassName).getBytes(DEFAULT_CHARSET);
46
     }
47
     }
47
 
48
 
49
+    @Override
48
     public T deserialize(byte[] bytes) throws SerializationException
50
     public T deserialize(byte[] bytes) throws SerializationException
49
     {
51
     {
50
         if (bytes == null || bytes.length <= 0)
52
         if (bytes == null || bytes.length <= 0)

+ 5 - 2
ruoyi-modules/ruoyi-gen/src/main/java/com/ruoyi/gen/service/GenTableServiceImpl.java

@@ -79,6 +79,7 @@ public class GenTableServiceImpl implements IGenTableService
79
      * @param genTable 业务信息
79
      * @param genTable 业务信息
80
      * @return 数据库表集合
80
      * @return 数据库表集合
81
      */
81
      */
82
+    @Override
82
     public List<GenTable> selectDbTableList(GenTable genTable)
83
     public List<GenTable> selectDbTableList(GenTable genTable)
83
     {
84
     {
84
         return genTableMapper.selectDbTableList(genTable);
85
         return genTableMapper.selectDbTableList(genTable);
@@ -90,6 +91,7 @@ public class GenTableServiceImpl implements IGenTableService
90
      * @param tableNames 表名称组
91
      * @param tableNames 表名称组
91
      * @return 数据库表集合
92
      * @return 数据库表集合
92
      */
93
      */
94
+    @Override
93
     public List<GenTable> selectDbTableListByNames(String[] tableNames)
95
     public List<GenTable> selectDbTableListByNames(String[] tableNames)
94
     {
96
     {
95
         return genTableMapper.selectDbTableListByNames(tableNames);
97
         return genTableMapper.selectDbTableListByNames(tableNames);
@@ -120,7 +122,7 @@ public class GenTableServiceImpl implements IGenTableService
120
     /**
122
     /**
121
      * 删除业务对象
123
      * 删除业务对象
122
      * 
124
      * 
123
-     * @param ids 需要删除的数据ID
125
+     * @param tableIds 需要删除的数据ID
124
      * @return 结果
126
      * @return 结果
125
      */
127
      */
126
     @Override
128
     @Override
@@ -276,6 +278,7 @@ public class GenTableServiceImpl implements IGenTableService
276
      * 
278
      * 
277
      * @param genTable 业务信息
279
      * @param genTable 业务信息
278
      */
280
      */
281
+    @Override
279
     public void validateEdit(GenTable genTable)
282
     public void validateEdit(GenTable genTable)
280
     {
283
     {
281
         if (GenConstants.TPL_TREE.equals(genTable.getTplCategory()))
284
         if (GenConstants.TPL_TREE.equals(genTable.getTplCategory()))
@@ -300,7 +303,7 @@ public class GenTableServiceImpl implements IGenTableService
300
     /**
303
     /**
301
      * 设置主键列信息
304
      * 设置主键列信息
302
      * 
305
      * 
303
-     * @param genTable 业务表信息
306
+     * @param table 业务表信息
304
      * @param columns 业务字段列表
307
      * @param columns 业务字段列表
305
      */
308
      */
306
     public void setPkColumn(GenTable table, List<GenTableColumn> columns)
309
     public void setPkColumn(GenTable table, List<GenTableColumn> columns)

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java

@@ -147,6 +147,7 @@ public class SysConfigServiceImpl implements ISysConfigService
147
     /**
147
     /**
148
      * 清空缓存数据
148
      * 清空缓存数据
149
      */
149
      */
150
+    @Override
150
     public void clearCache()
151
     public void clearCache()
151
     {
152
     {
152
         Collection<String> keys = redisService.keys(Constants.SYS_CONFIG_KEY + "*");
153
         Collection<String> keys = redisService.keys(Constants.SYS_CONFIG_KEY + "*");

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java

@@ -62,6 +62,7 @@ public class SysDictDataServiceImpl implements ISysDictDataService
62
      * @param dictCodes 需要删除的字典数据ID
62
      * @param dictCodes 需要删除的字典数据ID
63
      * @return 结果
63
      * @return 结果
64
      */
64
      */
65
+    @Override
65
     public int deleteDictDataByIds(Long[] dictCodes)
66
     public int deleteDictDataByIds(Long[] dictCodes)
66
     {
67
     {
67
         int row = dictDataMapper.deleteDictDataByIds(dictCodes);
68
         int row = dictDataMapper.deleteDictDataByIds(dictCodes);

+ 3 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java

@@ -107,6 +107,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
107
      * @param dictType 字典类型
107
      * @param dictType 字典类型
108
      * @return 字典类型
108
      * @return 字典类型
109
      */
109
      */
110
+    @Override
110
     public SysDictType selectDictTypeByType(String dictType)
111
     public SysDictType selectDictTypeByType(String dictType)
111
     {
112
     {
112
         return dictTypeMapper.selectDictTypeByType(dictType);
113
         return dictTypeMapper.selectDictTypeByType(dictType);
@@ -118,6 +119,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
118
      * @param dictIds 需要删除的字典ID
119
      * @param dictIds 需要删除的字典ID
119
      * @return 结果
120
      * @return 结果
120
      */
121
      */
122
+    @Override
121
     public int deleteDictTypeByIds(Long[] dictIds)
123
     public int deleteDictTypeByIds(Long[] dictIds)
122
     {
124
     {
123
         for (Long dictId : dictIds)
125
         for (Long dictId : dictIds)
@@ -139,6 +141,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
139
     /**
141
     /**
140
      * 清空缓存数据
142
      * 清空缓存数据
141
      */
143
      */
144
+    @Override
142
     public void clearCache()
145
     public void clearCache()
143
     {
146
     {
144
         DictUtils.clearDictCache();
147
         DictUtils.clearDictCache();

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java

@@ -121,6 +121,7 @@ public class SysMenuServiceImpl implements ISysMenuService
121
      * @param roleId 角色ID
121
      * @param roleId 角色ID
122
      * @return 选中菜单列表
122
      * @return 选中菜单列表
123
      */
123
      */
124
+    @Override
124
     public List<Integer> selectMenuListByRoleId(Long roleId)
125
     public List<Integer> selectMenuListByRoleId(Long roleId)
125
     {
126
     {
126
         return menuMapper.selectMenuListByRoleId(roleId);
127
         return menuMapper.selectMenuListByRoleId(roleId);

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java

@@ -86,6 +86,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService
86
      * @param noticeIds 需要删除的公告ID
86
      * @param noticeIds 需要删除的公告ID
87
      * @return 结果
87
      * @return 结果
88
      */
88
      */
89
+    @Override
89
     public int deleteNoticeByIds(Long[] noticeIds)
90
     public int deleteNoticeByIds(Long[] noticeIds)
90
     {
91
     {
91
         return noticeMapper.deleteNoticeByIds(noticeIds);
92
         return noticeMapper.deleteNoticeByIds(noticeIds);

+ 1 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java

@@ -48,6 +48,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
48
      * @param operIds 需要删除的操作日志ID
48
      * @param operIds 需要删除的操作日志ID
49
      * @return 结果
49
      * @return 结果
50
      */
50
      */
51
+    @Override
51
     public int deleteOperLogByIds(Long[] operIds)
52
     public int deleteOperLogByIds(Long[] operIds)
52
     {
53
     {
53
         return operLogMapper.deleteOperLogByIds(operIds);
54
         return operLogMapper.deleteOperLogByIds(operIds);

+ 2 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java

@@ -68,6 +68,7 @@ public class SysPostServiceImpl implements ISysPostService
68
      * @param userId 用户ID
68
      * @param userId 用户ID
69
      * @return 选中岗位ID列表
69
      * @return 选中岗位ID列表
70
      */
70
      */
71
+    @Override
71
     public List<Integer> selectPostListByUserId(Long userId)
72
     public List<Integer> selectPostListByUserId(Long userId)
72
     {
73
     {
73
         return postMapper.selectPostListByUserId(userId);
74
         return postMapper.selectPostListByUserId(userId);
@@ -140,6 +141,7 @@ public class SysPostServiceImpl implements ISysPostService
140
      * @return 结果
141
      * @return 结果
141
      * @throws Exception 异常
142
      * @throws Exception 异常
142
      */
143
      */
144
+    @Override
143
     public int deletePostByIds(Long[] postIds)
145
     public int deletePostByIds(Long[] postIds)
144
     {
146
     {
145
         for (Long postId : postIds)
147
         for (Long postId : postIds)

+ 6 - 0
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java

@@ -81,6 +81,7 @@ public class SysRoleServiceImpl implements ISysRoleService
81
      * 
81
      * 
82
      * @return 角色列表
82
      * @return 角色列表
83
      */
83
      */
84
+    @Override
84
     public List<SysRole> selectRoleAll()
85
     public List<SysRole> selectRoleAll()
85
     {
86
     {
86
         return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
87
         return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
@@ -92,6 +93,7 @@ public class SysRoleServiceImpl implements ISysRoleService
92
      * @param userId 用户ID
93
      * @param userId 用户ID
93
      * @return 选中角色ID列表
94
      * @return 选中角色ID列表
94
      */
95
      */
96
+    @Override
95
     public List<Integer> selectRoleListByUserId(Long userId)
97
     public List<Integer> selectRoleListByUserId(Long userId)
96
     {
98
     {
97
         return roleMapper.selectRoleListByUserId(userId);
99
         return roleMapper.selectRoleListByUserId(userId);
@@ -103,6 +105,7 @@ public class SysRoleServiceImpl implements ISysRoleService
103
      * @param roleId 角色ID
105
      * @param roleId 角色ID
104
      * @return 角色对象信息
106
      * @return 角色对象信息
105
      */
107
      */
108
+    @Override
106
     public SysRole selectRoleById(Long roleId)
109
     public SysRole selectRoleById(Long roleId)
107
     {
110
     {
108
         return roleMapper.selectRoleById(roleId);
111
         return roleMapper.selectRoleById(roleId);
@@ -149,6 +152,7 @@ public class SysRoleServiceImpl implements ISysRoleService
149
      * 
152
      * 
150
      * @param role 角色信息
153
      * @param role 角色信息
151
      */
154
      */
155
+    @Override
152
     public void checkRoleAllowed(SysRole role)
156
     public void checkRoleAllowed(SysRole role)
153
     {
157
     {
154
         if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
158
         if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
@@ -207,6 +211,7 @@ public class SysRoleServiceImpl implements ISysRoleService
207
      * @param role 角色信息
211
      * @param role 角色信息
208
      * @return 结果
212
      * @return 结果
209
      */
213
      */
214
+    @Override
210
     public int updateRoleStatus(SysRole role)
215
     public int updateRoleStatus(SysRole role)
211
     {
216
     {
212
         return roleMapper.updateRole(role);
217
         return roleMapper.updateRole(role);
@@ -296,6 +301,7 @@ public class SysRoleServiceImpl implements ISysRoleService
296
      * @param roleIds 需要删除的角色ID
301
      * @param roleIds 需要删除的角色ID
297
      * @return 结果
302
      * @return 结果
298
      */
303
      */
304
+    @Override
299
     public int deleteRoleByIds(Long[] roleIds)
305
     public int deleteRoleByIds(Long[] roleIds)
300
     {
306
     {
301
         for (Long roleId : roleIds)
307
         for (Long roleId : roleIds)

+ 4 - 1
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java

@@ -194,6 +194,7 @@ public class SysUserServiceImpl implements ISysUserService
194
      * 
194
      * 
195
      * @param user 用户信息
195
      * @param user 用户信息
196
      */
196
      */
197
+    @Override
197
     public void checkUserAllowed(SysUser user)
198
     public void checkUserAllowed(SysUser user)
198
     {
199
     {
199
         if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin())
200
         if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin())
@@ -270,10 +271,11 @@ public class SysUserServiceImpl implements ISysUserService
270
     /**
271
     /**
271
      * 修改用户头像
272
      * 修改用户头像
272
      * 
273
      * 
273
-     * @param userId 用户ID
274
+     * @param userName 用户名
274
      * @param avatar 头像地址
275
      * @param avatar 头像地址
275
      * @return 结果
276
      * @return 结果
276
      */
277
      */
278
+    @Override
277
     public boolean updateUserAvatar(String userName, String avatar)
279
     public boolean updateUserAvatar(String userName, String avatar)
278
     {
280
     {
279
         return userMapper.updateUserAvatar(userName, avatar) > 0;
281
         return userMapper.updateUserAvatar(userName, avatar) > 0;
@@ -378,6 +380,7 @@ public class SysUserServiceImpl implements ISysUserService
378
      * @param userIds 需要删除的用户ID
380
      * @param userIds 需要删除的用户ID
379
      * @return 结果
381
      * @return 结果
380
      */
382
      */
383
+    @Override
381
     public int deleteUserByIds(Long[] userIds)
384
     public int deleteUserByIds(Long[] userIds)
382
     {
385
     {
383
         for (Long userId : userIds)
386
         for (Long userId : userIds)