materialbatch接口bug

This commit is contained in:
caoqianming 2021-11-24 09:05:35 +08:00
parent 5ad908b742
commit eae407c690
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class SubProductionPlanViewSet(CreateUpdateModelAMixin, ListModelMixin, UpdateMo
materials = []
for i in need:
materials.append(i['material'])
objs = MaterialBatch.objects.filter(material__id__in=materials, count_gt=0).order_by('material__number')
objs = MaterialBatch.objects.filter(material__id__in=materials, count__gt=0).order_by('material__number')
have = MaterialBatchSerializer(instance=objs, many=True).data
return Response({'need':need, 'have':have})