This commit is contained in:
clunt 2022-05-17 11:28:19 +08:00
parent 7bcb3e8c8e
commit 5ac9576d43
1 changed files with 15 additions and 15 deletions

View File

@ -72,16 +72,16 @@
<if test="remark != null and remark != ''">remark,</if>
create_time
)values(
<if test="customerId != null and customerId != 0">${customerId},</if>
<if test="name != null and name != ''">${name},</if>
<if test="phone != null and phone != ''">${phone},</if>
<if test="provinceId != null and provinceId != 0">${provinceId},</if>
<if test="cityId != null and cityId != 0">${cityId},</if>
<if test="countryId != null and countryId != 0">${countryId},</if>
<if test="status != null">${status},</if>
<if test="isDefault != null and isDefault != 0">${isDefault},</if>
<if test="createBy != null and createBy != ''">${createBy},</if>
<if test="remark != null and remark != ''">${remark},</if>
<if test="customerId != null and customerId != 0">#{customerId},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="phone != null and phone != ''">#{phone},</if>
<if test="provinceId != null and provinceId != 0">#{provinceId},</if>
<if test="cityId != null and cityId != 0">#{cityId},</if>
<if test="countryId != null and countryId != 0">#{countryId},</if>
<if test="status != null">#{status},</if>
<if test="isDefault != null and isDefault != 0">#{isDefault},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>
sysdate()
)
</insert>
@ -89,11 +89,11 @@
<update id="updateCustomerAddress" parameterType="com.ghy.customer.domain.CustomerAddress">
update costomer_address
<set>
<if test="name != null and name != ''">name = ${name},</if>
<if test="phone != null and phone != ''">phone = ${phone},</if>
<if test="provinceId != null and provinceId != 0">province_id = ${provinceId},</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="name != null and name != ''">name = #{name},</if>
<if test="phone != null and phone != ''">phone = #{phone},</if>
<if test="provinceId != null and provinceId != 0">province_id = #{provinceId},</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="address != null and address != ''">address = #{address},</if>
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
<if test="status != null and status != ''">status = #{status},</if>