From f112d1263921940234671e5788f6cf2655dbc353 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 25 十月 2024 10:47:58 +0800
Subject: [PATCH] 过程参数,图形展示修改为使用数据点的paramChartType属性来判断
---
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