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)