From 695590589e1c50f16f6afab8bd53dbb6c560339a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 10 Jan 2025 11:27:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=BD=E8=B8=AA=E5=88=B0=E4=B8=AA?= =?UTF-8?q?=E7=9A=84=E6=89=8D=E9=9C=80=E8=A6=81=E8=B5=8B=E4=BA=88=E8=B4=A8?= =?UTF-8?q?=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 6f40d7ff..b6d3a4c9 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -546,7 +546,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust # 找寻质检表 if material_out.tracking == Material.MA_TRACKING_SINGLE: qctmat = QctMat.objects.filter(material=material_out, qct__is_deleted=False).order_by("-create_time").first() - mlogbout.qct = qctmat.qct + mlogbout.qct = qctmat.qct if qctmat else None mlogbout.count_real = d_count_real mlogbout.count_ok = d_count_ok mlogbout.save()