wf filter dept bug
This commit is contained in:
parent
0365b90b39
commit
f92c9577c2
|
@ -175,7 +175,7 @@ class WfService(object):
|
|||
user_queryset = User.objects.filter(posts__in=destination_participant)
|
||||
# 如果选择了岗位, 可能需要走过滤策略
|
||||
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)
|
||||
# if state.filter_policy == 1:
|
||||
# depts = get_parent_queryset(ticket.belong_dept)
|
||||
|
|
Loading…
Reference in New Issue