后台删除用户时先删除缓存中的用户信息
This commit is contained in:
@@ -189,8 +189,8 @@ public class UmsAdminServiceImpl implements UmsAdminService {
|
||||
|
||||
@Override
|
||||
public int delete(Long id) {
|
||||
int count = adminMapper.deleteByPrimaryKey(id);
|
||||
getCacheService().delAdmin(id);
|
||||
int count = adminMapper.deleteByPrimaryKey(id);
|
||||
getCacheService().delResourceList(id);
|
||||
return count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user