update 回滚 SysRole 关于 Boolean 字段类型的修改 采用别的方式处理兼容

2.X
疯狂的狮子Li 3 years ago
parent 20a8ee3e4d
commit f36d69abf5

@ -78,13 +78,13 @@ public class SysRole extends BaseEntity {
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "菜单树选择项是否关联显示( 0父子不互相关联显示 1父子互相关联显示") @ApiModelProperty(value = "菜单树选择项是否关联显示( 0父子不互相关联显示 1父子互相关联显示")
private Integer menuCheckStrictly; private Boolean menuCheckStrictly;
/** /**
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "部门树选择项是否关联显示0父子不互相关联显示 1父子互相关联显示 ") @ApiModelProperty(value = "部门树选择项是否关联显示0父子不互相关联显示 1父子互相关联显示 ")
private Integer deptCheckStrictly; private Boolean deptCheckStrictly;
/** /**
* 0 1 * 0 1
@ -137,33 +137,4 @@ public class SysRole extends BaseEntity {
return UserConstants.ADMIN_ID.equals(this.roleId); 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;
}
} }

Loading…
Cancel
Save