From ebd005e1b1e4a8368955530b19c1cdcdb2d76e61 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 30 三月 2022 23:22:31 +0800 Subject: [PATCH] update 优化 DateUtils 代码格式 --- 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