From c8aee7b9bfd79cfd741d7e5692520f4f51a31a86 Mon Sep 17 00:00:00 2001 From: kimi <kimi42345@gmail.com> Date: 星期一, 18 五月 2020 18:30:01 +0800 Subject: [PATCH] bak 修改 获取版本数据前 --- src/main/java/com/highdatas/mdm/pojo/Page.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/highdatas/mdm/pojo/Page.java b/src/main/java/com/highdatas/mdm/pojo/Page.java index 4c772a8..8baa598 100644 --- a/src/main/java/com/highdatas/mdm/pojo/Page.java +++ b/src/main/java/com/highdatas/mdm/pojo/Page.java @@ -1,11 +1,32 @@ package com.highdatas.mdm.pojo; +import com.fasterxml.jackson.annotation.JsonInclude; + +@JsonInclude(JsonInclude.Include.NON_NULL) public class Page { private int pageSize; private long recordCount; private int pageNo; private int pages; + private transient Integer beginNo; + private transient Integer endNo; + + public int getBeginNo() { + return beginNo; + } + + public void setBeginNo(int beginNo) { + this.beginNo = beginNo; + } + + public int getEndNo() { + return endNo; + } + + public void setEndNo(int endNo) { + this.endNo = endNo; + } public int getPages() { return pages; @@ -77,6 +98,9 @@ } public String getLimitSQL() { + if (beginNo != null && endNo != null) { + return " limit " + beginNo + ", " + (endNo - beginNo); + } return " limit " + getBeginRecordNo_1() + ", " + pageSize; } -- Gitblit v1.8.0