Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make PageInfo implement Collection, and then can use it as a List directly #803

Open
Ikki-Dai opened this issue Jan 28, 2024 · 1 comment

Comments

@Ikki-Dai
Copy link

  • [*] 我已在 issues 搜索类似问题,并且不存在相同的问题.

异常模板

使用环境

  • PageHelper 版本: xxx
  • 数据库类型和版本: xxx
  • JDBC_URL: xxx

SQL 解析错误

分页参数

原 SQL

期望的结果:

完整异常信息


其他类型的错误

功能建议

详细说明,尽可能提供(伪)代码示例。

public class Page<T> implements Collection {
  private int pageSize;
  private int pageNo;
  // others page fields

}
//
public interface XxxMapper{
  Iterator<Object> queryByxxxx();
}

//
public class xxxService {

 private XxxMapper xxxMapper;


public void query() {
PageInfo<Object> pages = xxxMapper.queryByxxx();

}



}

@abel533
Copy link
Collaborator

abel533 commented Jan 28, 2024

Page就是这个作用。。PageInfo的目的是为了序列化,改成List就会丢失其他属性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants