|
@@ -7,18 +7,37 @@
|
|
|
where userID = #{userId}
|
|
|
</update>
|
|
|
<update id="updateClubByUpdateInfo">
|
|
|
- update club set name = #{name}, sname = #{shortName}, contractEmail1 = #{contractEmail},
|
|
|
+ update club set
|
|
|
+ <if test="name != null">
|
|
|
+ name = #{name},
|
|
|
+ </if>
|
|
|
+ <if test="shortName != null">
|
|
|
+ sname = #{shortName},
|
|
|
+ </if>
|
|
|
+ <if test="contractEmail != null">
|
|
|
+ contractEmail1 = #{contractEmail},
|
|
|
+ </if>
|
|
|
<if test="contractPhone != null">
|
|
|
contractPhone = #{contractPhone},
|
|
|
</if>
|
|
|
<if test="linkMan != null">
|
|
|
linkMan = #{linkMan},
|
|
|
</if>
|
|
|
- provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId}, address = #{address},
|
|
|
+ <if test="provinceId != null">
|
|
|
+ provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId}, address = #{address},
|
|
|
+ </if>
|
|
|
<if test="shopPhoto != null and shopPhoto != 'null' and shopPhoto != ''">
|
|
|
headpic = #{shopPhoto},
|
|
|
</if>
|
|
|
- businessLicenseImage = #{businessLicense}, socialCreditCode = #{socialCreditCode}, firstClubType = #{firstClubType},
|
|
|
+ <if test="businessLicense != null">
|
|
|
+ businessLicenseImage = #{businessLicense},
|
|
|
+ </if>
|
|
|
+ <if test="socialCreditCode != null">
|
|
|
+ socialCreditCode = #{socialCreditCode},
|
|
|
+ </if>
|
|
|
+ <if test="firstClubType != null">
|
|
|
+ firstClubType = #{firstClubType},
|
|
|
+ </if>
|
|
|
<if test="firstClubType == 1">
|
|
|
secondClubType = #{secondClubType}, department = #{department}, medicalPracticeLicenseImg = #{medicalPracticeLicense},
|
|
|
</if>
|