yantian yue
2023-10-18 465d5c4666546e7e54f0e3c34c7bcce5830aaa6a
提交 | 用户 | 时间
487b2f 1 <?xml version="1.0" encoding="UTF-8"?>
YY 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="cn.stylefeng.guns.opcua.mapper.OpcuaConfMapper">
4
5     <!-- 通用查询映射结果 -->
6     <resultMap id="BaseResultMap" type="cn.stylefeng.guns.opcua.entity.OpcuaConf">
7         <id column="id" property="id" />
8         <result column="module" property="module" />
9         <result column="node" property="node" />
10         <result column="length" property="length" />
11         <result column="sys_types" property="sys_types" />
12         <result column="functionality" property="functionality" />
13         <result column="subscribe" property="subscribe" />
14         <result column="r_module" property="rModule" />
15         <result column="r_function" property="rFunction" />
16         <result column="remarks" property="remarks" />
17     </resultMap>
18
19     <!-- 通用查询结果列 -->
20     <sql id="Base_Column_List">
21         id AS "id", module AS "module", node AS "node", length AS "length",sys_types AS "sys_types",functionality AS "functionality", subscribe AS "subscribe", r_module AS "rModule", r_function AS "rFunction", remarks AS "remarks"
22     </sql>
23
24
25     <select id="customList" resultType="cn.stylefeng.guns.opcua.model.result.OpcuaConfResult" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam">
26         select
27         <include refid="Base_Column_List"/>
28         from sys_opcua_conf where 1 = 1
465d5c 29         <if test="paramCondition.node != null and paramCondition.node != ''">
YY 30             and node like CONCAT('%',#{paramCondition.node},'%')
31         </if>
487b2f 32     </select>
YY 33
34     <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam">
35         select
36         <include refid="Base_Column_List"/>
37         from sys_opcua_conf where 1 = 1
465d5c 38         <if test="paramCondition.node != null and paramCondition.node != ''">
YY 39             and node like CONCAT('%',#{paramCondition.node},'%')
40         </if>
487b2f 41     </select>
YY 42
43     <select id="customPageList" resultType="cn.stylefeng.guns.opcua.model.result.OpcuaConfResult" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam">
44         select
45         <include refid="Base_Column_List"/>
46         from sys_opcua_conf where 1 = 1
465d5c 47         <if test="paramCondition.node != null and paramCondition.node != ''">
YY 48             and node like CONCAT('%',#{paramCondition.node},'%')
49         </if>
487b2f 50     </select>
YY 51
52     <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.opcua.model.params.OpcuaConfParam">
53         select
54         <include refid="Base_Column_List"/>
55         from sys_opcua_conf where 1 = 1
465d5c 56         <if test="paramCondition.node != null and paramCondition.node != ''">
YY 57             and node like CONCAT('%',#{paramCondition.node},'%')
58         </if>
487b2f 59     </select>
YY 60
61 </mapper>