fix: mlogb找寻质检表
This commit is contained in:
parent
38aa64df12
commit
95b98df8cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue