List<Country> list = sqlSession.selectList("x.y.selectIf", null, new RowBounds(0, 10));
PageHelper.startPage(1, 10);
List<Country> list = countryMapper.selectIf(1);
PageHelper.offsetPage(1, 10);
List<Country> list = countryMapper.selectIf(1);
public interface CountryMapper {
    List<Country> selectByPageNumSize(
            @Param("user") User user,
            @Param("pageNum") int pageNum,
            @Param("pageSize") int pageSize);
}
List<Country> list = countryMapper.selectByPageNumSize(user, 1, 10);
public class User {
    
    
    private Integer pageNum;
    private Integer pageSize;
}
public interface CountryMapper {
    List<Country> selectByPageNumSize(User user);
}
List<Country> list = countryMapper.selectByPageNumSize(user);
Page<Country> page = PageHelper.startPage(1, 10).doSelectPage(new ISelect() {
    @Override
    public void doSelect() {
        countryMapper.selectGroupBy();
    }
});
Page<Country> page = PageHelper.startPage(1, 10).doSelectPage(()-> countryMapper.selectGroupBy());
pageInfo = PageHelper.startPage(1, 10).doSelectPageInfo(new ISelect() {
    @Override
    public void doSelect() {
        countryMapper.selectGroupBy();
    }
});
pageInfo = PageHelper.startPage(1, 10).doSelectPageInfo(() -> countryMapper.selectGroupBy());
long total = PageHelper.count(new ISelect() {
    @Override
    public void doSelect() {
        countryMapper.selectLike(country);
    }
});
total = PageHelper.count(()->countryMapper.selectLike(country));