From 9ba61037a4ad13d454f43b0a25992b4fd311e4fe Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 30 三月 2022 23:04:51 +0800 Subject: [PATCH] update 优化代码与注释 --- 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