From 95b98df8cf9574a787c9deabaff6db673fe16ba3 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 7 Jan 2025 15:41:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mlogb=E6=89=BE=E5=AF=BB=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 cbfaf73a..bfb8982d 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -520,7 +520,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust d_count_real = xcount d_count_ok = xcount # 找寻质检表 - qctmat = QctMat.objects.filter(material=material_out).order_by("-create_time").frist() + qctmat = QctMat.objects.filter(material=material_out).order_by("-create_time").first() if qctmat: mlogbout.qct = qctmat.qct mlogbout.count_real = d_count_real