From 011df65e4c03b521262d6ef622ec7aaa4fd2b0c8 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 7 Jan 2025 14:07:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A6=82=E6=9E=9C=E6=98=AF=E4=B8=BB?= =?UTF-8?q?=E8=A6=81=E8=BE=93=E5=85=A5=E7=89=A9=E6=96=99=E4=B8=94=E6=98=AF?= =?UTF-8?q?=E4=B8=BB=E6=89=B9=E6=AC=A1=EF=BC=8C=E6=89=8D=E9=9C=80=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/views.py b/apps/wpm/views.py index 4971c382..b7472a62 100644 --- a/apps/wpm/views.py +++ b/apps/wpm/views.py @@ -491,7 +491,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust if material_out is None: raise ParseError('产物不可为空') # 如果是主要输入物料且是主批次,才需生成输出 - if route.material_in != material_in and mlogbin.is_main_batchin is False: + if route.material_in != material_in or mlogbin.is_main_batchin is False: return m_dict = { "mtask": mlogbin.mtask,