From 0429ac6988f9b817997f3462f0662b2ddeea3523 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 9 Jan 2025 16:56:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mlogbin=E6=97=A0=E9=9C=80=E5=8A=A0?= =?UTF-8?q?=E8=BD=BDqct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index edbdd226..be8b92c5 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -509,11 +509,6 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust @transaction.atomic def perform_create(self, serializer): mlogbin: Mlogb = serializer.save() - # 找寻质检表 - qctmat0 = QctMat.objects.filter(material=mlogbin.material_in, qct__is_deleted=False).order_by("-create_time").first() - if qctmat0: - mlogbin.qct = qctmat0.qct - mlogbin.save() mlog:Mlog = mlogbin.mlog route:Route = mlog.route # 以及mlogbw