Commit 08cf0f0d authored by wujipeng's avatar wujipeng
Browse files

服务器监控

parent 0f11814d
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
SELECT *, SELECT *,
ROW_NUMBER() OVER (PARTITION BY ip_address ORDER BY timestamp DESC) as rn ROW_NUMBER() OVER (PARTITION BY ip_address ORDER BY timestamp DESC) as rn
FROM project_server_monitor FROM project_server_monitor
<where>
<if test="ipAddress != null and ipAddress != ''">
and ip_address = #{ipAddress}
</if>
</where>
) t ) t
WHERE t.rn = 1 WHERE t.rn = 1
</select> </select>
......
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