update 修改角色适配 采用 get set 转换数据类型

This commit is contained in:
疯狂的狮子Li
2022-03-25 15:22:01 +08:00
parent b624648115
commit a6f30412ad
4 changed files with 31 additions and 10 deletions

View File

@ -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;
}
}