fix: correct_mb优化

This commit is contained in:
caoqianming 2024-04-02 22:39:24 +08:00
parent 2982bccf7f
commit 0b193c6950
1 changed files with 7 additions and 6 deletions

View File

@ -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: