AppraiseAddressMapper.xml 1003 Bytes
<?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.yohoufo.dal.order.AppraiseAddressMapper">
    <resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.AppraiseAddress">
        <id column="id" jdbcType="INTEGER" property="id" />
        <result column="type" jdbcType="INTEGER" property="type" />
        <result column="area_code" jdbcType="INTEGER" property="areaCode" />
        <result column="address_name" jdbcType="VARCHAR" property="addressName" />
        <result column="mobile" jdbcType="VARCHAR" property="mobile" />
        <result column="address" jdbcType="VARCHAR" property="address" />
    </resultMap>
    <sql id="Base_Column_List">
        id, type, area_code, address_name, mobile, address
    </sql>

    <select id="selectAll" resultMap="BaseResultMap">
        select <include refid="Base_Column_List" /> from appraise_address
    </select>
</mapper>