From 614ff877d7dc97bf923e5782d04b222e38ae62b6 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 09 八月 2024 09:34:51 +0800 Subject: [PATCH] 图像监测接口优化 --- 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