<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">

<sqlMap namespace="com.house365.beans.entity.AppUrl">
    <typeAlias alias="appUrlEntity" type="com.house365.beans.entity.AppUrl" />

    <resultMap id="appUrl" class="com.house365.beans.entity.AppUrl">
        <result property="id" column="id" />
        <result property="url" column="url" />
        <result property="name" column="name" />
        <result property="icon" column="icon" />
        <result property="type" column="type" />
    </resultMap>



    <!-- 为分页查询符合条件的记录数 -->
    <select id="getListByType" resultMap="appUrl">
        SELECT id , name, url,icon,type
        from app_url
        where type = #type#
    </select>


</sqlMap>