From 120755e6874893d284fda5f617924d46960286c0 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 11 四月 2025 01:27:15 +0800
Subject: [PATCH] 修改日志路径为/var/log/xxx
---
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