Commit e95ec161 authored by wang.wenrong's avatar wang.wenrong

设备管理复用cid逻辑

parent 41a6142d
......@@ -222,7 +222,7 @@ async def hardware_statistics(company_id):
"left JOIN monitor c on p.mtid = c.mtid " \
"left join monitor_reuse m on c.mtid = m.mtid " \
"where c.demolished=0 and " \
"(p.cid_belongedto =%s or m.cid=%s)"
"(p.cid =%s or m.cid=%s)"
points = await conn.fetchall(sql=point_sql,
args=(company_id, company_id))
......
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