From 67ca8b45a975a41093c0e52d8129624657089b44 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期一, 04 十一月 2024 13:24:36 +0800
Subject: [PATCH] 状态和绩效时间设置,修改值后清空缓存的key修正,修改位与collect一致
---
smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperProcessParameterMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperProcessParameterMapper.xml b/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperProcessParameterMapper.xml
index ba66bb6..86b829b 100644
--- a/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperProcessParameterMapper.xml
+++ b/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperProcessParameterMapper.xml
@@ -198,5 +198,26 @@
order by time
align by device
</select>
+
+ <select id="lastParameterNotEqValue" resultType="com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO">
+ select n as collectItem,v as valueCollect
+ from root.f2.process_param_${workstationId}_${item}
+ where v<>"#{value}"
+ order by time desc limit 1
+ </select>
+
+ <select id="firstParameterEqValueGtTime" resultType="com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO">
+ select n as collectItem,v as valueCollect
+ from root.f2.process_param_${workstationId}_${item}
+ where v="#{value}" and time > #{time}
+ order by time limit 1
+ </select>
+
+ <select id="firstParameterEqValue" resultType="com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO">
+ select n as collectItem,v as valueCollect
+ from root.f2.process_param_${workstationId}_${item}
+ where v="#{value}"
+ order by time limit 1
+ </select>
</mapper>
--
Gitblit v1.9.3