Commit 98d39974 authored by lcn's avatar lcn

修复bug

parent bbdb3898
...@@ -50,7 +50,12 @@ async def load_product_auth(user_id, product_id): ...@@ -50,7 +50,12 @@ async def load_product_auth(user_id, product_id):
cid_sql = base_sql cid_sql = base_sql
args = (pro_id,) args = (pro_id,)
else: else:
cid_sql = base_sql + " and proxy = %s" proxy_id = proxy_id.split(',')
cid_sql = f"""
select c.cid from company c
left join company_proxy_map cpm on c.cid =cpm.cid
where product = %s and is_show = 1 and proxy in %s
"""
args = (pro_id, proxy_id) args = (pro_id, proxy_id)
async with mysql_util.MysqlUtil() as conn: async with mysql_util.MysqlUtil() as conn:
cids = await conn.fetchall(cid_sql, args=args) cids = await conn.fetchall(cid_sql, args=args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment