From f36d69abf5bcba17292871681dd0bc00be647573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Sat, 2 Apr 2022 13:04:56 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=9B=9E=E6=BB=9A=20SysRole=20?= =?UTF-8?q?=E5=85=B3=E4=BA=8E=20Boolean=20=E5=AD=97=E6=AE=B5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E4=BF=AE=E6=94=B9=20=E9=87=87=E7=94=A8?= =?UTF-8?q?=E5=88=AB=E7=9A=84=E6=96=B9=E5=BC=8F=E5=A4=84=E7=90=86=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/system/api/domain/SysRole.java | 33 ++----------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysRole.java b/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysRole.java index f78a2212..5eb1617f 100644 --- a/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysRole.java +++ b/ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysRole.java @@ -78,13 +78,13 @@ public class SysRole extends BaseEntity { * 菜单树选择项是否关联显示( 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正常 1停用) @@ -137,33 +137,4 @@ public class SysRole extends BaseEntity { 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; - } }