From 0fc57a454fb25732f2ae962427f5ab5dbb7677a3 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 25 Sep 2025 09:11:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E7=89=88=E9=9C=80=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=96=B0=E6=89=B9=E6=AC=A1=E5=8F=B7?= 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 077d5770..69aafb13 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -739,6 +739,8 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, recive_mgroup = handover.recive_mgroup recive_dept = handover.recive_dept + if handover.type == Handover.H_CHANGE: + handover.mtype = Handover.H_MERGE new_batch = handover.new_batch if new_batch and mtype != Handover.H_MERGE: raise ParseError("只有合并时才能提供新批次号")