【8.0】【sys】更新分页获取机构列表的数据范围筛选

pull/57/head
fengshuonan 2023-07-18 23:53:51 +08:00
parent f2ace559d4
commit 657a0a854c
1 changed files with 6 additions and 0 deletions

View File

@ -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);