<?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>
|