From fd135511508a88f2dc8741a6e15e151f90972876 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 2 Nov 2023 17:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mlogb=20update=20=E5=8F=AA=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AD=98=E5=9C=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 0f9c6e15..6b44f082 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -174,9 +174,9 @@ class MlogSerializer(CustomModelSerializer): mlogb = Mlogb.objects.get(id=id) mlogb.count_ok = item['count_ok'] mlogb.save() - elif item['material_out'].id in brotherId_should_list: - Mlogb.objects.create( - mlog=instance, material_out=item['material_out'], count_ok=item['count_ok']) + # elif item['material_out'].id in brotherId_should_list: + # Mlogb.objects.create( + # mlog=instance, material_out=item['material_out'], count_ok=item['count_ok']) else: raise ValidationError('缺少产出物信息') return instance