fix: mlogbw cal_count_notok

This commit is contained in:
caoqianming 2025-03-10 11:29:43 +08:00
parent fbb18ae990
commit f295956c69
1 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ class MlogbwViewSet(CustomModelViewSet):
elif route.process.mtype == Process.PRO_DIV:
for i in range(route.div_number):
Mlogbw.objects.get_or_create(mlogb=mlogb_to, number=f'{ins.number}-{i+1}')
self.cal_mlogb_count(mlogb_to)
Mlogbw.cal_count_notok(mlogb_to)
@transaction.atomic
def perform_update(self, serializer):
@ -724,7 +724,7 @@ class MlogbwViewSet(CustomModelViewSet):
instance.delete()
if ftest:
ftest.delete()
self.cal_mlogb_count(mlogb)
Mlogbw.cal_count_notok(mlogb)
# 如果是输入且输出追踪到个,需同步删除
material_in: Material = mlogb.material_in
if material_in is not None: