<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tanpu.fund.mapper.generator.CompanyInfoMapper">
  <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    <!--@Table company_info-->
    <id column="id" jdbcType="VARCHAR" property="id" />
    <result column="p_company_id" jdbcType="VARCHAR" property="pCompanyId" />
    <result column="company_name" jdbcType="VARCHAR" property="companyName" />
    <result column="company_short_name" jdbcType="VARCHAR" property="companyShortName" />
    <result column="company_english_name" jdbcType="VARCHAR" property="companyEnglishName" />
    <result column="company_type" jdbcType="INTEGER" property="companyType" />
    <result column="organization_number" jdbcType="VARCHAR" property="organizationNumber" />
    <result column="establish_date" jdbcType="DATE" property="establishDate" />
    <result column="domicile_id" jdbcType="INTEGER" property="domicileId" />
    <result column="company_address" jdbcType="VARCHAR" property="companyAddress" />
    <result column="company_address2" jdbcType="VARCHAR" property="companyAddress2" />
    <result column="city" jdbcType="VARCHAR" property="city" />
    <result column="province" jdbcType="VARCHAR" property="province" />
    <result column="country" jdbcType="VARCHAR" property="country" />
    <result column="reg_city" jdbcType="VARCHAR" property="regCity" />
    <result column="reg_province" jdbcType="VARCHAR" property="regProvince" />
    <result column="reg_country" jdbcType="VARCHAR" property="regCountry" />
    <result column="contact_phone" jdbcType="VARCHAR" property="contactPhone" />
    <result column="post_code" jdbcType="VARCHAR" property="postCode" />
    <result column="fax" jdbcType="VARCHAR" property="fax" />
    <result column="email" jdbcType="VARCHAR" property="email" />
    <result column="website" jdbcType="VARCHAR" property="website" />
    <result column="registered_capital" jdbcType="DECIMAL" property="registeredCapital" />
    <result column="offshore_fund" jdbcType="INTEGER" property="offshoreFund" />
    <result column="company_status" jdbcType="INTEGER" property="companyStatus" />
    <result column="base_currency_crc" jdbcType="INTEGER" property="baseCurrencyCrc" />
    <result column="register_number" jdbcType="VARCHAR" property="registerNumber" />
    <result column="register_status" jdbcType="INTEGER" property="registerStatus" />
    <result column="register_date" jdbcType="DATE" property="registerDate" />
    <result column="register_number_address" jdbcType="VARCHAR" property="registerNumberAddress" />
    <result column="is_member" jdbcType="TINYINT" property="isMember" />
    <result column="join_date" jdbcType="DATE" property="joinDate" />
    <result column="member_type" jdbcType="INTEGER" property="memberType" />
    <result column="fund_category_ori" jdbcType="VARCHAR" property="fundCategoryOri" />
    <result column="business_type" jdbcType="VARCHAR" property="businessType" />
    <result column="nature_business_type" jdbcType="INTEGER" property="natureBusinessType" />
    <result column="capital_paid_rate" jdbcType="DECIMAL" property="capitalPaidRate" />
    <result column="logo" jdbcType="VARCHAR" property="logo" />
    <result column="isvisible" jdbcType="INTEGER" property="isvisible" />
    <result column="paid_capital" jdbcType="DECIMAL" property="paidCapital" />
    <result column="company_asset_size" jdbcType="INTEGER" property="companyAssetSize" />
    <result column="legal_representative" jdbcType="VARCHAR" property="legalRepresentative" />
    <result column="is_qualify" jdbcType="INTEGER" property="isQualify" />
    <result column="get_qualify_method" jdbcType="VARCHAR" property="getQualifyMethod" />
    <result column="employee_cnts" jdbcType="INTEGER" property="employeeCnts" />
    <result column="integrity_info" jdbcType="VARCHAR" property="integrityInfo" />
    <result column="special_tips" jdbcType="VARCHAR" property="specialTips" />
    <result column="amac_link" jdbcType="VARCHAR" property="amacLink" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
    <result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    <!--@Table company_info-->
    <result column="company_profile" jdbcType="LONGVARCHAR" property="companyProfile" />
    <result column="philosopy" jdbcType="LONGVARCHAR" property="philosopy" />
    <result column="representative_experience" jdbcType="LONGVARCHAR" property="representativeExperience" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--@mbg.generated-->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--@mbg.generated-->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--@mbg.generated-->
    id, p_company_id, company_name, company_short_name, company_english_name, company_type, 
    organization_number, establish_date, domicile_id, company_address, company_address2, 
    city, province, country, reg_city, reg_province, reg_country, contact_phone, post_code, 
    fax, email, website, registered_capital, offshore_fund, company_status, base_currency_crc, 
    register_number, register_status, register_date, register_number_address, is_member, 
    join_date, member_type, fund_category_ori, business_type, nature_business_type, capital_paid_rate, 
    logo, isvisible, paid_capital, company_asset_size, legal_representative, is_qualify, 
    get_qualify_method, employee_cnts, integrity_info, special_tips, amac_link, create_time, 
    create_by, update_time, update_by, delete_tag
  </sql>
  <sql id="Blob_Column_List">
    <!--@mbg.generated-->
    company_profile, philosopy, representative_experience
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.CompanyInfoExample" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from company_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.CompanyInfoExample" resultMap="BaseResultMap">
    <!--@mbg.generated-->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from company_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
    <!--@mbg.generated-->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from company_info
    where id = #{id,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--@mbg.generated-->
    delete from company_info
    where id = #{id,jdbcType=VARCHAR}
  </delete>
  <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.CompanyInfoExample">
    <!--@mbg.generated-->
    delete from company_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    insert into company_info (id, p_company_id, company_name, 
      company_short_name, company_english_name, company_type, 
      organization_number, establish_date, domicile_id, 
      company_address, company_address2, city, 
      province, country, reg_city, 
      reg_province, reg_country, contact_phone, 
      post_code, fax, email, 
      website, registered_capital, offshore_fund, 
      company_status, base_currency_crc, register_number, 
      register_status, register_date, register_number_address, 
      is_member, join_date, member_type, 
      fund_category_ori, business_type, nature_business_type, 
      capital_paid_rate, logo, isvisible, 
      paid_capital, company_asset_size, legal_representative, 
      is_qualify, get_qualify_method, employee_cnts, 
      integrity_info, special_tips, amac_link, 
      create_time, create_by, update_time, 
      update_by, delete_tag, company_profile, 
      philosopy, representative_experience
      )
    values (#{id,jdbcType=VARCHAR}, #{pCompanyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
      #{companyShortName,jdbcType=VARCHAR}, #{companyEnglishName,jdbcType=VARCHAR}, #{companyType,jdbcType=INTEGER}, 
      #{organizationNumber,jdbcType=VARCHAR}, #{establishDate,jdbcType=DATE}, #{domicileId,jdbcType=INTEGER}, 
      #{companyAddress,jdbcType=VARCHAR}, #{companyAddress2,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, 
      #{province,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR}, #{regCity,jdbcType=VARCHAR}, 
      #{regProvince,jdbcType=VARCHAR}, #{regCountry,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, 
      #{postCode,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, 
      #{website,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL}, #{offshoreFund,jdbcType=INTEGER}, 
      #{companyStatus,jdbcType=INTEGER}, #{baseCurrencyCrc,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR}, 
      #{registerStatus,jdbcType=INTEGER}, #{registerDate,jdbcType=DATE}, #{registerNumberAddress,jdbcType=VARCHAR}, 
      #{isMember,jdbcType=TINYINT}, #{joinDate,jdbcType=DATE}, #{memberType,jdbcType=INTEGER}, 
      #{fundCategoryOri,jdbcType=VARCHAR}, #{businessType,jdbcType=VARCHAR}, #{natureBusinessType,jdbcType=INTEGER}, 
      #{capitalPaidRate,jdbcType=DECIMAL}, #{logo,jdbcType=VARCHAR}, #{isvisible,jdbcType=INTEGER}, 
      #{paidCapital,jdbcType=DECIMAL}, #{companyAssetSize,jdbcType=INTEGER}, #{legalRepresentative,jdbcType=VARCHAR}, 
      #{isQualify,jdbcType=INTEGER}, #{getQualifyMethod,jdbcType=VARCHAR}, #{employeeCnts,jdbcType=INTEGER}, 
      #{integrityInfo,jdbcType=VARCHAR}, #{specialTips,jdbcType=VARCHAR}, #{amacLink,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{updateBy,jdbcType=VARCHAR}, #{deleteTag,jdbcType=INTEGER}, #{companyProfile,jdbcType=LONGVARCHAR}, 
      #{philosopy,jdbcType=LONGVARCHAR}, #{representativeExperience,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    insert into company_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="pCompanyId != null">
        p_company_id,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="companyShortName != null">
        company_short_name,
      </if>
      <if test="companyEnglishName != null">
        company_english_name,
      </if>
      <if test="companyType != null">
        company_type,
      </if>
      <if test="organizationNumber != null">
        organization_number,
      </if>
      <if test="establishDate != null">
        establish_date,
      </if>
      <if test="domicileId != null">
        domicile_id,
      </if>
      <if test="companyAddress != null">
        company_address,
      </if>
      <if test="companyAddress2 != null">
        company_address2,
      </if>
      <if test="city != null">
        city,
      </if>
      <if test="province != null">
        province,
      </if>
      <if test="country != null">
        country,
      </if>
      <if test="regCity != null">
        reg_city,
      </if>
      <if test="regProvince != null">
        reg_province,
      </if>
      <if test="regCountry != null">
        reg_country,
      </if>
      <if test="contactPhone != null">
        contact_phone,
      </if>
      <if test="postCode != null">
        post_code,
      </if>
      <if test="fax != null">
        fax,
      </if>
      <if test="email != null">
        email,
      </if>
      <if test="website != null">
        website,
      </if>
      <if test="registeredCapital != null">
        registered_capital,
      </if>
      <if test="offshoreFund != null">
        offshore_fund,
      </if>
      <if test="companyStatus != null">
        company_status,
      </if>
      <if test="baseCurrencyCrc != null">
        base_currency_crc,
      </if>
      <if test="registerNumber != null">
        register_number,
      </if>
      <if test="registerStatus != null">
        register_status,
      </if>
      <if test="registerDate != null">
        register_date,
      </if>
      <if test="registerNumberAddress != null">
        register_number_address,
      </if>
      <if test="isMember != null">
        is_member,
      </if>
      <if test="joinDate != null">
        join_date,
      </if>
      <if test="memberType != null">
        member_type,
      </if>
      <if test="fundCategoryOri != null">
        fund_category_ori,
      </if>
      <if test="businessType != null">
        business_type,
      </if>
      <if test="natureBusinessType != null">
        nature_business_type,
      </if>
      <if test="capitalPaidRate != null">
        capital_paid_rate,
      </if>
      <if test="logo != null">
        logo,
      </if>
      <if test="isvisible != null">
        isvisible,
      </if>
      <if test="paidCapital != null">
        paid_capital,
      </if>
      <if test="companyAssetSize != null">
        company_asset_size,
      </if>
      <if test="legalRepresentative != null">
        legal_representative,
      </if>
      <if test="isQualify != null">
        is_qualify,
      </if>
      <if test="getQualifyMethod != null">
        get_qualify_method,
      </if>
      <if test="employeeCnts != null">
        employee_cnts,
      </if>
      <if test="integrityInfo != null">
        integrity_info,
      </if>
      <if test="specialTips != null">
        special_tips,
      </if>
      <if test="amacLink != null">
        amac_link,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
      <if test="companyProfile != null">
        company_profile,
      </if>
      <if test="philosopy != null">
        philosopy,
      </if>
      <if test="representativeExperience != null">
        representative_experience,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="pCompanyId != null">
        #{pCompanyId,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyShortName != null">
        #{companyShortName,jdbcType=VARCHAR},
      </if>
      <if test="companyEnglishName != null">
        #{companyEnglishName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        #{companyType,jdbcType=INTEGER},
      </if>
      <if test="organizationNumber != null">
        #{organizationNumber,jdbcType=VARCHAR},
      </if>
      <if test="establishDate != null">
        #{establishDate,jdbcType=DATE},
      </if>
      <if test="domicileId != null">
        #{domicileId,jdbcType=INTEGER},
      </if>
      <if test="companyAddress != null">
        #{companyAddress,jdbcType=VARCHAR},
      </if>
      <if test="companyAddress2 != null">
        #{companyAddress2,jdbcType=VARCHAR},
      </if>
      <if test="city != null">
        #{city,jdbcType=VARCHAR},
      </if>
      <if test="province != null">
        #{province,jdbcType=VARCHAR},
      </if>
      <if test="country != null">
        #{country,jdbcType=VARCHAR},
      </if>
      <if test="regCity != null">
        #{regCity,jdbcType=VARCHAR},
      </if>
      <if test="regProvince != null">
        #{regProvince,jdbcType=VARCHAR},
      </if>
      <if test="regCountry != null">
        #{regCountry,jdbcType=VARCHAR},
      </if>
      <if test="contactPhone != null">
        #{contactPhone,jdbcType=VARCHAR},
      </if>
      <if test="postCode != null">
        #{postCode,jdbcType=VARCHAR},
      </if>
      <if test="fax != null">
        #{fax,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        #{email,jdbcType=VARCHAR},
      </if>
      <if test="website != null">
        #{website,jdbcType=VARCHAR},
      </if>
      <if test="registeredCapital != null">
        #{registeredCapital,jdbcType=DECIMAL},
      </if>
      <if test="offshoreFund != null">
        #{offshoreFund,jdbcType=INTEGER},
      </if>
      <if test="companyStatus != null">
        #{companyStatus,jdbcType=INTEGER},
      </if>
      <if test="baseCurrencyCrc != null">
        #{baseCurrencyCrc,jdbcType=INTEGER},
      </if>
      <if test="registerNumber != null">
        #{registerNumber,jdbcType=VARCHAR},
      </if>
      <if test="registerStatus != null">
        #{registerStatus,jdbcType=INTEGER},
      </if>
      <if test="registerDate != null">
        #{registerDate,jdbcType=DATE},
      </if>
      <if test="registerNumberAddress != null">
        #{registerNumberAddress,jdbcType=VARCHAR},
      </if>
      <if test="isMember != null">
        #{isMember,jdbcType=TINYINT},
      </if>
      <if test="joinDate != null">
        #{joinDate,jdbcType=DATE},
      </if>
      <if test="memberType != null">
        #{memberType,jdbcType=INTEGER},
      </if>
      <if test="fundCategoryOri != null">
        #{fundCategoryOri,jdbcType=VARCHAR},
      </if>
      <if test="businessType != null">
        #{businessType,jdbcType=VARCHAR},
      </if>
      <if test="natureBusinessType != null">
        #{natureBusinessType,jdbcType=INTEGER},
      </if>
      <if test="capitalPaidRate != null">
        #{capitalPaidRate,jdbcType=DECIMAL},
      </if>
      <if test="logo != null">
        #{logo,jdbcType=VARCHAR},
      </if>
      <if test="isvisible != null">
        #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="paidCapital != null">
        #{paidCapital,jdbcType=DECIMAL},
      </if>
      <if test="companyAssetSize != null">
        #{companyAssetSize,jdbcType=INTEGER},
      </if>
      <if test="legalRepresentative != null">
        #{legalRepresentative,jdbcType=VARCHAR},
      </if>
      <if test="isQualify != null">
        #{isQualify,jdbcType=INTEGER},
      </if>
      <if test="getQualifyMethod != null">
        #{getQualifyMethod,jdbcType=VARCHAR},
      </if>
      <if test="employeeCnts != null">
        #{employeeCnts,jdbcType=INTEGER},
      </if>
      <if test="integrityInfo != null">
        #{integrityInfo,jdbcType=VARCHAR},
      </if>
      <if test="specialTips != null">
        #{specialTips,jdbcType=VARCHAR},
      </if>
      <if test="amacLink != null">
        #{amacLink,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="companyProfile != null">
        #{companyProfile,jdbcType=LONGVARCHAR},
      </if>
      <if test="philosopy != null">
        #{philosopy,jdbcType=LONGVARCHAR},
      </if>
      <if test="representativeExperience != null">
        #{representativeExperience,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.CompanyInfoExample" resultType="java.lang.Long">
    <!--@mbg.generated-->
    select count(*) from company_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--@mbg.generated-->
    update company_info
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=VARCHAR},
      </if>
      <if test="record.pCompanyId != null">
        p_company_id = #{record.pCompanyId,jdbcType=VARCHAR},
      </if>
      <if test="record.companyName != null">
        company_name = #{record.companyName,jdbcType=VARCHAR},
      </if>
      <if test="record.companyShortName != null">
        company_short_name = #{record.companyShortName,jdbcType=VARCHAR},
      </if>
      <if test="record.companyEnglishName != null">
        company_english_name = #{record.companyEnglishName,jdbcType=VARCHAR},
      </if>
      <if test="record.companyType != null">
        company_type = #{record.companyType,jdbcType=INTEGER},
      </if>
      <if test="record.organizationNumber != null">
        organization_number = #{record.organizationNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.establishDate != null">
        establish_date = #{record.establishDate,jdbcType=DATE},
      </if>
      <if test="record.domicileId != null">
        domicile_id = #{record.domicileId,jdbcType=INTEGER},
      </if>
      <if test="record.companyAddress != null">
        company_address = #{record.companyAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.companyAddress2 != null">
        company_address2 = #{record.companyAddress2,jdbcType=VARCHAR},
      </if>
      <if test="record.city != null">
        city = #{record.city,jdbcType=VARCHAR},
      </if>
      <if test="record.province != null">
        province = #{record.province,jdbcType=VARCHAR},
      </if>
      <if test="record.country != null">
        country = #{record.country,jdbcType=VARCHAR},
      </if>
      <if test="record.regCity != null">
        reg_city = #{record.regCity,jdbcType=VARCHAR},
      </if>
      <if test="record.regProvince != null">
        reg_province = #{record.regProvince,jdbcType=VARCHAR},
      </if>
      <if test="record.regCountry != null">
        reg_country = #{record.regCountry,jdbcType=VARCHAR},
      </if>
      <if test="record.contactPhone != null">
        contact_phone = #{record.contactPhone,jdbcType=VARCHAR},
      </if>
      <if test="record.postCode != null">
        post_code = #{record.postCode,jdbcType=VARCHAR},
      </if>
      <if test="record.fax != null">
        fax = #{record.fax,jdbcType=VARCHAR},
      </if>
      <if test="record.email != null">
        email = #{record.email,jdbcType=VARCHAR},
      </if>
      <if test="record.website != null">
        website = #{record.website,jdbcType=VARCHAR},
      </if>
      <if test="record.registeredCapital != null">
        registered_capital = #{record.registeredCapital,jdbcType=DECIMAL},
      </if>
      <if test="record.offshoreFund != null">
        offshore_fund = #{record.offshoreFund,jdbcType=INTEGER},
      </if>
      <if test="record.companyStatus != null">
        company_status = #{record.companyStatus,jdbcType=INTEGER},
      </if>
      <if test="record.baseCurrencyCrc != null">
        base_currency_crc = #{record.baseCurrencyCrc,jdbcType=INTEGER},
      </if>
      <if test="record.registerNumber != null">
        register_number = #{record.registerNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.registerStatus != null">
        register_status = #{record.registerStatus,jdbcType=INTEGER},
      </if>
      <if test="record.registerDate != null">
        register_date = #{record.registerDate,jdbcType=DATE},
      </if>
      <if test="record.registerNumberAddress != null">
        register_number_address = #{record.registerNumberAddress,jdbcType=VARCHAR},
      </if>
      <if test="record.isMember != null">
        is_member = #{record.isMember,jdbcType=TINYINT},
      </if>
      <if test="record.joinDate != null">
        join_date = #{record.joinDate,jdbcType=DATE},
      </if>
      <if test="record.memberType != null">
        member_type = #{record.memberType,jdbcType=INTEGER},
      </if>
      <if test="record.fundCategoryOri != null">
        fund_category_ori = #{record.fundCategoryOri,jdbcType=VARCHAR},
      </if>
      <if test="record.businessType != null">
        business_type = #{record.businessType,jdbcType=VARCHAR},
      </if>
      <if test="record.natureBusinessType != null">
        nature_business_type = #{record.natureBusinessType,jdbcType=INTEGER},
      </if>
      <if test="record.capitalPaidRate != null">
        capital_paid_rate = #{record.capitalPaidRate,jdbcType=DECIMAL},
      </if>
      <if test="record.logo != null">
        logo = #{record.logo,jdbcType=VARCHAR},
      </if>
      <if test="record.isvisible != null">
        isvisible = #{record.isvisible,jdbcType=INTEGER},
      </if>
      <if test="record.paidCapital != null">
        paid_capital = #{record.paidCapital,jdbcType=DECIMAL},
      </if>
      <if test="record.companyAssetSize != null">
        company_asset_size = #{record.companyAssetSize,jdbcType=INTEGER},
      </if>
      <if test="record.legalRepresentative != null">
        legal_representative = #{record.legalRepresentative,jdbcType=VARCHAR},
      </if>
      <if test="record.isQualify != null">
        is_qualify = #{record.isQualify,jdbcType=INTEGER},
      </if>
      <if test="record.getQualifyMethod != null">
        get_qualify_method = #{record.getQualifyMethod,jdbcType=VARCHAR},
      </if>
      <if test="record.employeeCnts != null">
        employee_cnts = #{record.employeeCnts,jdbcType=INTEGER},
      </if>
      <if test="record.integrityInfo != null">
        integrity_info = #{record.integrityInfo,jdbcType=VARCHAR},
      </if>
      <if test="record.specialTips != null">
        special_tips = #{record.specialTips,jdbcType=VARCHAR},
      </if>
      <if test="record.amacLink != null">
        amac_link = #{record.amacLink,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createBy != null">
        create_by = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateBy != null">
        update_by = #{record.updateBy,jdbcType=VARCHAR},
      </if>
      <if test="record.deleteTag != null">
        delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      </if>
      <if test="record.companyProfile != null">
        company_profile = #{record.companyProfile,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.philosopy != null">
        philosopy = #{record.philosopy,jdbcType=LONGVARCHAR},
      </if>
      <if test="record.representativeExperience != null">
        representative_experience = #{record.representativeExperience,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--@mbg.generated-->
    update company_info
    set id = #{record.id,jdbcType=VARCHAR},
      p_company_id = #{record.pCompanyId,jdbcType=VARCHAR},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      company_short_name = #{record.companyShortName,jdbcType=VARCHAR},
      company_english_name = #{record.companyEnglishName,jdbcType=VARCHAR},
      company_type = #{record.companyType,jdbcType=INTEGER},
      organization_number = #{record.organizationNumber,jdbcType=VARCHAR},
      establish_date = #{record.establishDate,jdbcType=DATE},
      domicile_id = #{record.domicileId,jdbcType=INTEGER},
      company_address = #{record.companyAddress,jdbcType=VARCHAR},
      company_address2 = #{record.companyAddress2,jdbcType=VARCHAR},
      city = #{record.city,jdbcType=VARCHAR},
      province = #{record.province,jdbcType=VARCHAR},
      country = #{record.country,jdbcType=VARCHAR},
      reg_city = #{record.regCity,jdbcType=VARCHAR},
      reg_province = #{record.regProvince,jdbcType=VARCHAR},
      reg_country = #{record.regCountry,jdbcType=VARCHAR},
      contact_phone = #{record.contactPhone,jdbcType=VARCHAR},
      post_code = #{record.postCode,jdbcType=VARCHAR},
      fax = #{record.fax,jdbcType=VARCHAR},
      email = #{record.email,jdbcType=VARCHAR},
      website = #{record.website,jdbcType=VARCHAR},
      registered_capital = #{record.registeredCapital,jdbcType=DECIMAL},
      offshore_fund = #{record.offshoreFund,jdbcType=INTEGER},
      company_status = #{record.companyStatus,jdbcType=INTEGER},
      base_currency_crc = #{record.baseCurrencyCrc,jdbcType=INTEGER},
      register_number = #{record.registerNumber,jdbcType=VARCHAR},
      register_status = #{record.registerStatus,jdbcType=INTEGER},
      register_date = #{record.registerDate,jdbcType=DATE},
      register_number_address = #{record.registerNumberAddress,jdbcType=VARCHAR},
      is_member = #{record.isMember,jdbcType=TINYINT},
      join_date = #{record.joinDate,jdbcType=DATE},
      member_type = #{record.memberType,jdbcType=INTEGER},
      fund_category_ori = #{record.fundCategoryOri,jdbcType=VARCHAR},
      business_type = #{record.businessType,jdbcType=VARCHAR},
      nature_business_type = #{record.natureBusinessType,jdbcType=INTEGER},
      capital_paid_rate = #{record.capitalPaidRate,jdbcType=DECIMAL},
      logo = #{record.logo,jdbcType=VARCHAR},
      isvisible = #{record.isvisible,jdbcType=INTEGER},
      paid_capital = #{record.paidCapital,jdbcType=DECIMAL},
      company_asset_size = #{record.companyAssetSize,jdbcType=INTEGER},
      legal_representative = #{record.legalRepresentative,jdbcType=VARCHAR},
      is_qualify = #{record.isQualify,jdbcType=INTEGER},
      get_qualify_method = #{record.getQualifyMethod,jdbcType=VARCHAR},
      employee_cnts = #{record.employeeCnts,jdbcType=INTEGER},
      integrity_info = #{record.integrityInfo,jdbcType=VARCHAR},
      special_tips = #{record.specialTips,jdbcType=VARCHAR},
      amac_link = #{record.amacLink,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER},
      company_profile = #{record.companyProfile,jdbcType=LONGVARCHAR},
      philosopy = #{record.philosopy,jdbcType=LONGVARCHAR},
      representative_experience = #{record.representativeExperience,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--@mbg.generated-->
    update company_info
    set id = #{record.id,jdbcType=VARCHAR},
      p_company_id = #{record.pCompanyId,jdbcType=VARCHAR},
      company_name = #{record.companyName,jdbcType=VARCHAR},
      company_short_name = #{record.companyShortName,jdbcType=VARCHAR},
      company_english_name = #{record.companyEnglishName,jdbcType=VARCHAR},
      company_type = #{record.companyType,jdbcType=INTEGER},
      organization_number = #{record.organizationNumber,jdbcType=VARCHAR},
      establish_date = #{record.establishDate,jdbcType=DATE},
      domicile_id = #{record.domicileId,jdbcType=INTEGER},
      company_address = #{record.companyAddress,jdbcType=VARCHAR},
      company_address2 = #{record.companyAddress2,jdbcType=VARCHAR},
      city = #{record.city,jdbcType=VARCHAR},
      province = #{record.province,jdbcType=VARCHAR},
      country = #{record.country,jdbcType=VARCHAR},
      reg_city = #{record.regCity,jdbcType=VARCHAR},
      reg_province = #{record.regProvince,jdbcType=VARCHAR},
      reg_country = #{record.regCountry,jdbcType=VARCHAR},
      contact_phone = #{record.contactPhone,jdbcType=VARCHAR},
      post_code = #{record.postCode,jdbcType=VARCHAR},
      fax = #{record.fax,jdbcType=VARCHAR},
      email = #{record.email,jdbcType=VARCHAR},
      website = #{record.website,jdbcType=VARCHAR},
      registered_capital = #{record.registeredCapital,jdbcType=DECIMAL},
      offshore_fund = #{record.offshoreFund,jdbcType=INTEGER},
      company_status = #{record.companyStatus,jdbcType=INTEGER},
      base_currency_crc = #{record.baseCurrencyCrc,jdbcType=INTEGER},
      register_number = #{record.registerNumber,jdbcType=VARCHAR},
      register_status = #{record.registerStatus,jdbcType=INTEGER},
      register_date = #{record.registerDate,jdbcType=DATE},
      register_number_address = #{record.registerNumberAddress,jdbcType=VARCHAR},
      is_member = #{record.isMember,jdbcType=TINYINT},
      join_date = #{record.joinDate,jdbcType=DATE},
      member_type = #{record.memberType,jdbcType=INTEGER},
      fund_category_ori = #{record.fundCategoryOri,jdbcType=VARCHAR},
      business_type = #{record.businessType,jdbcType=VARCHAR},
      nature_business_type = #{record.natureBusinessType,jdbcType=INTEGER},
      capital_paid_rate = #{record.capitalPaidRate,jdbcType=DECIMAL},
      logo = #{record.logo,jdbcType=VARCHAR},
      isvisible = #{record.isvisible,jdbcType=INTEGER},
      paid_capital = #{record.paidCapital,jdbcType=DECIMAL},
      company_asset_size = #{record.companyAssetSize,jdbcType=INTEGER},
      legal_representative = #{record.legalRepresentative,jdbcType=VARCHAR},
      is_qualify = #{record.isQualify,jdbcType=INTEGER},
      get_qualify_method = #{record.getQualifyMethod,jdbcType=VARCHAR},
      employee_cnts = #{record.employeeCnts,jdbcType=INTEGER},
      integrity_info = #{record.integrityInfo,jdbcType=VARCHAR},
      special_tips = #{record.specialTips,jdbcType=VARCHAR},
      amac_link = #{record.amacLink,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_by = #{record.createBy,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      delete_tag = #{record.deleteTag,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    update company_info
    <set>
      <if test="pCompanyId != null">
        p_company_id = #{pCompanyId,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyShortName != null">
        company_short_name = #{companyShortName,jdbcType=VARCHAR},
      </if>
      <if test="companyEnglishName != null">
        company_english_name = #{companyEnglishName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        company_type = #{companyType,jdbcType=INTEGER},
      </if>
      <if test="organizationNumber != null">
        organization_number = #{organizationNumber,jdbcType=VARCHAR},
      </if>
      <if test="establishDate != null">
        establish_date = #{establishDate,jdbcType=DATE},
      </if>
      <if test="domicileId != null">
        domicile_id = #{domicileId,jdbcType=INTEGER},
      </if>
      <if test="companyAddress != null">
        company_address = #{companyAddress,jdbcType=VARCHAR},
      </if>
      <if test="companyAddress2 != null">
        company_address2 = #{companyAddress2,jdbcType=VARCHAR},
      </if>
      <if test="city != null">
        city = #{city,jdbcType=VARCHAR},
      </if>
      <if test="province != null">
        province = #{province,jdbcType=VARCHAR},
      </if>
      <if test="country != null">
        country = #{country,jdbcType=VARCHAR},
      </if>
      <if test="regCity != null">
        reg_city = #{regCity,jdbcType=VARCHAR},
      </if>
      <if test="regProvince != null">
        reg_province = #{regProvince,jdbcType=VARCHAR},
      </if>
      <if test="regCountry != null">
        reg_country = #{regCountry,jdbcType=VARCHAR},
      </if>
      <if test="contactPhone != null">
        contact_phone = #{contactPhone,jdbcType=VARCHAR},
      </if>
      <if test="postCode != null">
        post_code = #{postCode,jdbcType=VARCHAR},
      </if>
      <if test="fax != null">
        fax = #{fax,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        email = #{email,jdbcType=VARCHAR},
      </if>
      <if test="website != null">
        website = #{website,jdbcType=VARCHAR},
      </if>
      <if test="registeredCapital != null">
        registered_capital = #{registeredCapital,jdbcType=DECIMAL},
      </if>
      <if test="offshoreFund != null">
        offshore_fund = #{offshoreFund,jdbcType=INTEGER},
      </if>
      <if test="companyStatus != null">
        company_status = #{companyStatus,jdbcType=INTEGER},
      </if>
      <if test="baseCurrencyCrc != null">
        base_currency_crc = #{baseCurrencyCrc,jdbcType=INTEGER},
      </if>
      <if test="registerNumber != null">
        register_number = #{registerNumber,jdbcType=VARCHAR},
      </if>
      <if test="registerStatus != null">
        register_status = #{registerStatus,jdbcType=INTEGER},
      </if>
      <if test="registerDate != null">
        register_date = #{registerDate,jdbcType=DATE},
      </if>
      <if test="registerNumberAddress != null">
        register_number_address = #{registerNumberAddress,jdbcType=VARCHAR},
      </if>
      <if test="isMember != null">
        is_member = #{isMember,jdbcType=TINYINT},
      </if>
      <if test="joinDate != null">
        join_date = #{joinDate,jdbcType=DATE},
      </if>
      <if test="memberType != null">
        member_type = #{memberType,jdbcType=INTEGER},
      </if>
      <if test="fundCategoryOri != null">
        fund_category_ori = #{fundCategoryOri,jdbcType=VARCHAR},
      </if>
      <if test="businessType != null">
        business_type = #{businessType,jdbcType=VARCHAR},
      </if>
      <if test="natureBusinessType != null">
        nature_business_type = #{natureBusinessType,jdbcType=INTEGER},
      </if>
      <if test="capitalPaidRate != null">
        capital_paid_rate = #{capitalPaidRate,jdbcType=DECIMAL},
      </if>
      <if test="logo != null">
        logo = #{logo,jdbcType=VARCHAR},
      </if>
      <if test="isvisible != null">
        isvisible = #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="paidCapital != null">
        paid_capital = #{paidCapital,jdbcType=DECIMAL},
      </if>
      <if test="companyAssetSize != null">
        company_asset_size = #{companyAssetSize,jdbcType=INTEGER},
      </if>
      <if test="legalRepresentative != null">
        legal_representative = #{legalRepresentative,jdbcType=VARCHAR},
      </if>
      <if test="isQualify != null">
        is_qualify = #{isQualify,jdbcType=INTEGER},
      </if>
      <if test="getQualifyMethod != null">
        get_qualify_method = #{getQualifyMethod,jdbcType=VARCHAR},
      </if>
      <if test="employeeCnts != null">
        employee_cnts = #{employeeCnts,jdbcType=INTEGER},
      </if>
      <if test="integrityInfo != null">
        integrity_info = #{integrityInfo,jdbcType=VARCHAR},
      </if>
      <if test="specialTips != null">
        special_tips = #{specialTips,jdbcType=VARCHAR},
      </if>
      <if test="amacLink != null">
        amac_link = #{amacLink,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="companyProfile != null">
        company_profile = #{companyProfile,jdbcType=LONGVARCHAR},
      </if>
      <if test="philosopy != null">
        philosopy = #{philosopy,jdbcType=LONGVARCHAR},
      </if>
      <if test="representativeExperience != null">
        representative_experience = #{representativeExperience,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    update company_info
    set p_company_id = #{pCompanyId,jdbcType=VARCHAR},
      company_name = #{companyName,jdbcType=VARCHAR},
      company_short_name = #{companyShortName,jdbcType=VARCHAR},
      company_english_name = #{companyEnglishName,jdbcType=VARCHAR},
      company_type = #{companyType,jdbcType=INTEGER},
      organization_number = #{organizationNumber,jdbcType=VARCHAR},
      establish_date = #{establishDate,jdbcType=DATE},
      domicile_id = #{domicileId,jdbcType=INTEGER},
      company_address = #{companyAddress,jdbcType=VARCHAR},
      company_address2 = #{companyAddress2,jdbcType=VARCHAR},
      city = #{city,jdbcType=VARCHAR},
      province = #{province,jdbcType=VARCHAR},
      country = #{country,jdbcType=VARCHAR},
      reg_city = #{regCity,jdbcType=VARCHAR},
      reg_province = #{regProvince,jdbcType=VARCHAR},
      reg_country = #{regCountry,jdbcType=VARCHAR},
      contact_phone = #{contactPhone,jdbcType=VARCHAR},
      post_code = #{postCode,jdbcType=VARCHAR},
      fax = #{fax,jdbcType=VARCHAR},
      email = #{email,jdbcType=VARCHAR},
      website = #{website,jdbcType=VARCHAR},
      registered_capital = #{registeredCapital,jdbcType=DECIMAL},
      offshore_fund = #{offshoreFund,jdbcType=INTEGER},
      company_status = #{companyStatus,jdbcType=INTEGER},
      base_currency_crc = #{baseCurrencyCrc,jdbcType=INTEGER},
      register_number = #{registerNumber,jdbcType=VARCHAR},
      register_status = #{registerStatus,jdbcType=INTEGER},
      register_date = #{registerDate,jdbcType=DATE},
      register_number_address = #{registerNumberAddress,jdbcType=VARCHAR},
      is_member = #{isMember,jdbcType=TINYINT},
      join_date = #{joinDate,jdbcType=DATE},
      member_type = #{memberType,jdbcType=INTEGER},
      fund_category_ori = #{fundCategoryOri,jdbcType=VARCHAR},
      business_type = #{businessType,jdbcType=VARCHAR},
      nature_business_type = #{natureBusinessType,jdbcType=INTEGER},
      capital_paid_rate = #{capitalPaidRate,jdbcType=DECIMAL},
      logo = #{logo,jdbcType=VARCHAR},
      isvisible = #{isvisible,jdbcType=INTEGER},
      paid_capital = #{paidCapital,jdbcType=DECIMAL},
      company_asset_size = #{companyAssetSize,jdbcType=INTEGER},
      legal_representative = #{legalRepresentative,jdbcType=VARCHAR},
      is_qualify = #{isQualify,jdbcType=INTEGER},
      get_qualify_method = #{getQualifyMethod,jdbcType=VARCHAR},
      employee_cnts = #{employeeCnts,jdbcType=INTEGER},
      integrity_info = #{integrityInfo,jdbcType=VARCHAR},
      special_tips = #{specialTips,jdbcType=VARCHAR},
      amac_link = #{amacLink,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      delete_tag = #{deleteTag,jdbcType=INTEGER},
      company_profile = #{companyProfile,jdbcType=LONGVARCHAR},
      philosopy = #{philosopy,jdbcType=LONGVARCHAR},
      representative_experience = #{representativeExperience,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    update company_info
    set p_company_id = #{pCompanyId,jdbcType=VARCHAR},
      company_name = #{companyName,jdbcType=VARCHAR},
      company_short_name = #{companyShortName,jdbcType=VARCHAR},
      company_english_name = #{companyEnglishName,jdbcType=VARCHAR},
      company_type = #{companyType,jdbcType=INTEGER},
      organization_number = #{organizationNumber,jdbcType=VARCHAR},
      establish_date = #{establishDate,jdbcType=DATE},
      domicile_id = #{domicileId,jdbcType=INTEGER},
      company_address = #{companyAddress,jdbcType=VARCHAR},
      company_address2 = #{companyAddress2,jdbcType=VARCHAR},
      city = #{city,jdbcType=VARCHAR},
      province = #{province,jdbcType=VARCHAR},
      country = #{country,jdbcType=VARCHAR},
      reg_city = #{regCity,jdbcType=VARCHAR},
      reg_province = #{regProvince,jdbcType=VARCHAR},
      reg_country = #{regCountry,jdbcType=VARCHAR},
      contact_phone = #{contactPhone,jdbcType=VARCHAR},
      post_code = #{postCode,jdbcType=VARCHAR},
      fax = #{fax,jdbcType=VARCHAR},
      email = #{email,jdbcType=VARCHAR},
      website = #{website,jdbcType=VARCHAR},
      registered_capital = #{registeredCapital,jdbcType=DECIMAL},
      offshore_fund = #{offshoreFund,jdbcType=INTEGER},
      company_status = #{companyStatus,jdbcType=INTEGER},
      base_currency_crc = #{baseCurrencyCrc,jdbcType=INTEGER},
      register_number = #{registerNumber,jdbcType=VARCHAR},
      register_status = #{registerStatus,jdbcType=INTEGER},
      register_date = #{registerDate,jdbcType=DATE},
      register_number_address = #{registerNumberAddress,jdbcType=VARCHAR},
      is_member = #{isMember,jdbcType=TINYINT},
      join_date = #{joinDate,jdbcType=DATE},
      member_type = #{memberType,jdbcType=INTEGER},
      fund_category_ori = #{fundCategoryOri,jdbcType=VARCHAR},
      business_type = #{businessType,jdbcType=VARCHAR},
      nature_business_type = #{natureBusinessType,jdbcType=INTEGER},
      capital_paid_rate = #{capitalPaidRate,jdbcType=DECIMAL},
      logo = #{logo,jdbcType=VARCHAR},
      isvisible = #{isvisible,jdbcType=INTEGER},
      paid_capital = #{paidCapital,jdbcType=DECIMAL},
      company_asset_size = #{companyAssetSize,jdbcType=INTEGER},
      legal_representative = #{legalRepresentative,jdbcType=VARCHAR},
      is_qualify = #{isQualify,jdbcType=INTEGER},
      get_qualify_method = #{getQualifyMethod,jdbcType=VARCHAR},
      employee_cnts = #{employeeCnts,jdbcType=INTEGER},
      integrity_info = #{integrityInfo,jdbcType=VARCHAR},
      special_tips = #{specialTips,jdbcType=VARCHAR},
      amac_link = #{amacLink,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_by = #{updateBy,jdbcType=VARCHAR},
      delete_tag = #{deleteTag,jdbcType=INTEGER}
    where id = #{id,jdbcType=VARCHAR}
  </update>
  <update id="updateBatch" parameterType="java.util.List">
    <!--@mbg.generated-->
    update company_info
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="p_company_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.pCompanyId,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="company_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="company_short_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyShortName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="company_english_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyEnglishName,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="company_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyType,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="organization_number = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.organizationNumber,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="establish_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.establishDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="domicile_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.domicileId,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="company_address = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAddress,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="company_address2 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAddress2,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="city = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.city,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="province = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.province,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="country = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.country,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="reg_city = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.regCity,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="reg_province = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.regProvince,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="reg_country = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.regCountry,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="contact_phone = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.contactPhone,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="post_code = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.postCode,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="fax = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.fax,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="email = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.email,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="website = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.website,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="registered_capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.registeredCapital,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="offshore_fund = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.offshoreFund,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="company_status = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyStatus,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="base_currency_crc = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.baseCurrencyCrc,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="register_number = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumber,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="register_status = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.registerStatus,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="register_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.registerDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="register_number_address = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumberAddress,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="is_member = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.isMember,jdbcType=TINYINT}
        </foreach>
      </trim>
      <trim prefix="join_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.joinDate,jdbcType=DATE}
        </foreach>
      </trim>
      <trim prefix="member_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.memberType,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="fund_category_ori = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.fundCategoryOri,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="business_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.businessType,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="nature_business_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.natureBusinessType,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="capital_paid_rate = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.capitalPaidRate,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="logo = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.logo,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="isvisible = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="paid_capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.paidCapital,jdbcType=DECIMAL}
        </foreach>
      </trim>
      <trim prefix="company_asset_size = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAssetSize,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="legal_representative = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.legalRepresentative,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="is_qualify = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.isQualify,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="get_qualify_method = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.getQualifyMethod,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="employee_cnts = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.employeeCnts,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="integrity_info = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.integrityInfo,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="special_tips = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.specialTips,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="amac_link = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.amacLink,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="create_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="create_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="update_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
        </foreach>
      </trim>
      <trim prefix="update_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
        </foreach>
      </trim>
      <trim prefix="company_profile = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.companyProfile,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
      <trim prefix="philosopy = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.philosopy,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
      <trim prefix="representative_experience = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          when id = #{item.id,jdbcType=VARCHAR} then #{item.representativeExperience,jdbcType=LONGVARCHAR}
        </foreach>
      </trim>
    </trim>
    where id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.id,jdbcType=VARCHAR}
    </foreach>
  </update>
  <update id="updateBatchSelective" parameterType="java.util.List">
    <!--@mbg.generated-->
    update company_info
    <trim prefix="set" suffixOverrides=",">
      <trim prefix="p_company_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.pCompanyId != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.pCompanyId,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyName != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyName,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_short_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyShortName != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyShortName,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_english_name = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyEnglishName != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyEnglishName,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyType != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyType,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="organization_number = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.organizationNumber != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.organizationNumber,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="establish_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.establishDate != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.establishDate,jdbcType=DATE}
          </if>
        </foreach>
      </trim>
      <trim prefix="domicile_id = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.domicileId != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.domicileId,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_address = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyAddress != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAddress,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_address2 = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyAddress2 != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAddress2,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="city = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.city != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.city,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="province = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.province != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.province,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="country = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.country != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.country,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="reg_city = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.regCity != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.regCity,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="reg_province = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.regProvince != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.regProvince,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="reg_country = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.regCountry != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.regCountry,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="contact_phone = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.contactPhone != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.contactPhone,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="post_code = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.postCode != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.postCode,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="fax = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.fax != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.fax,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="email = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.email != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.email,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="website = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.website != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.website,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="registered_capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.registeredCapital != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.registeredCapital,jdbcType=DECIMAL}
          </if>
        </foreach>
      </trim>
      <trim prefix="offshore_fund = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.offshoreFund != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.offshoreFund,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_status = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyStatus != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyStatus,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="base_currency_crc = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.baseCurrencyCrc != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.baseCurrencyCrc,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="register_number = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.registerNumber != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumber,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="register_status = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.registerStatus != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.registerStatus,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="register_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.registerDate != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.registerDate,jdbcType=DATE}
          </if>
        </foreach>
      </trim>
      <trim prefix="register_number_address = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.registerNumberAddress != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumberAddress,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="is_member = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.isMember != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.isMember,jdbcType=TINYINT}
          </if>
        </foreach>
      </trim>
      <trim prefix="join_date = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.joinDate != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.joinDate,jdbcType=DATE}
          </if>
        </foreach>
      </trim>
      <trim prefix="member_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.memberType != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.memberType,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="fund_category_ori = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.fundCategoryOri != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.fundCategoryOri,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="business_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.businessType != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.businessType,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="nature_business_type = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.natureBusinessType != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.natureBusinessType,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="capital_paid_rate = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.capitalPaidRate != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.capitalPaidRate,jdbcType=DECIMAL}
          </if>
        </foreach>
      </trim>
      <trim prefix="logo = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.logo != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.logo,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="isvisible = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.isvisible != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="paid_capital = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.paidCapital != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.paidCapital,jdbcType=DECIMAL}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_asset_size = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyAssetSize != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAssetSize,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="legal_representative = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.legalRepresentative != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.legalRepresentative,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="is_qualify = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.isQualify != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.isQualify,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="get_qualify_method = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.getQualifyMethod != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.getQualifyMethod,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="employee_cnts = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.employeeCnts != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.employeeCnts,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="integrity_info = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.integrityInfo != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.integrityInfo,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="special_tips = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.specialTips != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.specialTips,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="amac_link = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.amacLink != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.amacLink,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="create_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.createTime != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
          </if>
        </foreach>
      </trim>
      <trim prefix="create_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.createBy != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="update_time = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.updateTime != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
          </if>
        </foreach>
      </trim>
      <trim prefix="update_by = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.updateBy != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="delete_tag = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.deleteTag != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
          </if>
        </foreach>
      </trim>
      <trim prefix="company_profile = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.companyProfile != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.companyProfile,jdbcType=LONGVARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="philosopy = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.philosopy != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.philosopy,jdbcType=LONGVARCHAR}
          </if>
        </foreach>
      </trim>
      <trim prefix="representative_experience = case" suffix="end,">
        <foreach collection="list" index="index" item="item">
          <if test="item.representativeExperience != null">
            when id = #{item.id,jdbcType=VARCHAR} then #{item.representativeExperience,jdbcType=LONGVARCHAR}
          </if>
        </foreach>
      </trim>
    </trim>
    where id in
    <foreach close=")" collection="list" item="item" open="(" separator=", ">
      #{item.id,jdbcType=VARCHAR}
    </foreach>
  </update>
  <insert id="batchInsert" parameterType="map">
    <!--@mbg.generated-->
    insert into company_info
    (id, p_company_id, company_name, company_short_name, company_english_name, company_type, 
      organization_number, establish_date, domicile_id, company_address, company_address2, 
      city, province, country, reg_city, reg_province, reg_country, contact_phone, post_code, 
      fax, email, website, registered_capital, offshore_fund, company_status, base_currency_crc, 
      register_number, register_status, register_date, register_number_address, is_member, 
      join_date, member_type, fund_category_ori, business_type, nature_business_type, 
      capital_paid_rate, logo, isvisible, paid_capital, company_asset_size, legal_representative, 
      is_qualify, get_qualify_method, employee_cnts, integrity_info, special_tips, amac_link, 
      create_time, create_by, update_time, update_by, delete_tag, company_profile, philosopy, 
      representative_experience)
    values
    <foreach collection="list" item="item" separator=",">
      (#{item.id,jdbcType=VARCHAR}, #{item.pCompanyId,jdbcType=VARCHAR}, #{item.companyName,jdbcType=VARCHAR}, 
        #{item.companyShortName,jdbcType=VARCHAR}, #{item.companyEnglishName,jdbcType=VARCHAR}, 
        #{item.companyType,jdbcType=INTEGER}, #{item.organizationNumber,jdbcType=VARCHAR}, 
        #{item.establishDate,jdbcType=DATE}, #{item.domicileId,jdbcType=INTEGER}, #{item.companyAddress,jdbcType=VARCHAR}, 
        #{item.companyAddress2,jdbcType=VARCHAR}, #{item.city,jdbcType=VARCHAR}, #{item.province,jdbcType=VARCHAR}, 
        #{item.country,jdbcType=VARCHAR}, #{item.regCity,jdbcType=VARCHAR}, #{item.regProvince,jdbcType=VARCHAR}, 
        #{item.regCountry,jdbcType=VARCHAR}, #{item.contactPhone,jdbcType=VARCHAR}, #{item.postCode,jdbcType=VARCHAR}, 
        #{item.fax,jdbcType=VARCHAR}, #{item.email,jdbcType=VARCHAR}, #{item.website,jdbcType=VARCHAR}, 
        #{item.registeredCapital,jdbcType=DECIMAL}, #{item.offshoreFund,jdbcType=INTEGER}, 
        #{item.companyStatus,jdbcType=INTEGER}, #{item.baseCurrencyCrc,jdbcType=INTEGER}, 
        #{item.registerNumber,jdbcType=VARCHAR}, #{item.registerStatus,jdbcType=INTEGER}, 
        #{item.registerDate,jdbcType=DATE}, #{item.registerNumberAddress,jdbcType=VARCHAR}, 
        #{item.isMember,jdbcType=TINYINT}, #{item.joinDate,jdbcType=DATE}, #{item.memberType,jdbcType=INTEGER}, 
        #{item.fundCategoryOri,jdbcType=VARCHAR}, #{item.businessType,jdbcType=VARCHAR}, 
        #{item.natureBusinessType,jdbcType=INTEGER}, #{item.capitalPaidRate,jdbcType=DECIMAL}, 
        #{item.logo,jdbcType=VARCHAR}, #{item.isvisible,jdbcType=INTEGER}, #{item.paidCapital,jdbcType=DECIMAL}, 
        #{item.companyAssetSize,jdbcType=INTEGER}, #{item.legalRepresentative,jdbcType=VARCHAR}, 
        #{item.isQualify,jdbcType=INTEGER}, #{item.getQualifyMethod,jdbcType=VARCHAR}, 
        #{item.employeeCnts,jdbcType=INTEGER}, #{item.integrityInfo,jdbcType=VARCHAR}, 
        #{item.specialTips,jdbcType=VARCHAR}, #{item.amacLink,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, 
        #{item.createBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, 
        #{item.deleteTag,jdbcType=INTEGER}, #{item.companyProfile,jdbcType=LONGVARCHAR}, 
        #{item.philosopy,jdbcType=LONGVARCHAR}, #{item.representativeExperience,jdbcType=LONGVARCHAR}
        )
    </foreach>
  </insert>
  <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    insert into company_info
    (id, p_company_id, company_name, company_short_name, company_english_name, company_type, 
      organization_number, establish_date, domicile_id, company_address, company_address2, 
      city, province, country, reg_city, reg_province, reg_country, contact_phone, post_code, 
      fax, email, website, registered_capital, offshore_fund, company_status, base_currency_crc, 
      register_number, register_status, register_date, register_number_address, is_member, 
      join_date, member_type, fund_category_ori, business_type, nature_business_type, 
      capital_paid_rate, logo, isvisible, paid_capital, company_asset_size, legal_representative, 
      is_qualify, get_qualify_method, employee_cnts, integrity_info, special_tips, amac_link, 
      create_time, create_by, update_time, update_by, delete_tag)
    values
    (#{id,jdbcType=VARCHAR}, #{pCompanyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
      #{companyShortName,jdbcType=VARCHAR}, #{companyEnglishName,jdbcType=VARCHAR}, #{companyType,jdbcType=INTEGER}, 
      #{organizationNumber,jdbcType=VARCHAR}, #{establishDate,jdbcType=DATE}, #{domicileId,jdbcType=INTEGER}, 
      #{companyAddress,jdbcType=VARCHAR}, #{companyAddress2,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, 
      #{province,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR}, #{regCity,jdbcType=VARCHAR}, 
      #{regProvince,jdbcType=VARCHAR}, #{regCountry,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, 
      #{postCode,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, 
      #{website,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL}, #{offshoreFund,jdbcType=INTEGER}, 
      #{companyStatus,jdbcType=INTEGER}, #{baseCurrencyCrc,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR}, 
      #{registerStatus,jdbcType=INTEGER}, #{registerDate,jdbcType=DATE}, #{registerNumberAddress,jdbcType=VARCHAR}, 
      #{isMember,jdbcType=TINYINT}, #{joinDate,jdbcType=DATE}, #{memberType,jdbcType=INTEGER}, 
      #{fundCategoryOri,jdbcType=VARCHAR}, #{businessType,jdbcType=VARCHAR}, #{natureBusinessType,jdbcType=INTEGER}, 
      #{capitalPaidRate,jdbcType=DECIMAL}, #{logo,jdbcType=VARCHAR}, #{isvisible,jdbcType=INTEGER}, 
      #{paidCapital,jdbcType=DECIMAL}, #{companyAssetSize,jdbcType=INTEGER}, #{legalRepresentative,jdbcType=VARCHAR}, 
      #{isQualify,jdbcType=INTEGER}, #{getQualifyMethod,jdbcType=VARCHAR}, #{employeeCnts,jdbcType=INTEGER}, 
      #{integrityInfo,jdbcType=VARCHAR}, #{specialTips,jdbcType=VARCHAR}, #{amacLink,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{updateBy,jdbcType=VARCHAR}, #{deleteTag,jdbcType=INTEGER})
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    p_company_id = #{pCompanyId,jdbcType=VARCHAR}, 
    company_name = #{companyName,jdbcType=VARCHAR}, 
    company_short_name = #{companyShortName,jdbcType=VARCHAR}, 
    company_english_name = #{companyEnglishName,jdbcType=VARCHAR}, 
    company_type = #{companyType,jdbcType=INTEGER}, 
    organization_number = #{organizationNumber,jdbcType=VARCHAR}, 
    establish_date = #{establishDate,jdbcType=DATE}, 
    domicile_id = #{domicileId,jdbcType=INTEGER}, 
    company_address = #{companyAddress,jdbcType=VARCHAR}, 
    company_address2 = #{companyAddress2,jdbcType=VARCHAR}, 
    city = #{city,jdbcType=VARCHAR}, 
    province = #{province,jdbcType=VARCHAR}, 
    country = #{country,jdbcType=VARCHAR}, 
    reg_city = #{regCity,jdbcType=VARCHAR}, 
    reg_province = #{regProvince,jdbcType=VARCHAR}, 
    reg_country = #{regCountry,jdbcType=VARCHAR}, 
    contact_phone = #{contactPhone,jdbcType=VARCHAR}, 
    post_code = #{postCode,jdbcType=VARCHAR}, 
    fax = #{fax,jdbcType=VARCHAR}, 
    email = #{email,jdbcType=VARCHAR}, 
    website = #{website,jdbcType=VARCHAR}, 
    registered_capital = #{registeredCapital,jdbcType=DECIMAL}, 
    offshore_fund = #{offshoreFund,jdbcType=INTEGER}, 
    company_status = #{companyStatus,jdbcType=INTEGER}, 
    base_currency_crc = #{baseCurrencyCrc,jdbcType=INTEGER}, 
    register_number = #{registerNumber,jdbcType=VARCHAR}, 
    register_status = #{registerStatus,jdbcType=INTEGER}, 
    register_date = #{registerDate,jdbcType=DATE}, 
    register_number_address = #{registerNumberAddress,jdbcType=VARCHAR}, 
    is_member = #{isMember,jdbcType=TINYINT}, 
    join_date = #{joinDate,jdbcType=DATE}, 
    member_type = #{memberType,jdbcType=INTEGER}, 
    fund_category_ori = #{fundCategoryOri,jdbcType=VARCHAR}, 
    business_type = #{businessType,jdbcType=VARCHAR}, 
    nature_business_type = #{natureBusinessType,jdbcType=INTEGER}, 
    capital_paid_rate = #{capitalPaidRate,jdbcType=DECIMAL}, 
    logo = #{logo,jdbcType=VARCHAR}, 
    isvisible = #{isvisible,jdbcType=INTEGER}, 
    paid_capital = #{paidCapital,jdbcType=DECIMAL}, 
    company_asset_size = #{companyAssetSize,jdbcType=INTEGER}, 
    legal_representative = #{legalRepresentative,jdbcType=VARCHAR}, 
    is_qualify = #{isQualify,jdbcType=INTEGER}, 
    get_qualify_method = #{getQualifyMethod,jdbcType=VARCHAR}, 
    employee_cnts = #{employeeCnts,jdbcType=INTEGER}, 
    integrity_info = #{integrityInfo,jdbcType=VARCHAR}, 
    special_tips = #{specialTips,jdbcType=VARCHAR}, 
    amac_link = #{amacLink,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    create_by = #{createBy,jdbcType=VARCHAR}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    update_by = #{updateBy,jdbcType=VARCHAR}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}
  </insert>
  <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    insert into company_info
    (id, p_company_id, company_name, company_short_name, company_english_name, company_type, 
      organization_number, establish_date, domicile_id, company_address, company_address2, 
      city, province, country, reg_city, reg_province, reg_country, contact_phone, post_code, 
      fax, email, website, registered_capital, offshore_fund, company_status, base_currency_crc, 
      register_number, register_status, register_date, register_number_address, is_member, 
      join_date, member_type, fund_category_ori, business_type, nature_business_type, 
      capital_paid_rate, logo, isvisible, paid_capital, company_asset_size, legal_representative, 
      is_qualify, get_qualify_method, employee_cnts, integrity_info, special_tips, amac_link, 
      create_time, create_by, update_time, update_by, delete_tag, company_profile, philosopy, 
      representative_experience)
    values
    (#{id,jdbcType=VARCHAR}, #{pCompanyId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, 
      #{companyShortName,jdbcType=VARCHAR}, #{companyEnglishName,jdbcType=VARCHAR}, #{companyType,jdbcType=INTEGER}, 
      #{organizationNumber,jdbcType=VARCHAR}, #{establishDate,jdbcType=DATE}, #{domicileId,jdbcType=INTEGER}, 
      #{companyAddress,jdbcType=VARCHAR}, #{companyAddress2,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, 
      #{province,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR}, #{regCity,jdbcType=VARCHAR}, 
      #{regProvince,jdbcType=VARCHAR}, #{regCountry,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, 
      #{postCode,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, 
      #{website,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=DECIMAL}, #{offshoreFund,jdbcType=INTEGER}, 
      #{companyStatus,jdbcType=INTEGER}, #{baseCurrencyCrc,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR}, 
      #{registerStatus,jdbcType=INTEGER}, #{registerDate,jdbcType=DATE}, #{registerNumberAddress,jdbcType=VARCHAR}, 
      #{isMember,jdbcType=TINYINT}, #{joinDate,jdbcType=DATE}, #{memberType,jdbcType=INTEGER}, 
      #{fundCategoryOri,jdbcType=VARCHAR}, #{businessType,jdbcType=VARCHAR}, #{natureBusinessType,jdbcType=INTEGER}, 
      #{capitalPaidRate,jdbcType=DECIMAL}, #{logo,jdbcType=VARCHAR}, #{isvisible,jdbcType=INTEGER}, 
      #{paidCapital,jdbcType=DECIMAL}, #{companyAssetSize,jdbcType=INTEGER}, #{legalRepresentative,jdbcType=VARCHAR}, 
      #{isQualify,jdbcType=INTEGER}, #{getQualifyMethod,jdbcType=VARCHAR}, #{employeeCnts,jdbcType=INTEGER}, 
      #{integrityInfo,jdbcType=VARCHAR}, #{specialTips,jdbcType=VARCHAR}, #{amacLink,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{updateBy,jdbcType=VARCHAR}, #{deleteTag,jdbcType=INTEGER}, #{companyProfile,jdbcType=LONGVARCHAR}, 
      #{philosopy,jdbcType=LONGVARCHAR}, #{representativeExperience,jdbcType=LONGVARCHAR}
      )
    on duplicate key update 
    id = #{id,jdbcType=VARCHAR}, 
    p_company_id = #{pCompanyId,jdbcType=VARCHAR}, 
    company_name = #{companyName,jdbcType=VARCHAR}, 
    company_short_name = #{companyShortName,jdbcType=VARCHAR}, 
    company_english_name = #{companyEnglishName,jdbcType=VARCHAR}, 
    company_type = #{companyType,jdbcType=INTEGER}, 
    organization_number = #{organizationNumber,jdbcType=VARCHAR}, 
    establish_date = #{establishDate,jdbcType=DATE}, 
    domicile_id = #{domicileId,jdbcType=INTEGER}, 
    company_address = #{companyAddress,jdbcType=VARCHAR}, 
    company_address2 = #{companyAddress2,jdbcType=VARCHAR}, 
    city = #{city,jdbcType=VARCHAR}, 
    province = #{province,jdbcType=VARCHAR}, 
    country = #{country,jdbcType=VARCHAR}, 
    reg_city = #{regCity,jdbcType=VARCHAR}, 
    reg_province = #{regProvince,jdbcType=VARCHAR}, 
    reg_country = #{regCountry,jdbcType=VARCHAR}, 
    contact_phone = #{contactPhone,jdbcType=VARCHAR}, 
    post_code = #{postCode,jdbcType=VARCHAR}, 
    fax = #{fax,jdbcType=VARCHAR}, 
    email = #{email,jdbcType=VARCHAR}, 
    website = #{website,jdbcType=VARCHAR}, 
    registered_capital = #{registeredCapital,jdbcType=DECIMAL}, 
    offshore_fund = #{offshoreFund,jdbcType=INTEGER}, 
    company_status = #{companyStatus,jdbcType=INTEGER}, 
    base_currency_crc = #{baseCurrencyCrc,jdbcType=INTEGER}, 
    register_number = #{registerNumber,jdbcType=VARCHAR}, 
    register_status = #{registerStatus,jdbcType=INTEGER}, 
    register_date = #{registerDate,jdbcType=DATE}, 
    register_number_address = #{registerNumberAddress,jdbcType=VARCHAR}, 
    is_member = #{isMember,jdbcType=TINYINT}, 
    join_date = #{joinDate,jdbcType=DATE}, 
    member_type = #{memberType,jdbcType=INTEGER}, 
    fund_category_ori = #{fundCategoryOri,jdbcType=VARCHAR}, 
    business_type = #{businessType,jdbcType=VARCHAR}, 
    nature_business_type = #{natureBusinessType,jdbcType=INTEGER}, 
    capital_paid_rate = #{capitalPaidRate,jdbcType=DECIMAL}, 
    logo = #{logo,jdbcType=VARCHAR}, 
    isvisible = #{isvisible,jdbcType=INTEGER}, 
    paid_capital = #{paidCapital,jdbcType=DECIMAL}, 
    company_asset_size = #{companyAssetSize,jdbcType=INTEGER}, 
    legal_representative = #{legalRepresentative,jdbcType=VARCHAR}, 
    is_qualify = #{isQualify,jdbcType=INTEGER}, 
    get_qualify_method = #{getQualifyMethod,jdbcType=VARCHAR}, 
    employee_cnts = #{employeeCnts,jdbcType=INTEGER}, 
    integrity_info = #{integrityInfo,jdbcType=VARCHAR}, 
    special_tips = #{specialTips,jdbcType=VARCHAR}, 
    amac_link = #{amacLink,jdbcType=VARCHAR}, 
    create_time = #{createTime,jdbcType=TIMESTAMP}, 
    create_by = #{createBy,jdbcType=VARCHAR}, 
    update_time = #{updateTime,jdbcType=TIMESTAMP}, 
    update_by = #{updateBy,jdbcType=VARCHAR}, 
    delete_tag = #{deleteTag,jdbcType=INTEGER}, 
    company_profile = #{companyProfile,jdbcType=LONGVARCHAR}, 
    philosopy = #{philosopy,jdbcType=LONGVARCHAR}, 
    representative_experience = #{representativeExperience,jdbcType=LONGVARCHAR}
  </insert>
  <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.CompanyInfo">
    <!--@mbg.generated-->
    insert into company_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="pCompanyId != null">
        p_company_id,
      </if>
      <if test="companyName != null">
        company_name,
      </if>
      <if test="companyShortName != null">
        company_short_name,
      </if>
      <if test="companyEnglishName != null">
        company_english_name,
      </if>
      <if test="companyType != null">
        company_type,
      </if>
      <if test="organizationNumber != null">
        organization_number,
      </if>
      <if test="establishDate != null">
        establish_date,
      </if>
      <if test="domicileId != null">
        domicile_id,
      </if>
      <if test="companyAddress != null">
        company_address,
      </if>
      <if test="companyAddress2 != null">
        company_address2,
      </if>
      <if test="city != null">
        city,
      </if>
      <if test="province != null">
        province,
      </if>
      <if test="country != null">
        country,
      </if>
      <if test="regCity != null">
        reg_city,
      </if>
      <if test="regProvince != null">
        reg_province,
      </if>
      <if test="regCountry != null">
        reg_country,
      </if>
      <if test="contactPhone != null">
        contact_phone,
      </if>
      <if test="postCode != null">
        post_code,
      </if>
      <if test="fax != null">
        fax,
      </if>
      <if test="email != null">
        email,
      </if>
      <if test="website != null">
        website,
      </if>
      <if test="registeredCapital != null">
        registered_capital,
      </if>
      <if test="offshoreFund != null">
        offshore_fund,
      </if>
      <if test="companyStatus != null">
        company_status,
      </if>
      <if test="baseCurrencyCrc != null">
        base_currency_crc,
      </if>
      <if test="registerNumber != null">
        register_number,
      </if>
      <if test="registerStatus != null">
        register_status,
      </if>
      <if test="registerDate != null">
        register_date,
      </if>
      <if test="registerNumberAddress != null">
        register_number_address,
      </if>
      <if test="isMember != null">
        is_member,
      </if>
      <if test="joinDate != null">
        join_date,
      </if>
      <if test="memberType != null">
        member_type,
      </if>
      <if test="fundCategoryOri != null">
        fund_category_ori,
      </if>
      <if test="businessType != null">
        business_type,
      </if>
      <if test="natureBusinessType != null">
        nature_business_type,
      </if>
      <if test="capitalPaidRate != null">
        capital_paid_rate,
      </if>
      <if test="logo != null">
        logo,
      </if>
      <if test="isvisible != null">
        isvisible,
      </if>
      <if test="paidCapital != null">
        paid_capital,
      </if>
      <if test="companyAssetSize != null">
        company_asset_size,
      </if>
      <if test="legalRepresentative != null">
        legal_representative,
      </if>
      <if test="isQualify != null">
        is_qualify,
      </if>
      <if test="getQualifyMethod != null">
        get_qualify_method,
      </if>
      <if test="employeeCnts != null">
        employee_cnts,
      </if>
      <if test="integrityInfo != null">
        integrity_info,
      </if>
      <if test="specialTips != null">
        special_tips,
      </if>
      <if test="amacLink != null">
        amac_link,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
      <if test="deleteTag != null">
        delete_tag,
      </if>
      <if test="companyProfile != null">
        company_profile,
      </if>
      <if test="philosopy != null">
        philosopy,
      </if>
      <if test="representativeExperience != null">
        representative_experience,
      </if>
    </trim>
    values
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
      </if>
      <if test="pCompanyId != null">
        #{pCompanyId,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyShortName != null">
        #{companyShortName,jdbcType=VARCHAR},
      </if>
      <if test="companyEnglishName != null">
        #{companyEnglishName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        #{companyType,jdbcType=INTEGER},
      </if>
      <if test="organizationNumber != null">
        #{organizationNumber,jdbcType=VARCHAR},
      </if>
      <if test="establishDate != null">
        #{establishDate,jdbcType=DATE},
      </if>
      <if test="domicileId != null">
        #{domicileId,jdbcType=INTEGER},
      </if>
      <if test="companyAddress != null">
        #{companyAddress,jdbcType=VARCHAR},
      </if>
      <if test="companyAddress2 != null">
        #{companyAddress2,jdbcType=VARCHAR},
      </if>
      <if test="city != null">
        #{city,jdbcType=VARCHAR},
      </if>
      <if test="province != null">
        #{province,jdbcType=VARCHAR},
      </if>
      <if test="country != null">
        #{country,jdbcType=VARCHAR},
      </if>
      <if test="regCity != null">
        #{regCity,jdbcType=VARCHAR},
      </if>
      <if test="regProvince != null">
        #{regProvince,jdbcType=VARCHAR},
      </if>
      <if test="regCountry != null">
        #{regCountry,jdbcType=VARCHAR},
      </if>
      <if test="contactPhone != null">
        #{contactPhone,jdbcType=VARCHAR},
      </if>
      <if test="postCode != null">
        #{postCode,jdbcType=VARCHAR},
      </if>
      <if test="fax != null">
        #{fax,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        #{email,jdbcType=VARCHAR},
      </if>
      <if test="website != null">
        #{website,jdbcType=VARCHAR},
      </if>
      <if test="registeredCapital != null">
        #{registeredCapital,jdbcType=DECIMAL},
      </if>
      <if test="offshoreFund != null">
        #{offshoreFund,jdbcType=INTEGER},
      </if>
      <if test="companyStatus != null">
        #{companyStatus,jdbcType=INTEGER},
      </if>
      <if test="baseCurrencyCrc != null">
        #{baseCurrencyCrc,jdbcType=INTEGER},
      </if>
      <if test="registerNumber != null">
        #{registerNumber,jdbcType=VARCHAR},
      </if>
      <if test="registerStatus != null">
        #{registerStatus,jdbcType=INTEGER},
      </if>
      <if test="registerDate != null">
        #{registerDate,jdbcType=DATE},
      </if>
      <if test="registerNumberAddress != null">
        #{registerNumberAddress,jdbcType=VARCHAR},
      </if>
      <if test="isMember != null">
        #{isMember,jdbcType=TINYINT},
      </if>
      <if test="joinDate != null">
        #{joinDate,jdbcType=DATE},
      </if>
      <if test="memberType != null">
        #{memberType,jdbcType=INTEGER},
      </if>
      <if test="fundCategoryOri != null">
        #{fundCategoryOri,jdbcType=VARCHAR},
      </if>
      <if test="businessType != null">
        #{businessType,jdbcType=VARCHAR},
      </if>
      <if test="natureBusinessType != null">
        #{natureBusinessType,jdbcType=INTEGER},
      </if>
      <if test="capitalPaidRate != null">
        #{capitalPaidRate,jdbcType=DECIMAL},
      </if>
      <if test="logo != null">
        #{logo,jdbcType=VARCHAR},
      </if>
      <if test="isvisible != null">
        #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="paidCapital != null">
        #{paidCapital,jdbcType=DECIMAL},
      </if>
      <if test="companyAssetSize != null">
        #{companyAssetSize,jdbcType=INTEGER},
      </if>
      <if test="legalRepresentative != null">
        #{legalRepresentative,jdbcType=VARCHAR},
      </if>
      <if test="isQualify != null">
        #{isQualify,jdbcType=INTEGER},
      </if>
      <if test="getQualifyMethod != null">
        #{getQualifyMethod,jdbcType=VARCHAR},
      </if>
      <if test="employeeCnts != null">
        #{employeeCnts,jdbcType=INTEGER},
      </if>
      <if test="integrityInfo != null">
        #{integrityInfo,jdbcType=VARCHAR},
      </if>
      <if test="specialTips != null">
        #{specialTips,jdbcType=VARCHAR},
      </if>
      <if test="amacLink != null">
        #{amacLink,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="deleteTag != null">
        #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="companyProfile != null">
        #{companyProfile,jdbcType=LONGVARCHAR},
      </if>
      <if test="philosopy != null">
        #{philosopy,jdbcType=LONGVARCHAR},
      </if>
      <if test="representativeExperience != null">
        #{representativeExperience,jdbcType=LONGVARCHAR},
      </if>
    </trim>
    on duplicate key update 
    <trim suffixOverrides=",">
      <if test="id != null">
        id = #{id,jdbcType=VARCHAR},
      </if>
      <if test="pCompanyId != null">
        p_company_id = #{pCompanyId,jdbcType=VARCHAR},
      </if>
      <if test="companyName != null">
        company_name = #{companyName,jdbcType=VARCHAR},
      </if>
      <if test="companyShortName != null">
        company_short_name = #{companyShortName,jdbcType=VARCHAR},
      </if>
      <if test="companyEnglishName != null">
        company_english_name = #{companyEnglishName,jdbcType=VARCHAR},
      </if>
      <if test="companyType != null">
        company_type = #{companyType,jdbcType=INTEGER},
      </if>
      <if test="organizationNumber != null">
        organization_number = #{organizationNumber,jdbcType=VARCHAR},
      </if>
      <if test="establishDate != null">
        establish_date = #{establishDate,jdbcType=DATE},
      </if>
      <if test="domicileId != null">
        domicile_id = #{domicileId,jdbcType=INTEGER},
      </if>
      <if test="companyAddress != null">
        company_address = #{companyAddress,jdbcType=VARCHAR},
      </if>
      <if test="companyAddress2 != null">
        company_address2 = #{companyAddress2,jdbcType=VARCHAR},
      </if>
      <if test="city != null">
        city = #{city,jdbcType=VARCHAR},
      </if>
      <if test="province != null">
        province = #{province,jdbcType=VARCHAR},
      </if>
      <if test="country != null">
        country = #{country,jdbcType=VARCHAR},
      </if>
      <if test="regCity != null">
        reg_city = #{regCity,jdbcType=VARCHAR},
      </if>
      <if test="regProvince != null">
        reg_province = #{regProvince,jdbcType=VARCHAR},
      </if>
      <if test="regCountry != null">
        reg_country = #{regCountry,jdbcType=VARCHAR},
      </if>
      <if test="contactPhone != null">
        contact_phone = #{contactPhone,jdbcType=VARCHAR},
      </if>
      <if test="postCode != null">
        post_code = #{postCode,jdbcType=VARCHAR},
      </if>
      <if test="fax != null">
        fax = #{fax,jdbcType=VARCHAR},
      </if>
      <if test="email != null">
        email = #{email,jdbcType=VARCHAR},
      </if>
      <if test="website != null">
        website = #{website,jdbcType=VARCHAR},
      </if>
      <if test="registeredCapital != null">
        registered_capital = #{registeredCapital,jdbcType=DECIMAL},
      </if>
      <if test="offshoreFund != null">
        offshore_fund = #{offshoreFund,jdbcType=INTEGER},
      </if>
      <if test="companyStatus != null">
        company_status = #{companyStatus,jdbcType=INTEGER},
      </if>
      <if test="baseCurrencyCrc != null">
        base_currency_crc = #{baseCurrencyCrc,jdbcType=INTEGER},
      </if>
      <if test="registerNumber != null">
        register_number = #{registerNumber,jdbcType=VARCHAR},
      </if>
      <if test="registerStatus != null">
        register_status = #{registerStatus,jdbcType=INTEGER},
      </if>
      <if test="registerDate != null">
        register_date = #{registerDate,jdbcType=DATE},
      </if>
      <if test="registerNumberAddress != null">
        register_number_address = #{registerNumberAddress,jdbcType=VARCHAR},
      </if>
      <if test="isMember != null">
        is_member = #{isMember,jdbcType=TINYINT},
      </if>
      <if test="joinDate != null">
        join_date = #{joinDate,jdbcType=DATE},
      </if>
      <if test="memberType != null">
        member_type = #{memberType,jdbcType=INTEGER},
      </if>
      <if test="fundCategoryOri != null">
        fund_category_ori = #{fundCategoryOri,jdbcType=VARCHAR},
      </if>
      <if test="businessType != null">
        business_type = #{businessType,jdbcType=VARCHAR},
      </if>
      <if test="natureBusinessType != null">
        nature_business_type = #{natureBusinessType,jdbcType=INTEGER},
      </if>
      <if test="capitalPaidRate != null">
        capital_paid_rate = #{capitalPaidRate,jdbcType=DECIMAL},
      </if>
      <if test="logo != null">
        logo = #{logo,jdbcType=VARCHAR},
      </if>
      <if test="isvisible != null">
        isvisible = #{isvisible,jdbcType=INTEGER},
      </if>
      <if test="paidCapital != null">
        paid_capital = #{paidCapital,jdbcType=DECIMAL},
      </if>
      <if test="companyAssetSize != null">
        company_asset_size = #{companyAssetSize,jdbcType=INTEGER},
      </if>
      <if test="legalRepresentative != null">
        legal_representative = #{legalRepresentative,jdbcType=VARCHAR},
      </if>
      <if test="isQualify != null">
        is_qualify = #{isQualify,jdbcType=INTEGER},
      </if>
      <if test="getQualifyMethod != null">
        get_qualify_method = #{getQualifyMethod,jdbcType=VARCHAR},
      </if>
      <if test="employeeCnts != null">
        employee_cnts = #{employeeCnts,jdbcType=INTEGER},
      </if>
      <if test="integrityInfo != null">
        integrity_info = #{integrityInfo,jdbcType=VARCHAR},
      </if>
      <if test="specialTips != null">
        special_tips = #{specialTips,jdbcType=VARCHAR},
      </if>
      <if test="amacLink != null">
        amac_link = #{amacLink,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateBy != null">
        update_by = #{updateBy,jdbcType=VARCHAR},
      </if>
      <if test="deleteTag != null">
        delete_tag = #{deleteTag,jdbcType=INTEGER},
      </if>
      <if test="companyProfile != null">
        company_profile = #{companyProfile,jdbcType=LONGVARCHAR},
      </if>
      <if test="philosopy != null">
        philosopy = #{philosopy,jdbcType=LONGVARCHAR},
      </if>
      <if test="representativeExperience != null">
        representative_experience = #{representativeExperience,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
</mapper>