feat: mlogbin 和 update时cal_count_notok
This commit is contained in:
parent
cf7673cd98
commit
b9a7138e72
|
@ -761,7 +761,7 @@ class MlogbInSerializer(CustomModelSerializer):
|
|||
]
|
||||
if mlogb_defect_objects:
|
||||
MlogbDefect.objects.bulk_create(mlogb_defect_objects)
|
||||
ins.cal_count_pn_jgqbl(cal_mlog=True)
|
||||
ins.cal_count_pn_jgqbl(cal_mlog=True)
|
||||
return ins
|
||||
|
||||
class MlogbInUpdateSerializer(CustomModelSerializer):
|
||||
|
@ -788,7 +788,9 @@ class MlogbInUpdateSerializer(CustomModelSerializer):
|
|||
]
|
||||
if mlogb_defect_objects:
|
||||
MlogbDefect.objects.bulk_create(mlogb_defect_objects)
|
||||
ins.cal_count_notok(cal_mlog=True)
|
||||
ins.cal_count_notok(cal_mlog=True)
|
||||
# 找到对应的产出
|
||||
|
||||
return ins
|
||||
|
||||
class MlogbwCreateUpdateSerializer(CustomModelSerializer):
|
||||
|
|
Loading…
Reference in New Issue