From 2b4e8e5b6899374f0467c85eca0617ea309e6b93 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期二, 15 三月 2022 14:30:05 +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