Skip to content

Commit

Permalink
feat: added query department user list
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 committed Feb 8, 2025
1 parent 0053fa4 commit 85e1d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bk-user/bkuser/apis/open_v3/views/department.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ class TenantDepartmentUserListApi(OpenApiCommonMixin, generics.ListAPIView):

def get_queryset(self):
tenant_department = get_object_or_404(
TenantDepartment.objects.filter(tenant_id=self.tenant_id), id=self.kwargs["id"]
TenantDepartment.objects.filter(tenant_id=self.tenant_id, data_source_id=self.real_data_source_id),
id=self.kwargs["id"],
)
user_ids = DataSourceDepartmentUserRelation.objects.filter(
department_id=tenant_department.data_source_department_id
Expand Down

0 comments on commit 85e1d07

Please # to comment.