Commit d74614f7 authored by ZZH's avatar ZZH

fix equip opt 2025-6-3 17:16

parent 1af91f22
......@@ -37,7 +37,7 @@ async def load_equip_reuse(sid):
for r in await conn.fetchall(sql, args=(sid,)):
meter_no, cid, db = r["meter_no"], r["cid"], r["db"]
sql = f"SELECT c.product, c.cid, c.shortname, " \
f"p.pid, p.name FROM {db}.monitor m " \
f"p.pid, p.name, m.sid, m.mtid FROM {db}.monitor m " \
f"LEFT JOIN {db}.company c ON c.cid=m.cid " \
f"LEFT JOIN {db}.point p on m.mtid=p.mtid " \
f"WHERE m.sid=%s AND m.meter_no=%s AND m.cid=%s " \
......
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