bind_rpj bug

This commit is contained in:
曹前明 2022-07-15 12:21:16 +08:00
parent 711368bd9b
commit 838bbc4014
1 changed files with 1 additions and 3 deletions

View File

@ -197,9 +197,7 @@ class WfService(object):
depts = get_parent_queryset(handler.belong_dept)
user_queryset = user_queryset.filter(depts__in=depts)
destination_participant = list(user_queryset.values_list('id', flat=True))
if destination_participant:
pass
else:
if destination_participant_type != 0 and (not destination_participant):
raise ParseError('未找到处理人,工单无法继续')
if type(destination_participant) == list:
destination_participant_type = State.PARTICIPANT_TYPE_MULTI