From 0d7d6a88080dc8759ef84ed5ad7875f25642df6c Mon Sep 17 00:00:00 2001 From: yantian yue <306727702@qq.com> Date: 星期一, 23 十月 2023 10:59:18 +0800 Subject: [PATCH] OPCUA更新 --- guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/mapper/mapping/OpcuaConfMapper.xml | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/mapper/mapping/OpcuaConfMapper.xml b/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/mapper/mapping/OpcuaConfMapper.xml index 7643377..91c640b 100644 --- a/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/mapper/mapping/OpcuaConfMapper.xml +++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/mapper/mapping/OpcuaConfMapper.xml @@ -26,24 +26,39 @@ select <include refid="Base_Column_List"/> from sys_opcua_conf where 1 = 1 + <if test="paramCondition.node != null and paramCondition.node != ''"> + and node like CONCAT('%',#{paramCondition.node},'%') + </if> + <if test="paramCondition.subscribe != null and paramCondition.subscribe != ''"> + and subscribe like CONCAT('%',#{paramCondition.subscribe},'%') + </if> </select> <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam"> select <include refid="Base_Column_List"/> from sys_opcua_conf where 1 = 1 + <if test="paramCondition.node != null and paramCondition.node != ''"> + and node like CONCAT('%',#{paramCondition.node},'%') + </if> </select> <select id="customPageList" resultType="cn.stylefeng.guns.opcua.model.result.OpcuaConfResult" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam"> select <include refid="Base_Column_List"/> from sys_opcua_conf where 1 = 1 + <if test="paramCondition.node != null and paramCondition.node != ''"> + and node like CONCAT('%',#{paramCondition.node},'%') + </if> </select> <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam"> select <include refid="Base_Column_List"/> from sys_opcua_conf where 1 = 1 + <if test="paramCondition.node != null and paramCondition.node != ''"> + and node like CONCAT('%',#{paramCondition.node},'%') + </if> </select> </mapper> -- Gitblit v1.9.3