|
@@ -40,17 +40,17 @@
|
|
</update>
|
|
</update>
|
|
<update id="updateShopUserByApply">
|
|
<update id="updateShopUserByApply">
|
|
update user set userName = #{userName}, name = #{name}, manufacturerStatus = #{manufacturerStatus}
|
|
update user set userName = #{userName}, name = #{name}, manufacturerStatus = #{manufacturerStatus}
|
|
- <if test="email != null">
|
|
|
|
|
|
+ <if test="email != null and email != ''">
|
|
, email = #{email}
|
|
, email = #{email}
|
|
</if>
|
|
</if>
|
|
where userID = #{userId}
|
|
where userID = #{userId}
|
|
</update>
|
|
</update>
|
|
<update id="updateClubByUpgrade">
|
|
<update id="updateClubByUpgrade">
|
|
update club set userID = #{userId}, name = #{name}, sname = #{shortName}, contractEmail1 = #{contractEmail},
|
|
update club set userID = #{userId}, name = #{name}, sname = #{shortName}, contractEmail1 = #{contractEmail},
|
|
- <if test="contractPhone != null">
|
|
|
|
|
|
+ <if test="contractPhone != null and contractPhone != ''">
|
|
contractPhone = #{contractPhone},
|
|
contractPhone = #{contractPhone},
|
|
</if>
|
|
</if>
|
|
- <if test="linkMan != null">
|
|
|
|
|
|
+ <if test="linkMan != null and linkMan != ''">
|
|
linkMan = #{linkMan},
|
|
linkMan = #{linkMan},
|
|
</if>
|
|
</if>
|
|
provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId}, address = #{address},
|
|
provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId}, address = #{address},
|
|
@@ -61,13 +61,13 @@
|
|
<if test="firstClubType == 1">
|
|
<if test="firstClubType == 1">
|
|
secondClubType = #{secondClubType}, department = #{department}, medicalPracticeLicenseImg = #{medicalPracticeLicense},
|
|
secondClubType = #{secondClubType}, department = #{department}, medicalPracticeLicenseImg = #{medicalPracticeLicense},
|
|
</if>
|
|
</if>
|
|
- <if test="mainProduct != null">
|
|
|
|
|
|
+ <if test="mainProduct != null and mainProduct != ''">
|
|
mainpro = #{mainProduct},
|
|
mainpro = #{mainProduct},
|
|
</if>
|
|
</if>
|
|
- <if test="fax != null">
|
|
|
|
|
|
+ <if test="fax != null and fax != ''">
|
|
fax = #{fax},
|
|
fax = #{fax},
|
|
</if>
|
|
</if>
|
|
- <if test="profile != null">
|
|
|
|
|
|
+ <if test="profile != null and profile != ''">
|
|
info = #{profile},
|
|
info = #{profile},
|
|
</if>
|
|
</if>
|
|
status = #{status}
|
|
status = #{status}
|
|
@@ -75,40 +75,31 @@
|
|
</update>
|
|
</update>
|
|
<update id="updateShopInfoByApply">
|
|
<update id="updateShopInfoByApply">
|
|
update shop set userID = #{userId}, name = #{name},
|
|
update shop set userID = #{userId}, name = #{name},
|
|
- <if test="shortName != null">
|
|
|
|
|
|
+ <if test="shortName != null and shortName != ''">
|
|
sname = #{shortName},
|
|
sname = #{shortName},
|
|
</if>
|
|
</if>
|
|
- <if test="email != null">
|
|
|
|
|
|
+ <if test="email != null and email != ''">
|
|
contractEmail1 = #{email},
|
|
contractEmail1 = #{email},
|
|
</if>
|
|
</if>
|
|
- <if test="linkMan != null">
|
|
|
|
|
|
+ <if test="linkMan != null and linkMan != ''">
|
|
linkMan = #{linkMan},
|
|
linkMan = #{linkMan},
|
|
</if>
|
|
</if>
|
|
- <if test="provinceId != null">
|
|
|
|
- provinceID = #{provinceId},
|
|
|
|
|
|
+ <if test="townId != null and townId != ''">
|
|
|
|
+ provinceID = #{provinceId},cityID = #{cityId},townID = #{townId},address = #{address},
|
|
</if>
|
|
</if>
|
|
- <if test="cityId != null">
|
|
|
|
- cityID = #{cityId},
|
|
|
|
- </if>
|
|
|
|
- <if test="townId != null">
|
|
|
|
- townID = #{townId},
|
|
|
|
- </if>
|
|
|
|
- <if test="address != null">
|
|
|
|
- address = #{address},
|
|
|
|
- </if>
|
|
|
|
- <if test="socialCreditCode != null">
|
|
|
|
|
|
+ <if test="socialCreditCode != null and socialCreditCode != ''">
|
|
socialCreditCode = #{socialCreditCode},
|
|
socialCreditCode = #{socialCreditCode},
|
|
</if>
|
|
</if>
|
|
- <if test="businessLicense != null">
|
|
|
|
|
|
+ <if test="businessLicense != null and businessLicense != ''">
|
|
businessLicenseImage = #{businessLicense},
|
|
businessLicenseImage = #{businessLicense},
|
|
</if>
|
|
</if>
|
|
- <if test="firstShopType != null">
|
|
|
|
|
|
+ <if test="firstShopType != null and firstShopType != ''">
|
|
firstShopType = #{firstShopType},
|
|
firstShopType = #{firstShopType},
|
|
</if>
|
|
</if>
|
|
- <if test="secondShopType != null">
|
|
|
|
|
|
+ <if test="secondShopType != null and secondShopType != ''">
|
|
secondShopType = #{secondShopType},
|
|
secondShopType = #{secondShopType},
|
|
</if>
|
|
</if>
|
|
- <if test="mainProduct != null">
|
|
|
|
|
|
+ <if test="mainProduct != null and mainProduct != ''">
|
|
mainpro = #{mainProduct},
|
|
mainpro = #{mainProduct},
|
|
</if>
|
|
</if>
|
|
status = #{status}
|
|
status = #{status}
|