feat: bachst添加复杂查询接口

This commit is contained in:
caoqianming 2025-05-26 13:28:43 +08:00
parent d385fefc4f
commit e47464805e
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from apps.system.models import User
from apps.mtm.models import Material, Process, Route, Mgroup, RoutePack
from apps.utils.viewsets import CustomGenericViewSet, CustomModelViewSet
from apps.utils.mixins import CustomListModelMixin, BulkCreateModelMixin, BulkDestroyModelMixin
from apps.utils.mixins import CustomListModelMixin, BulkCreateModelMixin, ComplexQueryMixin
from .filters import StLogFilter, SfLogFilter, WMaterialFilter, MlogFilter, HandoverFilter, MlogbFilter, BatchStFilter, MlogbwFilter
from .models import (SfLog, SfLogExp, StLog, WMaterial, Mlog, Handover, Mlogb,
@ -731,7 +731,7 @@ class FmlogViewSet(CustomModelViewSet):
ins.save()
return Response()
class BatchStViewSet(ListModelMixin, CustomGenericViewSet):
class BatchStViewSet(ListModelMixin, ComplexQueryMixin, CustomGenericViewSet):
"""
list: 批次统计数据