From a33898c2a0374c249862a2b996e33352e30c8caf Mon Sep 17 00:00:00 2001
From: KonBAI <1527468660@qq.com>
Date: 星期六, 02 四月 2022 13:02:56 +0800
Subject: [PATCH] !167 update 修改角色"菜单树选择项"和"部门树选择项"是否关联显示字段为Boolean类型 * fix 修改 postgres sql脚本,处理角色表字段类型错误问题。 * fix 修复postgreSQL新增或更新角色信息报错。修改角色"菜单树选择项"和"部门树选择项"是否关联显示字段为Boolean类型。

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java |   34 ++--------------------------------
 1 files changed, 2 insertions(+), 32 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
index ff9275a..8048157 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
@@ -78,13 +78,13 @@
      * 鑿滃崟鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙 0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀猴級
      */
     @ApiModelProperty(value = "鑿滃崟鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙 0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀猴級")
-    private Integer menuCheckStrictly;
+    private Boolean menuCheckStrictly;
 
     /**
      * 閮ㄩ棬鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀� 锛�
      */
     @ApiModelProperty(value = "閮ㄩ棬鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀� 锛�")
-    private Integer deptCheckStrictly;
+    private Boolean deptCheckStrictly;
 
     /**
      * 瑙掕壊鐘舵�侊紙0姝e父 1鍋滅敤锛�
@@ -135,35 +135,5 @@
     @ApiModelProperty(value = "鏄惁绠$悊鍛�")
     public boolean isAdmin() {
         return UserConstants.ADMIN_ID.equals(this.roleId);
-    }
-
-    public Boolean getMenuCheckStrictly() {
-        if (menuCheckStrictly == null) {
-            return null;
-        }
-        return menuCheckStrictly == 1;
-    }
-
-    public void setMenuCheckStrictly(Boolean menuCheckStrictly) {
-        if (menuCheckStrictly == null) {
-            this.menuCheckStrictly = null;
-            return;
-        }
-        this.menuCheckStrictly = menuCheckStrictly ? 1 : 0;
-    }
-
-    public Boolean getDeptCheckStrictly() {
-        if (deptCheckStrictly == null) {
-            return null;
-        }
-        return deptCheckStrictly == 1;
-    }
-
-    public void setDeptCheckStrictly(Boolean deptCheckStrictly) {
-        if (deptCheckStrictly == null) {
-            this.deptCheckStrictly = null;
-            return;
-        }
-        this.deptCheckStrictly = deptCheckStrictly ? 1 : 0;
     }
 }

--
Gitblit v1.9.3