【8.1.0】【role】角色默认数据范围,本公司及以下

pull/60/head
fengshuonan 2024-01-16 17:00:28 +08:00
parent 8dcbdcb82b
commit 43470122c2
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
BeanUtil.copyProperties(sysRoleRequest, sysRole);
// 设置角色默认的数据范围,默认查看全部
sysRole.setDataScopeType(DataScopeTypeEnum.ALL.getCode());
sysRole.setDataScopeType(DataScopeTypeEnum.DEPT_WITH_CHILD.getCode());
this.save(sysRole);