added: 管理员锁定的拦截

This commit is contained in:
none
2023-02-17 14:15:50 +08:00
parent bd5cf234f1
commit aed4c60296
5 changed files with 35 additions and 5 deletions

View File

@@ -14,4 +14,6 @@ public interface AdminUserService extends IService<AdminUser> {
PaginationResult<AdminUser> paginate(int page, int size, Wrapper<AdminUser> queryWrapper);
AdminUser findByEmail(String email);
AdminUser findById(Integer id);
}

View File

@@ -37,6 +37,12 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
return this.getBaseMapper().selectOne(queryWrapper);
}
@Override
public AdminUser findById(Integer id) {
QueryWrapper<AdminUser> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("id", id);
return this.getBaseMapper().selectOne(queryWrapper);
}
}