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}