diff --git a/hb_server/apps/wpm/services.py b/hb_server/apps/wpm/services.py index 7ca4774..c58a1c8 100644 --- a/hb_server/apps/wpm/services.py +++ b/hb_server/apps/wpm/services.py @@ -62,4 +62,5 @@ class WpmServies(object): wproduct.act_state = WProduct.WPR_ACT_STATE_NOTOK # 需要走不合格品审理的工单 wproduct.update_by = user + wproduct.test = None wproduct.save() \ No newline at end of file diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index ad6e4bb..11a6c8b 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -258,7 +258,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet): tris.append(TestRecordItem(**m)) TestRecordItem.objects.bulk_create(tris) - # 如果检测合格, 变更动态产品进行状态 + # 如果提交检验 if obj.is_submited: WpmServies.update_wproduct_by_test(obj, request.user) else: