fix: mlogbw create bug

This commit is contained in:
caoqianming 2025-02-28 16:27:23 +08:00
parent a2fb5598f8
commit 9eb3abefc4
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ class MlogbwViewSet(CustomModelViewSet):
ins:Mlogbw = serializer.save()
route:Route = ins.mlogb.mlog.route
mlogb:Mlogb = ins.mlogb
self.cal_mlogb_count(mlogb)
Mlogbw.cal_count_notok(mlogb)
# 如果是输入且输出追踪到个,需同步创建
material_in:Material = mlogb.material_in
if material_in is not None: