diff --git a/apps/wpm/models.py b/apps/wpm/models.py index 77d68057..486be373 100644 --- a/apps/wpm/models.py +++ b/apps/wpm/models.py @@ -621,7 +621,7 @@ class BatchSt(BaseModel): 创建新的批次 """ if mio is None and handover is None and mlog is None: - return cls.objects.get_or_create(batch=batch) + return cls.objects.get_or_create(batch=batch, version=1) else: version = 1 # 带有来源的批次获取,需检查批次号是否可用