Merge remote-tracking branch 'origin/master'

master
夜笙歌 2 months ago
commit 7236a0fef7

@ -111,7 +111,8 @@
SELECT *,
ROW_NUMBER() OVER (PARTITION BY sensor_id ORDER BY collectTime DESC) AS rn
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>
)
SELECT m.monitorName, t.*

Loading…
Cancel
Save