|
|
@ -111,7 +111,8 @@
|
|
|
|
SELECT *,
|
|
|
|
SELECT *,
|
|
|
|
ROW_NUMBER() OVER (PARTITION BY sensor_id ORDER BY collectTime DESC) AS rn
|
|
|
|
ROW_NUMBER() OVER (PARTITION BY sensor_id ORDER BY collectTime DESC) AS rn
|
|
|
|
FROM T_VibrationSensor_Data
|
|
|
|
FROM T_VibrationSensor_Data
|
|
|
|
-- WHERE collectTime > (GETDATE() - 1)
|
|
|
|
WHERE 1=1
|
|
|
|
|
|
|
|
-- AND collectTime > (GETDATE() - 1)
|
|
|
|
<if test="sensorId != null and sensorId != ''"> and sensor_id like concat(#{sensorId}, '%') </if>
|
|
|
|
<if test="sensorId != null and sensorId != ''"> and sensor_id like concat(#{sensorId}, '%') </if>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
SELECT m.monitorName, t.*
|
|
|
|
SELECT m.monitorName, t.*
|
|
|
|