change - 震动数据曲线接口

master
yinq 2 months ago
parent 9da2e45d3a
commit cb81829d30

@ -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.*

Loading…
Cancel
Save