From cd294bc53c94856073ff41149ae94a078e577509 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 14 Apr 2025 23:03:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=94=E4=BF=AE=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E5=90=8E=E7=89=A9=E6=96=99=E7=8A=B6=E6=80=81=E9=83=BD=E5=8F=98?= =?UTF-8?q?=E4=B8=BA=E8=BF=94=E4=BF=AE=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/services.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/wpm/services.py b/apps/wpm/services.py index e31eb6c4..b9dd0862 100644 --- a/apps/wpm/services.py +++ b/apps/wpm/services.py @@ -772,10 +772,10 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime, # 返修交接 recive_mgroup = handover.recive_mgroup if recive_mgroup: - if recive_mgroup.process == Process.PRO_TEST: - wm_state = WMaterial.WM_REPAIRED - else: - wm_state = WMaterial.WM_REPAIR + # if recive_mgroup.process.type == Process.PRO_TEST: + # wm_state = WMaterial.WM_REPAIRED + # else: + wm_state = WMaterial.WM_REPAIR wm_to, _ = WMaterial.objects.get_or_create( batch=batch, material=material,