Commit 634e0d8d authored by ZZH's avatar ZZH

fix longgang data 2023-7-19

parent 68fa4a8c
...@@ -107,7 +107,7 @@ async def load_compy_storey_points(cid, pg_num, pg_size): ...@@ -107,7 +107,7 @@ async def load_compy_storey_points(cid, pg_num, pg_size):
"""monitor和point和storey联合查询, 分页""" """monitor和point和storey联合查询, 分页"""
sql = "SELECT monitor.cid, c.address, point.name, point.create_time, " \ sql = "SELECT monitor.cid, c.address, point.name, point.create_time, " \
"monitor.sid, monitor.meter_no, srm.room_name, srm.storey_name, " \ "monitor.sid, monitor.meter_no, srm.room_name, srm.storey_name, " \
"monitor.longitude, point.mtid, monitor.latitude, point.pid " \ "point.mtid, point.pid " \
"FROM monitor " \ "FROM monitor " \
"inner join point on monitor.mtid = point.mtid " \ "inner join point on monitor.mtid = point.mtid " \
"inner join storey_room_map srm on point.pid = srm.point_id " \ "inner join storey_room_map srm on point.pid = srm.point_id " \
......
...@@ -53,8 +53,8 @@ async def basic_info_longgang_service(user_id, pg_size, pg_num): ...@@ -53,8 +53,8 @@ async def basic_info_longgang_service(user_id, pg_size, pg_num):
"equipment_address": f"{compy_addr}{storey_name}{room_name}", "equipment_address": f"{compy_addr}{storey_name}{room_name}",
"equipment_code": info["sid"], "equipment_code": info["sid"],
"root_address": f"{compy_addr}{storey_name}{room_name}", "root_address": f"{compy_addr}{storey_name}{room_name}",
"longitude": info.get("longitude", ''), "longitude": "",
"latitude": info.get("latitude", ''), "latitude": "",
"insurer": "黄锦成", "insurer": "黄锦成",
"insurer_phone": "13580428480" "insurer_phone": "13580428480"
} }
......
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