DaZuiZui commented on code in PR #15619:
URL: 
https://github.com/apache/dolphinscheduler/pull/15619#discussion_r1500280514


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/utils/PageInfo.java:
##########
@@ -75,4 +77,15 @@ public static <T> PageInfo<T> of(IPage<T> iPage) {
     public static <T> PageInfo<T> of(Integer currentPage, Integer pageSize) {
         return new PageInfo<>(currentPage, pageSize);
     }
+
+    public Integer getTotalPage() {

Review Comment:
   This seems to achieve the same function, and is simpler
   this.totalPage = Math.ceil(this.total / this.pageSize);



-- 
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]

Reply via email to