wf filter dept bug

This commit is contained in:
曹前明 2022-07-18 14:38:52 +08:00
parent 0365b90b39
commit f92c9577c2
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class WfService(object):
user_queryset = User.objects.filter(posts__in=destination_participant) user_queryset = User.objects.filter(posts__in=destination_participant)
# 如果选择了岗位, 可能需要走过滤策略 # 如果选择了岗位, 可能需要走过滤策略
if state.filter_dept: if state.filter_dept:
dpts = Dept.objects.filter(id=new_ticket_data[state.filter_dept]) dpts = Dept.objects.filter(id=new_ticket_data.get(state.filter_dept, '0'))
user_queryset = user_queryset.filter(depts__in=dpts) user_queryset = user_queryset.filter(depts__in=dpts)
# if state.filter_policy == 1: # if state.filter_policy == 1:
# depts = get_parent_queryset(ticket.belong_dept) # depts = get_parent_queryset(ticket.belong_dept)