From be57fec29f441e1d3c7622ef4af4a5b96692b47d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 25 Apr 2025 16:27:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96batchst=E6=97=B6?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8version=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # 带有来源的批次获取,需检查批次号是否可用