From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 21 十二月 2024 18:40:43 +0800 Subject: [PATCH] 新建德森项目分支 --- zy-asrs-common/src/main/java/com/zy/asrs/common/domain/param/PageParam.java | 112 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 56 insertions(+), 56 deletions(-) diff --git a/zy-asrs-common/src/main/java/com/zy/asrs/common/domain/param/PageParam.java b/zy-asrs-common/src/main/java/com/zy/asrs/common/domain/param/PageParam.java index 9cee25c..da953cf 100644 --- a/zy-asrs-common/src/main/java/com/zy/asrs/common/domain/param/PageParam.java +++ b/zy-asrs-common/src/main/java/com/zy/asrs/common/domain/param/PageParam.java @@ -1,56 +1,56 @@ -package com.zy.asrs.common.domain.param; - -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; - -/** - * 鍒嗛〉銆佹帓搴忋�佹悳绱㈠弬鏁板皝瑁� - * - * @author vincent - * @since 2019-04-26 10:34:35 - */ -public class PageParam<T, U extends BaseParam> extends Page<T> { - - private static final long serialVersionUID = 1L; - - /** - * 绉熸埛id瀛楁鍚嶇О - */ - private static final String TENANT_ID_FIELD = "tenantId"; - - /** - * 鏌ヨ鏉′欢 - */ - private final U where; - - /** - * 鏄惁鎶婂瓧娈靛悕绉伴┘宄拌浆涓嬪垝绾� - */ - private final boolean isToUnderlineCase; - - public PageParam() { - this(null); - } - - public PageParam(U where) { - this(where, true); - } - - public PageParam(U where, boolean isToUnderlineCase) { - super(); - this.where = where; - this.isToUnderlineCase = isToUnderlineCase; - if (where != null) { - // 鑾峰彇鍒嗛〉椤电爜 - if (where.getCurr() != null) { - setCurrent(where.getCurr()); - } - // 鑾峰彇鍒嗛〉姣忛〉鏁伴噺 - if (where.getLimit() != null) { - setSize(where.getLimit()); - } - } - } - - - -} +package com.zy.asrs.common.domain.param; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 鍒嗛〉銆佹帓搴忋�佹悳绱㈠弬鏁板皝瑁� + * + * @author vincent + * @since 2019-04-26 10:34:35 + */ +public class PageParam<T, U extends BaseParam> extends Page<T> { + + private static final long serialVersionUID = 1L; + + /** + * 绉熸埛id瀛楁鍚嶇О + */ + private static final String TENANT_ID_FIELD = "tenantId"; + + /** + * 鏌ヨ鏉′欢 + */ + private final U where; + + /** + * 鏄惁鎶婂瓧娈靛悕绉伴┘宄拌浆涓嬪垝绾� + */ + private final boolean isToUnderlineCase; + + public PageParam() { + this(null); + } + + public PageParam(U where) { + this(where, true); + } + + public PageParam(U where, boolean isToUnderlineCase) { + super(); + this.where = where; + this.isToUnderlineCase = isToUnderlineCase; + if (where != null) { + // 鑾峰彇鍒嗛〉椤电爜 + if (where.getCurr() != null) { + setCurrent(where.getCurr()); + } + // 鑾峰彇鍒嗛〉姣忛〉鏁伴噺 + if (where.getLimit() != null) { + setSize(where.getLimit()); + } + } + } + + + +} -- Gitblit v1.9.1