From 5579b3cf5d5e2a5b7ec90c89fa843639ba7e2a87 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 27 四月 2023 12:42:17 +0800
Subject: [PATCH] 修改告警和预警数据入库方法

---
 src/main/resources/mapping/SuYuanMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapping/SuYuanMapper.xml b/src/main/resources/mapping/SuYuanMapper.xml
index a574b5f..404a175 100644
--- a/src/main/resources/mapping/SuYuanMapper.xml
+++ b/src/main/resources/mapping/SuYuanMapper.xml
@@ -111,7 +111,7 @@
     	<foreach collection="ids" item="item" open="(" separator="," close=")">
     		#{item}
     	</foreach>
-    	AND c > (SELECT jcbj FROM alert_config LIMIT 0, 1)
+    	AND c > (SELECT jcbj FROM alert_config LIMIT 1)
     </select>
     
     <select id="getWarningAnalyse" resultMap="SuYuan2dResult">
@@ -121,7 +121,7 @@
     	<foreach collection="ids" item="item" open="(" separator="," close=")">
     		#{item}
     	</foreach>
-    	AND c > (SELECT jcyj FROM alert_config LIMIT 0, 1)
+    	AND c > (SELECT jcyj FROM alert_config LIMIT 1)
     </select>
     
     <select id="getMonitorData" resultMap="SuYuanMonitorDataResult">

--
Gitblit v1.9.3