fix: 更改mythread的使用
This commit is contained in:
parent
b9f2264ff4
commit
56e40e6dd3
|
@ -18,7 +18,7 @@ class InmService:
|
|||
"""
|
||||
# 统计物料数量
|
||||
m_ids = MIOItem.objects.filter(mio=instance).values_list('material_id', flat=True)
|
||||
MyThread(target=cal_material_count, args=(m_ids, ), daemon=True, log_err=True).start()
|
||||
MyThread(target=cal_material_count, args=(m_ids, ), daemon=True).start()
|
||||
|
||||
@classmethod
|
||||
def update_inm(cls, instance: MIO, is_reverse: bool = False):
|
||||
|
|
Loading…
Reference in New Issue