From 465d5c4666546e7e54f0e3c34c7bcce5830aaa6a Mon Sep 17 00:00:00 2001 From: yantian yue <306727702@qq.com> Date: 星期三, 18 十月 2023 09:20:37 +0800 Subject: [PATCH] OPCUA增加查询条件 --- guns-vip-main/src/main/java/cn/stylefeng/guns/opcua/mapper/mapping/OpcuaConfMapper.xml | 12 ++++++++++++ 1 files changed, 12 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..e6ac109 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,36 @@ 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="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