From 0eba657ce45ff51ad030cea918feee495e6452af Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 15:57:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4ORDER=20BY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- discount/init.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discount/init.py b/discount/init.py index 3d3c3f2..f8df9e5 100644 --- a/discount/init.py +++ b/discount/init.py @@ -765,9 +765,8 @@ async def get_discount_setting_products(request): LEFT JOIN discount_detail dd ON dd.productid = p.id AND dd.discountid = ${discountid}$ 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} async with db.sqlorContext(dbname) as sor: recs = await sor.sqlExe(sql, ns)