SysUserAppMapper.xml 1.24 KB
<?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="com.hotent.sys.persistence.dao.SysUserAppDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.sys.persistence.model.SysUserApp">
        <id column="ID_" property="id" />
    <result column="TYPE_" property="type" />
    <result column="APP_ALIAS_" property="appAlias" />
    <result column="ACCOUNT_" property="account" />
    <result column="COLUMN_ALIAS_" property="columnAlias" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_, TYPE_, APP_ALIAS_, ACCOUNT_,COLUMN_ALIAS_
    </sql>

	<select id="selectPage" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			portal_sys_user_app
		${ew.customSqlSegment}
	</select>
	
	<select id="selectList" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			portal_sys_user_app
		${ew.customSqlSegment}
	</select>
	
	<select id="selectById" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			portal_sys_user_app
		where 
		    ID_ = #{id}
	</select>
</mapper>