AppraiseAddressMapper.xml 1.06 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.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" />
        <result column="ship_fee" javaType="DECIMAL" property="shipFee" />
    </resultMap>
    <sql id="Base_Column_List">
        id, `type`, area_code,ship_fee, address_name, mobile, address
    </sql>

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