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