From 553523418b10f2db5a4f50e0614de4122338ab86 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 06 六月 2023 10:43:19 +0800
Subject: [PATCH] 修改根据时间查询Voc接口

---
 src/main/resources/mapping/VocValsMapper.xml |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/mapping/VocValsMapper.xml b/src/main/resources/mapping/VocValsMapper.xml
index 9f80f4c..2d937ad 100644
--- a/src/main/resources/mapping/VocValsMapper.xml
+++ b/src/main/resources/mapping/VocValsMapper.xml
@@ -10,14 +10,10 @@
     </resultMap>
 
     <select id="selectByTime" resultMap="selectMap">
-        select *
+        select x, y, cast(val as decimal(12, 3)) "val"
         from voc_vals
-        <where>
-            date_format(create_time, '%Y%m%d%H') = ${time}
-            <if test="startVal != null">
-                and val > ${startVal}
-            </if>
-        </where>
+        where date_format(create_time, '%Y%m%d%H') = ${time}
+            and val > (select jcyj from alert_config);
     </select>
 
     <select id="countByTime" resultType="java.lang.Integer">

--
Gitblit v1.9.3