fix: mb create加锁
This commit is contained in:
parent
07473ddf90
commit
a1525d1289
|
@ -325,7 +325,7 @@ class InmService:
|
|||
state = WMaterial.WM_OK
|
||||
if defect:
|
||||
state = WMaterial.WM_NOTOK
|
||||
mb, _ = MaterialBatch.objects.get_or_create(
|
||||
mb, _ = MaterialBatch.safe_get_or_create(
|
||||
material=material,
|
||||
warehouse=warehouse,
|
||||
batch=batch,
|
||||
|
|
Loading…
Reference in New Issue