From 6a43dcfd0dd3bfc8151af3472e844b263a4178e1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Jul 2024 15:38:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20base=20get=5Fticket=5Fstate=5Fparticipan?= =?UTF-8?q?t=5Finfo=20=20=E9=80=9A=E8=BF=87=E5=B7=A5=E5=8D=95=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=8E=B7=E5=8F=96=E5=A4=84=E7=90=86=E4=BA=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wf/services.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/wf/services.py b/apps/wf/services.py index 4ac0ad69..739375d5 100755 --- a/apps/wf/services.py +++ b/apps/wf/services.py @@ -153,8 +153,12 @@ class WfService(object): multi_all_person_dict = {} destination_participant_type, destination_participant = state.participant_type, state.participant if destination_participant_type == State.PARTICIPANT_TYPE_FIELD: - destination_participant = new_ticket_data.get(destination_participant, 0) if destination_participant \ - in new_ticket_data else Ticket.ticket_data.get(destination_participant, 0) + if destination_participant in new_ticket_data: + destination_participant = new_ticket_data.get(destination_participant, 0) + elif destination_participant in ticket.ticket_data: + destination_participant = ticket.ticket_data.get(destination_participant, 0) + elif hasattr(ticket, destination_participant): + destination_participant = getattr(ticket, destination_participant) elif destination_participant_type == State.PARTICIPANT_TYPE_FORMCODE: # 代码获取 module, func = destination_participant.rsplit(".", 1)