fix: 移除ORDER BY
This commit is contained in:
parent
0c5f0cfcc3
commit
0eba657ce4
@ -765,9 +765,8 @@ async def get_discount_setting_products(request):
|
|||||||
LEFT JOIN discount_detail dd ON dd.productid = p.id
|
LEFT JOIN discount_detail dd ON dd.productid = p.id
|
||||||
AND dd.discountid = ${discountid}$
|
AND dd.discountid = ${discountid}$
|
||||||
WHERE p.org_id = ${org_id}$ AND p.status = '1'
|
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:
|
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