Commit 0398e9a7 authored by wang.wenrong's avatar wang.wenrong

tsp_alarm

parent 6c602d2a
......@@ -20,9 +20,9 @@ async def alarm_record_service(cid, pm_type, start, end, importance,
cond_sql = " and ".join(li)
sql = f"SELECT event_datetime,tsp_id,name,importance,message,pm_type" \
f" FROM tsp_1min_event where {cond_sql} " \
f" FROM point_1min_event where {cond_sql} " \
f"ORDER BY event_datetime desc limit {current_page}, {page_size}"
t_sql = f"SELECT count(id) total FROM `tsp_1min_event` where " \
t_sql = f"SELECT count(id) total FROM `point_1min_event` where " \
f"{cond_sql}"
datas = await tsp_event_search_dao(sql)
......
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