diff --git a/hb_server/apps/wf/services.py b/hb_server/apps/wf/services.py index 06ce023..cd691d9 100644 --- a/hb_server/apps/wf/services.py +++ b/hb_server/apps/wf/services.py @@ -167,7 +167,7 @@ class WfService(object): elif participant_type in [State.PARTICIPANT_TYPE_MULTI, State.PARTICIPANT_TYPE_DEPT, State.PARTICIPANT_TYPE_ROLE]: if user.id not in participant: return dict(permission=False, msg="非当前处理人") - current_participant_count = len(participant.split(',')) + current_participant_count = len(participant) if current_participant_count >1 and state.distribute_type == State.STATE_DISTRIBUTE_TYPE_ACTIVE: return dict(permission=False, msg="需要先接单再处理") if ticket.in_add_node: