Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
王蔡翾
operation_platform
Commits
08cf0f0d
Commit
08cf0f0d
authored
Mar 05, 2026
by
wujipeng
Browse files
服务器监控
parent
0f11814d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/resources/mapper/ProjectServerMonitorMapper.xml
View file @
08cf0f0d
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment