From cb81829d305deaff227c624346a19e06389b5df5 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 5 Sep 2024 11:23:48 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E9=9C=87=E5=8A=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9B=B2=E7=BA=BF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/system/TVibrationsensorDataMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.*