From b84df619c4d07c26b4277be7427fb28e074d37fc Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 24 十二月 2021 14:48:13 +0800 Subject: [PATCH] 优化代码生成字典组重复问题 --- src/main/java/com/ruoyi/framework/web/page/PageDomain.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ruoyi/framework/web/page/PageDomain.java b/src/main/java/com/ruoyi/framework/web/page/PageDomain.java index 366f9b1..af24e6a 100644 --- a/src/main/java/com/ruoyi/framework/web/page/PageDomain.java +++ b/src/main/java/com/ruoyi/framework/web/page/PageDomain.java @@ -21,6 +21,9 @@ /** 鎺掑簭鐨勬柟鍚慸esc鎴栬�卆sc */ private String isAsc = "asc"; + /** 鍒嗛〉鍙傛暟鍚堢悊鍖� */ + private Boolean reasonable = true; + public String getOrderBy() { if (StringUtils.isEmpty(orderByColumn)) @@ -81,4 +84,18 @@ this.isAsc = isAsc; } } + + public Boolean getReasonable() + { + if (StringUtils.isNull(reasonable)) + { + return Boolean.TRUE; + } + return reasonable; + } + + public void setReasonable(Boolean reasonable) + { + this.reasonable = reasonable; + } } -- Gitblit v1.9.3