From 9d1af2499402916a4f6bfafa37f19aa2ae016179 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 5 Jun 2025 08:24:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20handover=5Fsubmit=20batches=E8=8E=B7?= =?UTF-8?q?=E5=8F=96bug2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index 0f694c4b..38e3d445 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -767,8 +767,10 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, # 合并为新批 if mtype == Handover.H_MERGE: + batch = new_batch source, _ = BatchSt.g_create(batch=wm_from.batch, exclude_batchst_ids=exclude_batchst_ids) BatchLog.g_create(source=source, target=target_b, handover=handover, relation_type="merge") + batches.append(wm_from.batch) elif mtype == Handover.H_DIV: batch = handover_or_b.batch batches.append(batch)