From e18cf51c0170490c80bb9b7c794f6f4ed1fad938 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期六, 30 四月 2022 22:21:49 +0800
Subject: [PATCH] update 优化 RedisUtils 重构过期方法

---
 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