yantian yue
2023-10-17 487b2f2a353b89ab46cd9b784226b600b7b915b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.stylefeng.guns.opcua.mapper.OpcuaConfMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="cn.stylefeng.guns.opcua.entity.OpcuaConf">
        <id column="id" property="id" />
        <result column="module" property="module" />
        <result column="node" property="node" />
        <result column="length" property="length" />
        <result column="sys_types" property="sys_types" />
        <result column="functionality" property="functionality" />
        <result column="subscribe" property="subscribe" />
        <result column="r_module" property="rModule" />
        <result column="r_function" property="rFunction" />
        <result column="remarks" property="remarks" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        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"
    </sql>
 
 
    <select id="customList" 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
    </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
    </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
    </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
    </select>
 
</mapper>