<?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.portal.persistence.dao.PortalUrlPermissionDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.portal.model.PortalUrlPermission">
    <result column="ID" property="id" />
    <result column="SYS_ID_" property="sysId" />
    <result column="MODULE_" property="module" />
    <result column="FUNCTION_" property="function" />
    <result column="AUTH_URL_" property="authUrl" />
    <result column="CREATE_TIME_" property="createTime" />
    <result column="CREATE_BY_" property="createBy" />
    <result column="CREATE_ORG_ID_" property="createOrgId" />
    <result column="DESCRIPTION_" property="description" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID, SYS_ID_, MODULE_, FUNCTION_, AUTH_URL_, CREATE_TIME_, CREATE_BY_, CREATE_ORG_ID_, TENANT_ID_, DESCRIPTION_
    </sql>

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