mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 修改角色适配 采用 get set 转换数据类型
This commit is contained in:
@ -137,4 +137,25 @@ 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) {
|
||||
this.menuCheckStrictly = menuCheckStrictly ? 1 : 0;
|
||||
}
|
||||
|
||||
public Boolean getDeptCheckStrictly() {
|
||||
if (deptCheckStrictly == null) {
|
||||
return null;
|
||||
}
|
||||
return deptCheckStrictly == 1;
|
||||
}
|
||||
|
||||
public void setDeptCheckStrictly(Boolean deptCheckStrictly) {
|
||||
this.deptCheckStrictly = deptCheckStrictly ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user