From 1fc5877f61c9b15f5daa5f328f9deae2e8a50e84 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 02 八月 2024 17:30:52 +0800 Subject: [PATCH] 考核规则表增加apiUrl字段 --- 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