From 579ed0815abc4d30aaf433f6292396c0d87093d8 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 15 八月 2024 17:25:20 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
ycl-pojo/src/main/java/com/ycl/platform/base/AbsQuery.java | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/base/AbsQuery.java b/ycl-pojo/src/main/java/com/ycl/platform/base/AbsQuery.java
index cb599c4..09bf614 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/base/AbsQuery.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/base/AbsQuery.java
@@ -13,9 +13,17 @@
public class AbsQuery {
@ApiModelProperty(value = "褰撳墠椤�", required = true)
- private Long currentPage = 1L;
+ private Long pageNum = 1L;
@ApiModelProperty(value = "姣忛〉鏉℃暟", required = true)
private Long pageSize = 10L;
+ /**
+ * 鑾峰彇mongo鍒嗛〉skip璺宠繃鐨勬潯鏁�
+ *
+ * @return
+ */
+ public Long getSkipNum() {
+ return (pageNum - 1) * pageSize;
+ }
}
--
Gitblit v1.8.0