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