fix: 调整数据结构3
This commit is contained in:
parent
a350d97202
commit
9ef752cb05
|
@ -707,7 +707,7 @@ class MlogbwViewSet(CustomModelViewSet):
|
||||||
# 如果是输入且输出追踪到个,需同步创建
|
# 如果是输入且输出追踪到个,需同步创建
|
||||||
material_in:Material = mlogb.material_in
|
material_in:Material = mlogb.material_in
|
||||||
if material_in is not None:
|
if material_in is not None:
|
||||||
mlogb_qs = Mlogb.objects.filter(mlogbw_from=ins)
|
mlogb_qs = Mlogb.objects.filter(mlogbw_from=mlogb)
|
||||||
material_out:Material = mlogb.mlog.material_out
|
material_out:Material = mlogb.mlog.material_out
|
||||||
mtype = route.process.mtype if route.process else None
|
mtype = route.process.mtype if route.process else None
|
||||||
if material_in.tracking == Material.MA_TRACKING_SINGLE and mtype == Process.PRO_DIV:
|
if material_in.tracking == Material.MA_TRACKING_SINGLE and mtype == Process.PRO_DIV:
|
||||||
|
|
Loading…
Reference in New Issue