From f44cf32b7209f48f4b2efe07971bed7a67862be2 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期三, 11 九月 2024 14:49:18 +0800 Subject: [PATCH] 过程参数调试完成 --- smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperProcessParameterMapper.xml | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 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 2130bba..4ac9340 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 @@ -102,7 +102,7 @@ </where> order by ts asc </select> - +<!-- <select id="oldOneCollectList" resultType="com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO"> select ts as realTime, n as collectItem, @@ -115,7 +115,7 @@ order by ts </select> - <!-- + <select id="oldFirstStatue" resultType="com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO"> select last(ts) as realTime, last(v) as value_collect @@ -159,5 +159,15 @@ and ts > #{endTime} and workstation_id = #{workstationId} </select> + <select id="oldOneCollectList" resultType="com.qianwen.smartman.modules.mdc.dto.ProcessParameterVO"> + select n as collectItem,v as valueCollect + from root.f2.process_param_* + where n = #{item} + and time >= #{startTime} + and time <= #{endTime} + and workstation_id = #{workstationId} + order by time + align by device + </select> </mapper> -- Gitblit v1.9.3