|
@@ -61,11 +61,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
create_time,
|
|
|
<if test="status != null and status != ''">status,</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="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>
|
|
@@ -73,22 +75,26 @@ 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 and versionNum != ''">version_num,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
<if test="primaryBusiness != null and primaryBusiness != ''">primary_business,</if>
|
|
|
+ <if test="primaryBusinessEn != null and primaryBusinessEn != ''">primary_business_en,</if>
|
|
|
<if test="sort != null and sort != ''">sort,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
now(),
|
|
|
<if test="status != null and status != ''">#{status},</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="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>
|
|
@@ -96,11 +102,13 @@ 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 and versionNum != ''">#{versionNum},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="primaryBusiness != null and primaryBusiness != ''">#{primaryBusiness},</if>
|
|
|
+ <if test="primaryBusinessEn != null and primaryBusinessEn != ''">#{primaryBusinessEn},</if>
|
|
|
<if test="sort != null and sort != ''">#{sort},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -112,11 +120,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
version_num=version_num+1,
|
|
|
<if test="status != null">status = #{status},</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="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>
|
|
@@ -124,10 +134,12 @@ 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="createBy != null and createBy != ''">create_by= #{createBy},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by= #{updateBy},</if>
|
|
|
<if test="remark != null and remark != ''">remark= #{remark},</if>
|
|
|
<if test="primaryBusiness != null and primaryBusiness != ''">primary_business=#{primaryBusiness},</if>
|
|
|
+ <if test="primaryBusinessEn != null and primaryBusinessEn != ''">primary_business_en=#{primaryBusinessEn},</if>
|
|
|
<if test="sort != null and sort != ''">sort=#{sort},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|