筛选加工时间不为空的24h数据

This commit is contained in:
mgw
2024-09-26 14:04:35 +08:00
parent 1d4188df7e
commit 0340563749

View File

@@ -1250,7 +1250,7 @@ class Sf_Dashboard_Connect(http.Controller):
cur.execute("""
SELECT * FROM device_data
WHERE device_name = %s
AND device_state != '离线'
AND device_state != '离线' AND process_time IS NOT NULL
ORDER BY time DESC
LIMIT 1;
""", (item,))