From 838bbc401491f88976d49302548bc192f9acf959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Fri, 15 Jul 2022 12:21:16 +0800 Subject: [PATCH] bind_rpj bug --- apps/wf/services.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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