| | |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value = "角色排序") |
| | | @ExcelProperty(value = "角色排序") |
| | | @NotBlank(message = "显示顺序不能为空") |
| | | private String roleSort; |
| | | @NotNull(message = "显示顺序不能为空") |
| | | private Integer roleSort; |
| | | |
| | | /** |
| | | * 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) |
| | |
| | | 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; |
| | | } |
| | | } |