From f209d1767dec5ed64cebabdd7187c9fe1e0f1187 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 9 Jan 2025 09:37:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mlogbin=E4=B9=9F=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=89=BE=E5=AF=BB=E8=B4=A8=E6=A3=80=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index 2b897d69..7901dd8f 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -496,7 +496,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust # 找寻质检表 qctmat0 = QctMat.objects.filter(material=mlogbin.material_in).order_by("-create_time").first() if qctmat0: - mlogbin.qct = qctmat0 + mlogbin.qct = qctmat0.qct mlogbin.save() mlog:Mlog = mlogbin.mlog route:Route = mlog.route