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

This commit is contained in:
macro
2025-10-17 14:27:04 +08:00
parent 2616ba4289
commit dd6569c355

View File

@@ -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;
}