From e4bce6b453a916a29a38e4e531411a5e87f3ef67 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 7 Jan 2022 09:32:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=9B=E6=A3=80=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index bf7d149..c074d2b 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -442,6 +442,10 @@ class WProductViewSet(ListModelMixin, GenericViewSet): if is_mtestok: WpmServies.update_plan_state_by_mtestok(obj.subproduction_plan.production_plan) obj.save() + change_str = 'mtest_notok' + if is_mtestok: + change_str = 'mtest_ok' + WpmServies.add_wproduct_flow_log(instance=obj, change_str=change_str) return Response() class WproductTicketViewSet(ListModelMixin, GenericViewSet):