diff --git a/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml index 6020439..3cc95bc 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml @@ -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) and sensor_id like concat(#{sensorId}, '%') ) SELECT m.monitorName, t.*