fix: get_discount_info查询discount_marketing表而非discount表
This commit is contained in:
parent
cd69111655
commit
90e2fd0c0c
@ -805,10 +805,10 @@ async def get_discount_info(request):
|
|||||||
config = getConfig()
|
config = getConfig()
|
||||||
db.databases = config.databases
|
db.databases = config.databases
|
||||||
sql = """
|
sql = """
|
||||||
SELECT d.name, o.orgname
|
SELECT dm.name, o.orgname
|
||||||
FROM discount d
|
FROM discount_marketing dm
|
||||||
LEFT JOIN organization o ON d.customerid = o.id
|
LEFT JOIN organization o ON dm.resellerid = o.id
|
||||||
WHERE d.id = ${discountid}$
|
WHERE dm.id = ${discountid}$
|
||||||
"""
|
"""
|
||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
recs = await sor.sqlExe(sql, {'discountid': discountid})
|
recs = await sor.sqlExe(sql, {'discountid': discountid})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user