From 2b32f3b7e35272a584ecbbb91b7509ba20f837fa Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期五, 08 十一月 2024 16:51:35 +0800
Subject: [PATCH] 11

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

diff --git a/src/main/resources/mapper/QxshMapper.xml b/src/main/resources/mapper/QxshMapper.xml
index a06cae3..2acb0c1 100644
--- a/src/main/resources/mapper/QxshMapper.xml
+++ b/src/main/resources/mapper/QxshMapper.xml
@@ -66,14 +66,14 @@
 
     <select id="countMonthForWarn" resultType="java.lang.Integer">
         with rs as (select jcyj, jcbj from alert_config limit 1)
-        select count(*)
+        select count(id)
         from yssh_gcsj
         where time between #{start} and #{end} and name like 'AI-%'
             and value > (select jcyj from rs) and value &lt;= (select jcbj from rs);
     </select>
 
     <select id="countMonthForAlarm" resultType="java.lang.Integer">
-        select count(*)
+        select count(id)
         from yssh_gcsj
         where time between #{start} and #{end} and name like 'AI-%'
             and value > (select jcbj from alert_config limit 1);
@@ -100,12 +100,12 @@
     </select>
 
     <select id="countFastSuYuan" resultType="java.lang.Integer">
-        select count(*) from suyuan_fast
+        select count(id) from suyuan_fast
         where su_yuan_id = #{id} and create_time = #{time};
     </select>
 
     <select id="hasSuYuan" resultType="java.lang.Integer">
-        select count(*) from suyuan_46 where su_yuan_id=#{suYuanId} and create_time=#{createTime};
+        select count(id) from suyuan_46 where su_yuan_id=#{suYuanId} and create_time=#{createTime};
     </select>
 
     <select id="select3Hours" resultType="com.yssh.entity.Qxsh">
@@ -139,22 +139,22 @@
     </select>
 
     <select id="countGcsjByTime" resultType="java.lang.Integer">
-        select count(*) from yssh_gcsj where time between #{start} and #{end};
+        select count(id) from yssh_gcsj where time between #{start} and #{end};
     </select>
 
     <select id="countQxshByTime" resultType="java.lang.Integer">
-        select count(*) from yssh_qxsh where time between #{start} and #{end};
+        select count(id) from yssh_qxsh where time between #{start} and #{end};
     </select>
 
     <select id="countSuYuan46ByTime" resultType="java.lang.Integer">
-        select count(*) from suyuan_46 where create_time between #{start} and #{end};
+        select count(id) from suyuan_46 where create_time between #{start} and #{end};
     </select>
 
     <select id="countSuYuan70ByTime" resultType="java.lang.Integer">
-        select count(*) from suyuan_70_70 where create_time between #{start} and #{end};
+        select count(id) from suyuan_70_70 where create_time between #{start} and #{end};
     </select>
 
     <select id="countSuYuanFastByTime" resultType="java.lang.Integer">
-        select count(*) from suyuan_fast where create_time between #{start} and #{end};
+        select count(id) from suyuan_fast where create_time between #{start} and #{end};
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3