fix: base wf 工段的字段获取处理人时没找到返回0
This commit is contained in:
parent
1a42cf34f0
commit
ae1099cbec
|
@ -159,6 +159,8 @@ class WfService(object):
|
||||||
destination_participant = ticket.ticket_data.get(destination_participant, 0)
|
destination_participant = ticket.ticket_data.get(destination_participant, 0)
|
||||||
elif hasattr(ticket, destination_participant):
|
elif hasattr(ticket, destination_participant):
|
||||||
destination_participant = getattr(ticket, destination_participant).id
|
destination_participant = getattr(ticket, destination_participant).id
|
||||||
|
else:
|
||||||
|
destination_participant = 0
|
||||||
|
|
||||||
elif destination_participant_type == State.PARTICIPANT_TYPE_FORMCODE: # 代码获取
|
elif destination_participant_type == State.PARTICIPANT_TYPE_FORMCODE: # 代码获取
|
||||||
module, func = destination_participant.rsplit(".", 1)
|
module, func = destination_participant.rsplit(".", 1)
|
||||||
|
|
Loading…
Reference in New Issue