diff --git a/apps/wf/services.py b/apps/wf/services.py index 4907639b..0802e132 100755 --- a/apps/wf/services.py +++ b/apps/wf/services.py @@ -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