补充服务地址的查询字段
This commit is contained in:
parent
1a22ec11b6
commit
cfcc35df91
|
|
@ -22,10 +22,10 @@
|
||||||
|
|
||||||
<sql id="selectCustomerAddress">
|
<sql id="selectCustomerAddress">
|
||||||
SELECT customer_address_id, customer_id, name, phone, province_id, city_id, country_id, status,
|
SELECT customer_address_id, customer_id, name, phone, province_id, city_id, country_id, status,
|
||||||
address, create_by, create_time, remark
|
address, create_by, create_time, remark, is_default
|
||||||
FROM customer_address
|
FROM customer_address
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getCustomerAddressList" resultMap="CustomerAddressResult">
|
<select id="getCustomerAddressList" resultMap="CustomerAddressResult">
|
||||||
<include refid="selectCustomerAddress" />
|
<include refid="selectCustomerAddress" />
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
<if test="countryId != null and countryId != 0">country_id,</if>
|
<if test="countryId != null and countryId != 0">country_id,</if>
|
||||||
<if test="status != null and status != ''">status,</if>
|
<if test="status != null and status != ''">status,</if>
|
||||||
<if test="address != null and address != ''">address,</if>
|
<if test="address != null and address != ''">address,</if>
|
||||||
<if test="isDefault != null and isDefault != 0">is_default,</if>
|
<if test="isDefault != null">is_default,</if>
|
||||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
<if test="remark != null and remark != ''">remark,</if>
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
create_time
|
create_time
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateCustomerAddress" parameterType="com.ghy.customer.domain.CustomerAddress">
|
<update id="updateCustomerAddress" parameterType="com.ghy.customer.domain.CustomerAddress">
|
||||||
update costomer_address
|
update customer_address
|
||||||
<set>
|
<set>
|
||||||
<if test="name != null and name != ''">name = #{name},</if>
|
<if test="name != null and name != ''">name = #{name},</if>
|
||||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
<if test="cityId != null and cityId != 0">city_id = #{cityId},</if>
|
<if test="cityId != null and cityId != 0">city_id = #{cityId},</if>
|
||||||
<if test="countryId != null and countryId != 0">country_id = #{countryId},</if>
|
<if test="countryId != null and countryId != 0">country_id = #{countryId},</if>
|
||||||
<if test="address != null and address != ''">address = #{address},</if>
|
<if test="address != null and address != ''">address = #{address},</if>
|
||||||
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
|
<if test="isDefault != null">is_default = #{isDefault},</if>
|
||||||
<if test="status != null and status != ''">status = #{status},</if>
|
<if test="status != null and status != ''">status = #{status},</if>
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
|
@ -107,4 +107,4 @@
|
||||||
where customer_address_id = #{customerAddressId}
|
where customer_address_id = #{customerAddressId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue