Quellcode durchsuchen

分页字段跟前端保持一致pageNum改为currentPage

wangzhiqiang vor 3 Jahren
Ursprung
Commit
5673d97ef1

+ 2 - 2
api-common/src/main/java/api/common/pojo/common/PageVO.java

@@ -10,8 +10,8 @@ import lombok.NoArgsConstructor;
 @NoArgsConstructor
 public class PageVO {
     @JsonInclude(JsonInclude.Include.NON_NULL)
-    private Integer pageNum=1;
+    private Integer currentPage=1;
     @JsonInclude(JsonInclude.Include.NON_NULL)
-    private Integer pageSize=10;
+    private Integer pageSize=3;
 
 }

+ 1 - 1
simulation-resource-server/src/main/java/com/css/simulation/resource/common/utils/PageUtil.java

@@ -15,7 +15,7 @@ public class PageUtil {
     public static void setPageInfo(Object param){
         if(param != null && param instanceof PageVO) {
             PageVO pagevo = (PageVO) param;
-            PageHelper.startPage(pagevo.getPageNum(), pagevo.getPageSize());
+            PageHelper.startPage(pagevo.getCurrentPage(), pagevo.getPageSize());
         }
     }
 }