|
|
@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="name" column="name" />
|
|
|
<result property="phone" column="phone" />
|
|
|
<result property="address" column="address" />
|
|
|
+ <result property="addressDetail" column="address_detail" />
|
|
|
<result property="longitude" column="longitude" />
|
|
|
<result property="latitude" column="latitude" />
|
|
|
<result property="country" column="country" />
|
|
|
@@ -19,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectInfoAddressVo">
|
|
|
- select id, user_id, name, phone, address, longitude, latitude, country, province, city, area from info_address
|
|
|
+ select id, user_id, name, phone, address, address_detail, longitude, latitude, country, province, city, area from info_address
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectInfoAddressList" parameterType="InfoAddress" resultMap="InfoAddressResult">
|
|
|
@@ -48,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
<if test="phone != null and phone != ''">phone,</if>
|
|
|
<if test="address != null and address != ''">address,</if>
|
|
|
+ <if test="addressDetail != null and addressDetail != ''">address_detail,</if>
|
|
|
<if test="longitude != null">longitude,</if>
|
|
|
<if test="latitude != null">latitude,</if>
|
|
|
<if test="country != null">country,</if>
|
|
|
@@ -60,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
<if test="phone != null and phone != ''">#{phone},</if>
|
|
|
<if test="address != null and address != ''">#{address},</if>
|
|
|
+ <if test="addressDetail != null and addressDetail != ''">#{addressDetail},</if>
|
|
|
<if test="longitude != null">#{longitude},</if>
|
|
|
<if test="latitude != null">#{latitude},</if>
|
|
|
<if test="country != null">#{country},</if>
|
|
|
@@ -76,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null and name != ''">name = #{name},</if>
|
|
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
|
<if test="address != null and address != ''">address = #{address},</if>
|
|
|
+ <if test="addressDetail != null and addressDetail != ''">address_detail = #{addressDetail},</if>
|
|
|
<if test="longitude != null">longitude = #{longitude},</if>
|
|
|
<if test="latitude != null">latitude = #{latitude},</if>
|
|
|
<if test="country != null">country = #{country},</if>
|