|
@@ -92,11 +92,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyId != null ">company_id,</if>
|
|
|
<if test="companyName != null and companyName != ''">company_name,</if>
|
|
|
+ <if test="companyNameEn != null and companyNameEn != ''">company_name_en,</if>
|
|
|
<if test="companyType != null and companyType != '' ">company_type,</if>
|
|
|
<if test="detailAddress != null and detailAddress != ''">detail_address,</if>
|
|
|
+ <if test="detailAddressEn != null and detailAddressEn != ''">detail_address_en,</if>
|
|
|
<if test="longitude != null and longitude != ''">longitude,</if>
|
|
|
<if test="latitude != null and latitude != ''">latitude,</if>
|
|
|
<if test="legalPerson != null and legalPerson != ''">legal_person,</if>
|
|
|
+ <if test="legalPersonEn != null and legalPersonEn != ''">legal_person_en,</if>
|
|
|
<if test="contactNumber != null and contactNumber != ''">contact_number,</if>
|
|
|
<if test="establishDate != null ">establish_date,</if>
|
|
|
<if test="unifiedSocialCreditCode != null and unifiedSocialCreditCode != ''">unified_social_credit_code,</if>
|
|
@@ -104,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="defaultImgUrl != null and defaultImgUrl != ''">default_img_url,</if>
|
|
|
<if test="propagandaImgUrl != null and propagandaImgUrl != ''">propaganda_img_url,</if>
|
|
|
<if test="companyIntroduce != null and companyIntroduce != ''">company_introduce,</if>
|
|
|
+ <if test="companyIntroduceEn != null and companyIntroduceEn != ''">company_introduce_en,</if>
|
|
|
<if test="versionNum != null ">version_num,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="createTime != null ">create_time,</if>
|
|
@@ -115,15 +119,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reason != null and reason != ''"> reason,</if>
|
|
|
<if test="status != null ">status ,</if>
|
|
|
<if test="primaryBusiness != null and primaryBusiness != ''">primary_business,</if>
|
|
|
+ <if test="primaryBusinessEn != null and primaryBusinessEn != ''">primary_business_en,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyId != null ">#{companyId},</if>
|
|
|
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
|
|
+ <if test="companyNameEn != null and companyNameEn != ''">#{companyNameEn},</if>
|
|
|
<if test="companyType != null and companyType != ''">#{companyType},</if>
|
|
|
<if test="detailAddress != null and detailAddress != ''">#{detailAddress},</if>
|
|
|
+ <if test="detailAddressEn != null and detailAddressEn != ''">#{detailAddressEn},</if>
|
|
|
<if test="longitude != null and longitude != ''">#{longitude},</if>
|
|
|
<if test="latitude != null and latitude != ''">#{latitude},</if>
|
|
|
<if test="legalPerson != null and legalPerson != ''">#{legalPerson},</if>
|
|
|
+ <if test="legalPersonEn != null and legalPersonEn != ''">#{legalPersonEn},</if>
|
|
|
<if test="contactNumber != null and contactNumber != ''">#{contactNumber},</if>
|
|
|
<if test="establishDate != null ">#{establishDate},</if>
|
|
|
<if test="unifiedSocialCreditCode != null and unifiedSocialCreditCode != ''">#{unifiedSocialCreditCode},</if>
|
|
@@ -131,6 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="defaultImgUrl != null and defaultImgUrl != ''">#{defaultImgUrl},</if>
|
|
|
<if test="propagandaImgUrl != null and propagandaImgUrl != ''">#{propagandaImgUrl},</if>
|
|
|
<if test="companyIntroduce != null and companyIntroduce != ''">#{companyIntroduce},</if>
|
|
|
+ <if test="companyIntroduceEn != null and companyIntroduceEn != ''">#{companyIntroduceEn},</if>
|
|
|
<if test="versionNum != null ">#{versionNum},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="createTime != null ">#{createTime},</if>
|
|
@@ -142,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reason != null and reason != ''"> #{reason},</if>
|
|
|
<if test="status != null "> #{status},</if>
|
|
|
<if test="primaryBusiness != null and primaryBusiness != ''">#{primaryBusiness},</if>
|
|
|
+ <if test="primaryBusinessEn != null and primaryBusinessEn != ''">#{primaryBusinessEn},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -150,11 +160,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="companyId != null ">company_id = #{companyId},</if>
|
|
|
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
|
|
+ <if test="companyNameEn != null and companyNameEn != ''">company_name_en = #{companyNameEn},</if>
|
|
|
<if test="companyType != null and companyType != ''">company_type = #{companyType},</if>
|
|
|
<if test="detailAddress != null and detailAddress != ''">detail_address = #{detailAddress},</if>
|
|
|
+ <if test="detailAddressEn != null and detailAddressEn != ''">detail_address_en = #{detailAddressEn},</if>
|
|
|
<if test="longitude != null and longitude != ''">longitude = #{longitude},</if>
|
|
|
<if test="latitude != null and latitude != ''">latitude = #{latitude},</if>
|
|
|
<if test="legalPerson != null and legalPerson != ''">legal_person = #{legalPerson},</if>
|
|
|
+ <if test="legalPersonEn != null and legalPersonEn != ''">legal_person_en = #{legalPersonEn},</if>
|
|
|
<if test="contactNumber != null and contactNumber != ''">contact_number = #{contactNumber},</if>
|
|
|
<if test="establishDate != null ">establish_date = #{establishDate},</if>
|
|
|
<if test="unifiedSocialCreditCode != null and unifiedSocialCreditCode != ''">unified_social_credit_code = #{unifiedSocialCreditCode},</if>
|
|
@@ -162,6 +175,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="defaultImgUrl != null and defaultImgUrl != ''">default_img_url = #{defaultImgUrl},</if>
|
|
|
<if test="propagandaImgUrl != null and propagandaImgUrl != ''">propaganda_img_url = #{propagandaImgUrl},</if>
|
|
|
<if test="companyIntroduce != null and companyIntroduce != ''">company_introduce = #{companyIntroduce},</if>
|
|
|
+ <if test="companyIntroduceEn != null and companyIntroduceEn != ''">company_introduce_en = #{companyIntroduceEn},</if>
|
|
|
<if test="versionNum != null ">version_num = #{versionNum},</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
|
@@ -173,6 +187,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="reason != null and reason != ''"> reason = #{reason},</if>
|
|
|
<if test="status != null "> status = #{status},</if>
|
|
|
<if test="primaryBusiness != null and primaryBusiness != ''">primary_business=#{primaryBusiness},</if>
|
|
|
+ <if test="primaryBusinessEn != null and primaryBusinessEn != ''">primary_business_en=#{primaryBusinessEn},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|