diff --git a/apps/wpmw/views.py b/apps/wpmw/views.py index f9ab729b..0a8c865a 100644 --- a/apps/wpmw/views.py +++ b/apps/wpmw/views.py @@ -56,7 +56,9 @@ class WprViewSet(CustomListModelMixin, RetrieveModelMixin, ComplexQueryMixin, Cu @action(methods=['get'], detail=False, perms_map={'get': '*'}) def number_out_last(self, request, *args, **kwargs): - """获取最新的出库对外编号""" + """获取最新的出库对外编号 + + 获取最新的出库对外编号(get请求传入prefix参数)""" prefix = request.query_params.get("prefix") wpr_qs_last = Wpr.objects.filter(number_out__startswith=prefix).order_by("number_out").last() if wpr_qs_last: