JohnZp commented on code in PR #15609:
URL:
https://github.com/apache/dolphinscheduler/pull/15609#discussion_r1500142171
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/PageInfo.java:
##########
@@ -65,10 +65,17 @@ public PageInfo(Integer currentPage, Integer pageSize) {
this.currentPage = currentPage;
}
+ public void setPaginationInfo(Integer total, List<T> totalList) {
+ setTotal(total);
+ setTotalList(totalList);
+ if (total != null && total > 0 && this.pageSize > 0) {
+ this.totalPage = (int) Math.ceil((double) total / this.pageSize);
+ }
+ }
+
Review Comment:
> Can you elaborate on why you are doing this?
Cannot paginate, as described in issue #15606
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]