fix: sort改为list格式
This commit is contained in:
parent
52d48c964a
commit
0c5f0cfcc3
@ -767,7 +767,7 @@ async def get_discount_setting_products(request):
|
|||||||
WHERE p.org_id = ${org_id}$ AND p.status = '1'
|
WHERE p.org_id = ${org_id}$ AND p.status = '1'
|
||||||
ORDER BY ${sort}$
|
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:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
recs = await sor.sqlExe(sql, ns)
|
recs = await sor.sqlExe(sql, ns)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user