From 6482a841d5c7a85a039604474288f31a6ef02032 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 18 Nov 2021 09:19:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8A=E6=88=90=E5=93=81=E9=A2=86=E6=96=99bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/serializers.py b/hb_server/apps/wpm/serializers.py index 778e48e..9294ec4 100644 --- a/hb_server/apps/wpm/serializers.py +++ b/hb_server/apps/wpm/serializers.py @@ -93,7 +93,7 @@ class PickSerializer(serializers.Serializer): raise exceptions.APIException('超过计划需求数') if isLowLevel: # 更新半成品表 - wids = iproducts.values_list('wproduct', flat=True) + wids = IProduct.objects.filter(pk__in=[x.id for x in iproducts]).values_list('wproduct', flat=True) wproducts = WProduct.objects.filter(pk__in=wids) first_step = Step.objects.get(pk=sp.steps[0].id) wproducts.update(step=first_step, is_executed=False,