mirror of https://gitee.com/stylefeng/roses
【8.0】【sys】更新分页获取机构列表的数据范围筛选
parent
f2ace559d4
commit
657a0a854c
|
@ -531,6 +531,12 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
|
|||
});
|
||||
}
|
||||
|
||||
// 更新数据范围的筛选条件
|
||||
Set<Long> dataScope = DataScopeContext.me().currentUserOrgScopeList();
|
||||
if (ObjectUtil.isNotEmpty(dataScope)) {
|
||||
queryWrapper.in(HrOrganization::getOrgId, dataScope);
|
||||
}
|
||||
|
||||
// 根据排序正序查询
|
||||
queryWrapper.orderByAsc(HrOrganization::getOrgSort);
|
||||
|
||||
|
|
Loading…
Reference in New Issue