From 25169ce9015c91b1596619fcc27b5554bd73bee7 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 29 七月 2023 10:18:14 +0800
Subject: [PATCH] 5

---
 src/main/resources/mapper/QxshMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/QxshMapper.xml b/src/main/resources/mapper/QxshMapper.xml
index af93f53..d785b67 100644
--- a/src/main/resources/mapper/QxshMapper.xml
+++ b/src/main/resources/mapper/QxshMapper.xml
@@ -19,6 +19,19 @@
         limit 10;
     </select>
 
+    <select id="countMonthForWarn" resultType="java.lang.Integer">
+        select count(*)
+        from yssh_qxsh
+        where time between #{start} and #{end} and name like 'AI-%'
+            and value > (select jcyj from alert_config limit 1) and value &lt;= (select jcbj from alert_config limit 1);
+    </select>
+
+    <select id="countMonthForAlarm" resultType="java.lang.Integer">
+        select count(*)
+        from yssh_qxsh
+        where time between #{start} and #{end} and name like 'AI-%' and value > (select jcbj from alert_config limit 1);
+    </select>
+
     <select id="count7DayForWarn" resultType="java.util.Map">
         with rs as (
             select left(time, 8) "createTime"

--
Gitblit v1.9.3