From 09b28c6b69f93acaa6ee11b4f83999e99e31ac82 Mon Sep 17 00:00:00 2001 From: yinq Date: Sat, 14 Sep 2024 14:23:36 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=8C=AF=E5=8A=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9B=B2=E7=BA=BF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TVibrationsensorDataController.java | 2 +- .../mapper/TVibrationsensorDataMapper.java | 6 + .../service/ITVibrationsensorDataService.java | 7 + .../impl/TVibrationsensorDataServiceImpl.java | 10 + .../system/TArraytemperaturedataMapper.xml | 204 +++++++++--------- .../system/TVibrationsensorDataMapper.xml | 12 ++ 6 files changed, 144 insertions(+), 97 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TVibrationsensorDataController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TVibrationsensorDataController.java index 99c18be..63fc78b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TVibrationsensorDataController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TVibrationsensorDataController.java @@ -148,7 +148,7 @@ public class TVibrationsensorDataController extends BaseController { @PostMapping("/sensorList") @ResponseBody public AjaxResult sensorList(TVibrationsensorData tVibrationsensorData) { - List list = tVibrationsensorDataService.selectTVibrationsensorDataList(tVibrationsensorData); + List list = tVibrationsensorDataService.selectTVibrationsensorDataListCurve(tVibrationsensorData); return AjaxResult.success(list); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TVibrationsensorDataMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TVibrationsensorDataMapper.java index 60aafba..a857752 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TVibrationsensorDataMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TVibrationsensorDataMapper.java @@ -61,4 +61,10 @@ public interface TVibrationsensorDataMapper { List selectRealTimeMonitor(TVibrationsensorData tVibrationsensorData); + /** + * 振动数据正向查询 + * @param tVibrationsensorData + * @return + */ + List selectTVibrationsensorDataListCurve(TVibrationsensorData tVibrationsensorData); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITVibrationsensorDataService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITVibrationsensorDataService.java index 1a1808c..ddf497e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITVibrationsensorDataService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITVibrationsensorDataService.java @@ -66,4 +66,11 @@ public interface ITVibrationsensorDataService */ public List selectRealTimeMonitor(TVibrationsensorData tVibrationsensorData); + /** + * 振动数据曲线 + * @param tVibrationsensorData + * @return + */ + List selectTVibrationsensorDataListCurve(TVibrationsensorData tVibrationsensorData); + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TVibrationsensorDataServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TVibrationsensorDataServiceImpl.java index 36024a7..8dc9938 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TVibrationsensorDataServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TVibrationsensorDataServiceImpl.java @@ -90,4 +90,14 @@ public class TVibrationsensorDataServiceImpl implements ITVibrationsensorDataSer public List selectRealTimeMonitor(TVibrationsensorData tVibrationsensorData) { return tVibrationsensorDataMapper.selectRealTimeMonitor(tVibrationsensorData); } + + /** + * 振动数据正向查询 + * @param tVibrationsensorData + * @return + */ + @Override + public List selectTVibrationsensorDataListCurve(TVibrationsensorData tVibrationsensorData) { + return tVibrationsensorDataMapper.selectTVibrationsensorDataListCurve(tVibrationsensorData); + } } diff --git a/ruoyi-system/src/main/resources/mapper/system/TArraytemperaturedataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TArraytemperaturedataMapper.xml index 102e065..05a0bfc 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TArraytemperaturedataMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TArraytemperaturedataMapper.xml @@ -1588,15 +1588,15 @@ @@ -3955,101 +3955,113 @@ - delete from T_ArrayTemperatureData where DATEADD(DAY, #{objId}, GETDATE()) > collectTime + delete + from T_ArrayTemperatureData + where DATEADD(DAY, #{objId}, GETDATE()) > collectTime + + diff --git a/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml index ea9353b..de975de 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TVibrationsensorDataMapper.xml @@ -123,5 +123,17 @@ AND m.monitorId IS NOT NULL ORDER BY sensor_id +