From 04d53749b21921c9bceebe120d170c2ee6e533af Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 13 十一月 2024 21:21:46 +0800
Subject: [PATCH] 增加离线检查定时任务的逻辑

---
 collect/src/main/resources/com/qianwen/mdc/collect/mapper/iotdb/ProcessParamMapper.xml |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/collect/src/main/resources/com/qianwen/mdc/collect/mapper/iotdb/ProcessParamMapper.xml b/collect/src/main/resources/com/qianwen/mdc/collect/mapper/iotdb/ProcessParamMapper.xml
index ea817bd..cbe1a03 100644
--- a/collect/src/main/resources/com/qianwen/mdc/collect/mapper/iotdb/ProcessParamMapper.xml
+++ b/collect/src/main/resources/com/qianwen/mdc/collect/mapper/iotdb/ProcessParamMapper.xml
@@ -12,12 +12,8 @@
     </resultMap>
 
     <!-- n,v,workstation_id -->
-    <select id="mylist" resultType="com.qianwen.mdc.collect.entity.iotdb.ProcessParam"
-            parameterType="java.lang.Long">
-            select  n,v,workstation_id from root.f2.process_param*
-			 where workstation_id=#{workstationId}
-			 order by time asc limit 1 align by device
-        
+    <select id="lastParamByWorstationId" resultType="com.qianwen.mdc.collect.entity.iotdb.ProcessParam">
+            select  n as n,v as v,workstation_id as workstationId from root.f2.process_param_${workstationId}_* order by time desc limit 1 align by device
     </select>
 
 </mapper>

--
Gitblit v1.9.3