From 4f58ba24b9a7e24dc38aa8eb9ca0b92c83e161ac Mon Sep 17 00:00:00 2001 From: yantian yue <306727702@qq.com> Date: 星期五, 20 十月 2023 15:48:14 +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