From 03fc7dc5d536f08e711f7ddb79f720c2e1ded16b Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期日, 13 四月 2025 21:59:12 +0800
Subject: [PATCH] 增加状态核实;增加模板是否set的缓存优化

---
 collect/src/main/resources/com/qianwen/mdc/collect/mapper/iotdb/ProcessParamMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 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 cbe1a03..8f31aaf 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
@@ -15,6 +15,10 @@
     <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>
+    
+    <select id="lastParamListByWorstationId" 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}_${item} order by time desc limit ${count} align by device
+    </select>
 
 </mapper>
 

--
Gitblit v1.9.3