|
|
|
@ -210,6 +210,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
t.gatherTime |
|
|
|
t.gatherTime |
|
|
|
FROM ( |
|
|
|
FROM ( |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
|
|
|
|
b.id, |
|
|
|
b.name, |
|
|
|
b.name, |
|
|
|
b.location, |
|
|
|
b.location, |
|
|
|
g.cpu_utilization AS cpuUtilization, |
|
|
|
g.cpu_utilization AS cpuUtilization, |
|
|
|
@ -221,7 +222,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
ROW_NUMBER() OVER (PARTITION BY b.id ORDER BY g.gather_time DESC) AS rn |
|
|
|
ROW_NUMBER() OVER (PARTITION BY b.id ORDER BY g.gather_time DESC) AS rn |
|
|
|
FROM equ_base b |
|
|
|
FROM equ_base b |
|
|
|
LEFT JOIN equ_gather g ON b.id = g.equ_id |
|
|
|
LEFT JOIN equ_gather g ON b.id = g.equ_id |
|
|
|
WHERE g.cpu_utilization IS NOT NULL |
|
|
|
|
|
|
|
) t |
|
|
|
) t |
|
|
|
WHERE t.rn = 1 |
|
|
|
WHERE t.rn = 1 |
|
|
|
ORDER BY t.name |
|
|
|
ORDER BY t.name |
|
|
|
|