🐛 Fixing a bug. #2150 角色管理,编辑数据权限,选自定义,不选择部门,则后续操作报错
This commit is contained in:
1 parent
e69a50c5ee
commit
82bc012da3
1 file changed
+1
-1
+1
-1
@@ -71,7 +71,7 @@ public class PigxDefaultDatascopeHandle implements DataScopeHandle {
|
||||
return true;
|
||||
}
|
||||
// 自定义
|
||||
if (DataScopeTypeEnum.CUSTOM.getType() == dsType) {
|
||||
if (DataScopeTypeEnum.CUSTOM.getType() == dsType && StrUtil.isNotBlank(role.getDsScope())) {
|
||||
String dsScope = role.getDsScope();
|
||||
deptList.addAll(
|
||||
Arrays.stream(dsScope.split(StrUtil.COMMA)).map(Integer::parseInt).collect(Collectors.toList()));
|
||||
|
||||
Reference in new issue
Block a user