From 0c5f0cfcc3f532315bd243abe01e2b86b5515693 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 15:56:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sort=E6=94=B9=E4=B8=BAlist=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- discount/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discount/init.py b/discount/init.py index 8026138..3d3c3f2 100644 --- a/discount/init.py +++ b/discount/init.py @@ -767,7 +767,7 @@ async def get_discount_setting_products(request): WHERE p.org_id = ${org_id}$ AND p.status = '1' ORDER BY ${sort}$ """ - ns = {'discountid': discountid, 'org_id': user_orgid, 'sort': 'pc.name, p.product_name'} + ns = {'discountid': discountid, 'org_id': user_orgid, 'sort': ['pc.name', 'p.product_name']} async with db.sqlorContext(dbname) as sor: recs = await sor.sqlExe(sql, ns)