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

分页类是不是写错了 #434

Open
daidaipianzi opened this issue Feb 20, 2025 · 1 comment
Open

分页类是不是写错了 #434

daidaipianzi opened this issue Feb 20, 2025 · 1 comment

Comments

@daidaipianzi
Copy link
Contributor

src/main/java/com/alibaba/higress/sdk/model/PaginatedResult.java
中的createFromFullList方法里面

int pageNum = query.getPageNum() != null ? Math.max(1, query.getPageNum()) : 0;
int pageSize = query.getPageNum() != null && query.getPageNum() > 0 ? query.getPageNum() : DEFAULT_PAGE_SIZE;
int startIndex = pageNum * pageSize;

这里的是不是应该是 query.getPageSize() ??

@CH3CHO
Copy link
Collaborator

CH3CHO commented Feb 20, 2025

确实是写错了。请问你是否愿意协助修复一下呢?

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