From c74b878372127daae5a8af61a163ab7e0d1fbaef Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期三, 30 三月 2022 11:41:56 +0800
Subject: [PATCH] fix 修复设置角色报错问题

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 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 8d91660..ff9275a 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
@@ -137,4 +137,33 @@
         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