Commit 27de7a5d authored by lcn's avatar lcn

bug修复

parent b3f0d6ca
......@@ -78,7 +78,7 @@ async def load_add_to_compy_ids(cid):
db = SETTING.mysql_db
sql = f"SELECT monitor.mtid, monitor.sid FROM {db}.monitor " \
f"INNER JOIN {db}.point ON point.mtid=monitor.mtid " \
f"WHERE monitor.cid=%s AND point.add_to_company=1 " \
f"WHERE monitor.cid in %s AND point.add_to_company=1 " \
f"AND monitor.demolished=0;"
async with MysqlUtil() as conn:
ids = await conn.fetchall(sql, (cid,))
......
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