fix: mlogb找寻质检表

This commit is contained in:
caoqianming 2025-01-07 15:41:04 +08:00
parent 38aa64df12
commit 95b98df8cf
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
d_count_real = xcount d_count_real = xcount
d_count_ok = 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: if qctmat:
mlogbout.qct = qctmat.qct mlogbout.qct = qctmat.qct
mlogbout.count_real = d_count_real mlogbout.count_real = d_count_real