🌱 数据权限外的部门树展示锁标识

This commit is contained in:
lbw committed 2021-07-01 14:07:53 +08:00
1 parent e5fce89ae9
commit e228dc14ea
1 file changed
+1 -3
@@ -133,9 +133,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
treeNode.setParentId(dept.getParentId());
treeNode.setName(dept.getName());
// 有权限不返回标识
if (deptOwnIdList.contains(dept.getDeptId())) {
treeNode.setExtra(MapUtil.of("isLock", Boolean.FALSE));
}
treeNode.setExtra(MapUtil.of("isLock", !deptOwnIdList.contains(dept.getDeptId())));
return treeNode;
}).collect(Collectors.toList());