fix: correct_mb优化
This commit is contained in:
parent
2982bccf7f
commit
0b193c6950
|
@ -8,6 +8,7 @@ def correct_material_batch():
|
|||
mgroups = Mgroup.objects.all()
|
||||
p_dict = {}
|
||||
for mgroup in mgroups:
|
||||
if mgroup.process:
|
||||
processId = mgroup.process.id
|
||||
dept: Dept = mgroup.belong_dept
|
||||
if processId not in p_dict:
|
||||
|
|
Loading…
Reference in New Issue