From c98ce36c16f1859901a49e0c16e51075adb6883a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 29 Jul 2025 10:03:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0number=5Fout=5Flast?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpmw/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: