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

Merge branch 'wwr' into 'develop'

设备管理复用cid逻辑

See merge request !48
parents 22325f27 e95ec161
...@@ -222,7 +222,7 @@ async def hardware_statistics(company_id): ...@@ -222,7 +222,7 @@ async def hardware_statistics(company_id):
"left JOIN monitor c on p.mtid = c.mtid " \ "left JOIN monitor c on p.mtid = c.mtid " \
"left join monitor_reuse m on c.mtid = m.mtid " \ "left join monitor_reuse m on c.mtid = m.mtid " \
"where c.demolished=0 and " \ "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, points = await conn.fetchall(sql=point_sql,
args=(company_id, company_id)) 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