From ac879dd74e091cb025d0377df00ca323eab72c4c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 25 Oct 2021 13:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=84=E9=80=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wf/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hb_server/apps/wf/views.py b/hb_server/apps/wf/views.py index e97cbb4..ab0c5de 100644 --- a/hb_server/apps/wf/views.py +++ b/hb_server/apps/wf/views.py @@ -183,7 +183,7 @@ class TicketViewSet(OptimizationMixin, CreateUpdateCustomMixin, CreateModelMixin participant=None, participant_cc=start_state.participant_cc) # 目标状态需要抄送 if next_state.participant_cc: - TicketFlow.objects.create(ticket=ticket, state=ticket.next_state, + TicketFlow.objects.create(ticket=ticket, state=next_state, participant_type=0, intervene_type=Transition.TRANSITION_INTERVENE_TYPE_CC, participant=None, participant_cc=next_state.participant_cc) return Response(TicketSerializer(instance=ticket).data) @@ -276,7 +276,7 @@ class TicketViewSet(OptimizationMixin, CreateUpdateCustomMixin, CreateModelMixin participant=request.user, transition=transition) # 目标状态需要抄送 if destination_state.participant_cc: - TicketFlow.objects.create(ticket=ticket, state=ticket.destination_state, + TicketFlow.objects.create(ticket=ticket, state=destination_state, participant_type=0, intervene_type=Transition.TRANSITION_INTERVENE_TYPE_CC, participant=None, participant_cc=destination_state.participant_cc) return Response(TicketSerializer(instance=ticket).data)