From 3cacea1b06debbcfdcdc1796c192b3325617ba9b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 22 Jul 2025 15:56:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=B9=E6=AC=A1=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=88=86=E6=9E=90=E6=97=B6logerror=E5=90=8Ereturn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/scripts/batch_bxerp.py | 1 + apps/wpm/scripts/batch_gxerp.py | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/wpm/scripts/batch_bxerp.py b/apps/wpm/scripts/batch_bxerp.py index 8350806d..80d14191 100644 --- a/apps/wpm/scripts/batch_bxerp.py +++ b/apps/wpm/scripts/batch_bxerp.py @@ -14,6 +14,7 @@ def main(batch: str, mgroup_obj:Mgroup=None): batchst = BatchSt.objects.get(batch=batch, version=1) except BatchSt.DoesNotExist: myLogger.error(f"Batch {batch} does not exist") + return data = {"批次号": batch} diff --git a/apps/wpm/scripts/batch_gxerp.py b/apps/wpm/scripts/batch_gxerp.py index 3eaf3614..11f8d633 100644 --- a/apps/wpm/scripts/batch_gxerp.py +++ b/apps/wpm/scripts/batch_gxerp.py @@ -16,6 +16,7 @@ def main(batch: str, mgroup_obj): batchst = BatchSt.objects.get(batch=batch, version=1) except BatchSt.DoesNotExist: myLogger.error(f"Batch {batch} does not exist") + return data = {"批次号": batch}