Commit dd6569c3 authored by macro's avatar macro
Browse files

后台删除用户时先删除缓存中的用户信息

parent 2616ba42
...@@ -189,8 +189,8 @@ public class UmsAdminServiceImpl implements UmsAdminService { ...@@ -189,8 +189,8 @@ public class UmsAdminServiceImpl implements UmsAdminService {
@Override @Override
public int delete(Long id) { public int delete(Long id) {
int count = adminMapper.deleteByPrimaryKey(id);
getCacheService().delAdmin(id); getCacheService().delAdmin(id);
int count = adminMapper.deleteByPrimaryKey(id);
getCacheService().delResourceList(id); getCacheService().delResourceList(id);
return count; return count;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment