mirror of https://gitee.com/stylefeng/roses
【8.0】【sys】修改回来枚举内容
parent
f48d2d6fe0
commit
44c788941b
|
@ -37,6 +37,11 @@ import lombok.Getter;
|
|||
@Getter
|
||||
public enum DataScopeTypeEnum {
|
||||
|
||||
/**
|
||||
* 仅本人数据
|
||||
*/
|
||||
SELF(10, "仅本人数据"),
|
||||
|
||||
/**
|
||||
* 本部门数据
|
||||
*/
|
||||
|
|
|
@ -112,9 +112,9 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|||
@Override
|
||||
public Integer getRoleDataScopeType(Long roleId) {
|
||||
|
||||
// 角色id为空,返回仅本部门数据
|
||||
// 角色id为空,返回仅本人数据
|
||||
if (ObjectUtil.isEmpty(roleId)) {
|
||||
return DataScopeTypeEnum.DEPT.getCode();
|
||||
return DataScopeTypeEnum.SELF.getCode();
|
||||
}
|
||||
|
||||
LambdaQueryWrapper<SysRole> sysRoleLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
|
@ -129,7 +129,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|||
}
|
||||
}
|
||||
|
||||
return DataScopeTypeEnum.DEPT.getCode();
|
||||
return DataScopeTypeEnum.SELF.getCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue