We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public PageInfo<T> byPage(Integer pageNo, Integer pageSize, List<T> llist) { pageNo = pageNo == null ? 1 : pageNo; pageSize = pageSize == null ? 10 : pageSize; PageHelper.startPage(pageNo, pageSize); List<T> list = llist ; return new PageInfo<T>(list); }
The text was updated successfully, but these errors were encountered:
不能这么写,你这都有 list 了,已经执行过查询了,这时 PageHelper.startPage(pageNo, pageSize); 没用了,反而会导致后面的查询被分页。
PageHelper.startPage(pageNo, pageSize);
这个方法必须紧挨在查询前面。
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: