From 5ef6c0493d267a152dceff59422c495cf463df57 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期四, 08 八月 2024 11:05:57 +0800
Subject: [PATCH] feat:大屏考核数据
---
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