feat: batchst添加字段以追踪material_start

This commit is contained in:
caoqianming 2025-03-24 15:16:37 +08:00
parent b070b312a8
commit d4df340c1c
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ class BatchSt(BaseModel):
raise ParseError(f"{batch} 该批号已存在不可用")
if mio is None and handover is None and mlog is None:
raise ParseError("mio or handover or mlog must be provided")
BatchSt.objects.create(batch=batch, mio=mio, handover=handover, mlog=mlog)
BatchSt.objects.create(batch=batch, mio=mio, handover=handover, mlog=mlog, material_start=material_start)