<?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.hzya.frame.plugin.lets.dao.impl.BdCorpDaoImpl">

    <resultMap id="get-BdCorpEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
       <result property="begindate" column="begindate" jdbcType="VARCHAR"/>
           <result property="briefintro" column="briefintro" jdbcType="VARCHAR"/>
           <result property="busibegindate" column="busibegindate" jdbcType="VARCHAR"/>
           <result property="busienddate" column="busienddate" jdbcType="VARCHAR"/>
           <result property="chargedeptcode" column="chargedeptcode" jdbcType="VARCHAR"/>
           <result property="chargedeptname" column="chargedeptname" jdbcType="VARCHAR"/>
           <result property="citycounty" column="citycounty" jdbcType="VARCHAR"/>
           <result property="corptype" column="corptype" jdbcType="VARCHAR"/>
           <result property="countryarea" column="countryarea" jdbcType="VARCHAR"/>
           <result property="createdate" column="createdate" jdbcType="VARCHAR"/>
           <result property="def1" column="def1" jdbcType="VARCHAR"/>
           <result property="def10" column="def10" jdbcType="VARCHAR"/>
           <result property="def11" column="def11" jdbcType="VARCHAR"/>
           <result property="def12" column="def12" jdbcType="VARCHAR"/>
           <result property="def13" column="def13" jdbcType="VARCHAR"/>
           <result property="def14" column="def14" jdbcType="VARCHAR"/>
           <result property="def15" column="def15" jdbcType="VARCHAR"/>
           <result property="def16" column="def16" jdbcType="VARCHAR"/>
           <result property="def17" column="def17" jdbcType="VARCHAR"/>
           <result property="def18" column="def18" jdbcType="VARCHAR"/>
           <result property="def19" column="def19" jdbcType="VARCHAR"/>
           <result property="def2" column="def2" jdbcType="VARCHAR"/>
           <result property="def20" column="def20" jdbcType="VARCHAR"/>
           <result property="def3" column="def3" jdbcType="VARCHAR"/>
           <result property="def4" column="def4" jdbcType="VARCHAR"/>
           <result property="def5" column="def5" jdbcType="VARCHAR"/>
           <result property="def6" column="def6" jdbcType="VARCHAR"/>
           <result property="def7" column="def7" jdbcType="VARCHAR"/>
           <result property="def8" column="def8" jdbcType="VARCHAR"/>
           <result property="def9" column="def9" jdbcType="VARCHAR"/>
           <result property="dr" column="dr" jdbcType="INTEGER"/>
           <result property="ecotype" column="ecotype" jdbcType="VARCHAR"/>
           <result property="email1" column="email1" jdbcType="VARCHAR"/>
           <result property="email2" column="email2" jdbcType="VARCHAR"/>
           <result property="email3" column="email3" jdbcType="VARCHAR"/>
           <result property="enddate" column="enddate" jdbcType="VARCHAR"/>
           <result property="fathercorp" column="fathercorp" jdbcType="VARCHAR"/>
           <result property="fax1" column="fax1" jdbcType="VARCHAR"/>
           <result property="fax2" column="fax2" jdbcType="VARCHAR"/>
           <result property="foreignname" column="foreignname" jdbcType="VARCHAR"/>
           <result property="holdflag" column="holdflag" jdbcType="VARCHAR"/>
           <result property="idnumber" column="idnumber" jdbcType="VARCHAR"/>
           <result property="industry" column="industry" jdbcType="VARCHAR"/>
           <result property="innercode" column="innercode" jdbcType="VARCHAR"/>
           <result property="ishasaccount" column="ishasaccount" jdbcType="VARCHAR"/>
           <result property="isseal" column="isseal" jdbcType="VARCHAR"/>
           <result property="isuseretail" column="isuseretail" jdbcType="VARCHAR"/>
           <result property="isworkingunit" column="isworkingunit" jdbcType="VARCHAR"/>
           <result property="legalbodycode" column="legalbodycode" jdbcType="VARCHAR"/>
           <result property="linkman1" column="linkman1" jdbcType="VARCHAR"/>
           <result property="linkman2" column="linkman2" jdbcType="VARCHAR"/>
           <result property="linkman3" column="linkman3" jdbcType="VARCHAR"/>
           <result property="maxinnercode" column="maxinnercode" jdbcType="VARCHAR"/>
           <result property="memo" column="memo" jdbcType="VARCHAR"/>
           <result property="ownersharerate" column="ownersharerate" jdbcType="NUMERIC"/>
           <result property="phone1" column="phone1" jdbcType="VARCHAR"/>
           <result property="phone2" column="phone2" jdbcType="VARCHAR"/>
           <result property="phone3" column="phone3" jdbcType="VARCHAR"/>
           <result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
           <result property="pkCorpkind" column="pk_corpkind" jdbcType="VARCHAR"/>
           <result property="pkCurrency" column="pk_currency" jdbcType="VARCHAR"/>
           <result property="postaddr" column="postaddr" jdbcType="VARCHAR"/>
           <result property="province" column="province" jdbcType="VARCHAR"/>
           <result property="regcapital" column="regcapital" jdbcType="NUMERIC"/>
           <result property="region" column="region" jdbcType="VARCHAR"/>
           <result property="saleaddr" column="saleaddr" jdbcType="VARCHAR"/>
           <result property="sealeddate" column="sealeddate" jdbcType="VARCHAR"/>
           <result property="showorder" column="showorder" jdbcType="INTEGER"/>
           <result property="taxcode" column="taxcode" jdbcType="VARCHAR"/>
           <result property="taxpayertype" column="taxpayertype" jdbcType="INTEGER"/>
           <result property="tenantNo" column="tenant_no" jdbcType="VARCHAR"/>
           <result property="ts" column="ts" jdbcType="VARCHAR"/>
           <result property="unitcode" column="unitcode" jdbcType="VARCHAR"/>
           <result property="unitdistinction" column="unitdistinction" jdbcType="VARCHAR"/>
           <result property="unitname" column="unitname" jdbcType="VARCHAR"/>
           <result property="unitshortname" column="unitshortname" jdbcType="VARCHAR"/>
           <result property="url" column="url" jdbcType="VARCHAR"/>
           <result property="zipcode" column="zipcode" jdbcType="VARCHAR"/>
        </resultMap>
    <!-- 查询的字段-->
    <sql id = "BdCorpEntity_Base_Column_List">
        begindate
       ,briefintro 
        ,busibegindate 
        ,busienddate 
        ,chargedeptcode 
        ,chargedeptname 
        ,citycounty 
        ,corptype 
        ,countryarea 
        ,createdate 
        ,def1 
        ,def10 
        ,def11 
        ,def12 
        ,def13 
        ,def14 
        ,def15 
        ,def16 
        ,def17 
        ,def18 
        ,def19 
        ,def2 
        ,def20 
        ,def3 
        ,def4 
        ,def5 
        ,def6 
        ,def7 
        ,def8 
        ,def9 
        ,dr 
        ,ecotype 
        ,email1 
        ,email2 
        ,email3 
        ,enddate 
        ,fathercorp 
        ,fax1 
        ,fax2 
        ,foreignname 
        ,holdflag 
        ,idnumber 
        ,industry 
        ,innercode 
        ,ishasaccount 
        ,isseal 
        ,isuseretail 
        ,isworkingunit 
        ,legalbodycode 
        ,linkman1 
        ,linkman2 
        ,linkman3 
        ,maxinnercode 
        ,memo 
        ,ownersharerate 
        ,phone1 
        ,phone2 
        ,phone3 
        ,pk_corp 
        ,pk_corpkind 
        ,pk_currency 
        ,postaddr 
        ,province 
        ,regcapital 
        ,region 
        ,saleaddr 
        ,sealeddate 
        ,showorder 
        ,taxcode 
        ,taxpayertype 
        ,tenant_no 
        ,ts 
        ,unitcode 
        ,unitdistinction 
        ,unitname 
        ,unitshortname 
        ,url 
        ,zipcode 
     </sql>
 <!-- 查询 采用==查询 -->
 <select id="entity_list_base" resultMap="get-BdCorpEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
    select
    <include refid="BdCorpEntity_Base_Column_List" />
    from bd_corp
    <trim prefix="where" prefixOverrides="and"> 
        <if test="begindate != null and begindate != ''"> and begindate = #{begindate} </if>
            <if test="briefintro != null and briefintro != ''"> and briefintro = #{briefintro} </if>
            <if test="busibegindate != null and busibegindate != ''"> and busibegindate = #{busibegindate} </if>
            <if test="busienddate != null and busienddate != ''"> and busienddate = #{busienddate} </if>
            <if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode = #{chargedeptcode} </if>
            <if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname = #{chargedeptname} </if>
            <if test="citycounty != null and citycounty != ''"> and citycounty = #{citycounty} </if>
            <if test="corptype != null and corptype != ''"> and corptype = #{corptype} </if>
            <if test="countryarea != null and countryarea != ''"> and countryarea = #{countryarea} </if>
            <if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
            <if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
            <if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
            <if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
            <if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
            <if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
            <if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
            <if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
            <if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
            <if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
            <if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
            <if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
            <if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
            <if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
            <if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
            <if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
            <if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
            <if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
            <if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
            <if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
            <if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
            <if test="dr != null"> and dr = #{dr} </if>
            <if test="ecotype != null and ecotype != ''"> and ecotype = #{ecotype} </if>
            <if test="email1 != null and email1 != ''"> and email1 = #{email1} </if>
            <if test="email2 != null and email2 != ''"> and email2 = #{email2} </if>
            <if test="email3 != null and email3 != ''"> and email3 = #{email3} </if>
            <if test="enddate != null and enddate != ''"> and enddate = #{enddate} </if>
            <if test="fathercorp != null and fathercorp != ''"> and fathercorp = #{fathercorp} </if>
            <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
            <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
            <if test="foreignname != null and foreignname != ''"> and foreignname = #{foreignname} </if>
            <if test="holdflag != null and holdflag != ''"> and holdflag = #{holdflag} </if>
            <if test="idnumber != null and idnumber != ''"> and idnumber = #{idnumber} </if>
            <if test="industry != null and industry != ''"> and industry = #{industry} </if>
            <if test="innercode != null and innercode != ''"> and innercode = #{innercode} </if>
            <if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount = #{ishasaccount} </if>
            <if test="isseal != null and isseal != ''"> and isseal = #{isseal} </if>
            <if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
            <if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit = #{isworkingunit} </if>
            <if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode = #{legalbodycode} </if>
            <if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
            <if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
            <if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
            <if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode = #{maxinnercode} </if>
            <if test="memo != null and memo != ''"> and memo = #{memo} </if>
            <if test="ownersharerate != null"> and ownersharerate = #{ownersharerate} </if>
            <if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
            <if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
            <if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind = #{pkCorpkind} </if>
            <if test="pkCurrency != null and pkCurrency != ''"> and pk_currency = #{pkCurrency} </if>
            <if test="postaddr != null and postaddr != ''"> and postaddr = #{postaddr} </if>
            <if test="province != null and province != ''"> and province = #{province} </if>
            <if test="regcapital != null"> and regcapital = #{regcapital} </if>
            <if test="region != null and region != ''"> and region = #{region} </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
            <if test="sealeddate != null and sealeddate != ''"> and sealeddate = #{sealeddate} </if>
            <if test="showorder != null"> and showorder = #{showorder} </if>
            <if test="taxcode != null and taxcode != ''"> and taxcode = #{taxcode} </if>
            <if test="taxpayertype != null"> and taxpayertype = #{taxpayertype} </if>
            <if test="tenantNo != null and tenantNo != ''"> and tenant_no = #{tenantNo} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="unitcode != null and unitcode != ''"> and unitcode = #{unitcode} </if>
            <if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction = #{unitdistinction} </if>
            <if test="unitname != null and unitname != ''"> and unitname = #{unitname} </if>
            <if test="unitshortname != null and unitshortname != ''"> and unitshortname = #{unitshortname} </if>
            <if test="url != null and url != ''"> and url = #{url} </if>
            <if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
    </trim>
<!--    <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
    <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
    
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
        select  count(1)   from bd_corp
    <trim prefix="where" prefixOverrides="and"> 
        <if test="begindate != null and begindate != ''"> and begindate = #{begindate} </if>
            <if test="briefintro != null and briefintro != ''"> and briefintro = #{briefintro} </if>
            <if test="busibegindate != null and busibegindate != ''"> and busibegindate = #{busibegindate} </if>
            <if test="busienddate != null and busienddate != ''"> and busienddate = #{busienddate} </if>
            <if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode = #{chargedeptcode} </if>
            <if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname = #{chargedeptname} </if>
            <if test="citycounty != null and citycounty != ''"> and citycounty = #{citycounty} </if>
            <if test="corptype != null and corptype != ''"> and corptype = #{corptype} </if>
            <if test="countryarea != null and countryarea != ''"> and countryarea = #{countryarea} </if>
            <if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
            <if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
            <if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
            <if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
            <if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
            <if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
            <if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
            <if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
            <if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
            <if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
            <if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
            <if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
            <if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
            <if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
            <if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
            <if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
            <if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
            <if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
            <if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
            <if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
            <if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
            <if test="dr != null"> and dr = #{dr} </if>
            <if test="ecotype != null and ecotype != ''"> and ecotype = #{ecotype} </if>
            <if test="email1 != null and email1 != ''"> and email1 = #{email1} </if>
            <if test="email2 != null and email2 != ''"> and email2 = #{email2} </if>
            <if test="email3 != null and email3 != ''"> and email3 = #{email3} </if>
            <if test="enddate != null and enddate != ''"> and enddate = #{enddate} </if>
            <if test="fathercorp != null and fathercorp != ''"> and fathercorp = #{fathercorp} </if>
            <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
            <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
            <if test="foreignname != null and foreignname != ''"> and foreignname = #{foreignname} </if>
            <if test="holdflag != null and holdflag != ''"> and holdflag = #{holdflag} </if>
            <if test="idnumber != null and idnumber != ''"> and idnumber = #{idnumber} </if>
            <if test="industry != null and industry != ''"> and industry = #{industry} </if>
            <if test="innercode != null and innercode != ''"> and innercode = #{innercode} </if>
            <if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount = #{ishasaccount} </if>
            <if test="isseal != null and isseal != ''"> and isseal = #{isseal} </if>
            <if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
            <if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit = #{isworkingunit} </if>
            <if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode = #{legalbodycode} </if>
            <if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
            <if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
            <if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
            <if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode = #{maxinnercode} </if>
            <if test="memo != null and memo != ''"> and memo = #{memo} </if>
            <if test="ownersharerate != null"> and ownersharerate = #{ownersharerate} </if>
            <if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
            <if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
            <if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind = #{pkCorpkind} </if>
            <if test="pkCurrency != null and pkCurrency != ''"> and pk_currency = #{pkCurrency} </if>
            <if test="postaddr != null and postaddr != ''"> and postaddr = #{postaddr} </if>
            <if test="province != null and province != ''"> and province = #{province} </if>
            <if test="regcapital != null"> and regcapital = #{regcapital} </if>
            <if test="region != null and region != ''"> and region = #{region} </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
            <if test="sealeddate != null and sealeddate != ''"> and sealeddate = #{sealeddate} </if>
            <if test="showorder != null"> and showorder = #{showorder} </if>
            <if test="taxcode != null and taxcode != ''"> and taxcode = #{taxcode} </if>
            <if test="taxpayertype != null"> and taxpayertype = #{taxpayertype} </if>
            <if test="tenantNo != null and tenantNo != ''"> and tenant_no = #{tenantNo} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="unitcode != null and unitcode != ''"> and unitcode = #{unitcode} </if>
            <if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction = #{unitdistinction} </if>
            <if test="unitname != null and unitname != ''"> and unitname = #{unitname} </if>
            <if test="unitshortname != null and unitshortname != ''"> and unitshortname = #{unitshortname} </if>
            <if test="url != null and url != ''"> and url = #{url} </if>
            <if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
            and sts='Y'
    </trim>
    <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
    <if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
    </select>

    <!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdCorpEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
    select
    <include refid="BdCorpEntity_Base_Column_List" />
    from bd_corp
    <trim prefix="where" prefixOverrides="and"> 
        <if test="begindate != null and begindate != ''"> and begindate like concat('%',#{begindate},'%') </if>
            <if test="briefintro != null and briefintro != ''"> and briefintro like concat('%',#{briefintro},'%') </if>
            <if test="busibegindate != null and busibegindate != ''"> and busibegindate like concat('%',#{busibegindate},'%') </if>
            <if test="busienddate != null and busienddate != ''"> and busienddate like concat('%',#{busienddate},'%') </if>
            <if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode like concat('%',#{chargedeptcode},'%') </if>
            <if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname like concat('%',#{chargedeptname},'%') </if>
            <if test="citycounty != null and citycounty != ''"> and citycounty like concat('%',#{citycounty},'%') </if>
            <if test="corptype != null and corptype != ''"> and corptype like concat('%',#{corptype},'%') </if>
            <if test="countryarea != null and countryarea != ''"> and countryarea like concat('%',#{countryarea},'%') </if>
            <if test="createdate != null and createdate != ''"> and createdate like concat('%',#{createdate},'%') </if>
            <if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
            <if test="def10 != null and def10 != ''"> and def10 like concat('%',#{def10},'%') </if>
            <if test="def11 != null and def11 != ''"> and def11 like concat('%',#{def11},'%') </if>
            <if test="def12 != null and def12 != ''"> and def12 like concat('%',#{def12},'%') </if>
            <if test="def13 != null and def13 != ''"> and def13 like concat('%',#{def13},'%') </if>
            <if test="def14 != null and def14 != ''"> and def14 like concat('%',#{def14},'%') </if>
            <if test="def15 != null and def15 != ''"> and def15 like concat('%',#{def15},'%') </if>
            <if test="def16 != null and def16 != ''"> and def16 like concat('%',#{def16},'%') </if>
            <if test="def17 != null and def17 != ''"> and def17 like concat('%',#{def17},'%') </if>
            <if test="def18 != null and def18 != ''"> and def18 like concat('%',#{def18},'%') </if>
            <if test="def19 != null and def19 != ''"> and def19 like concat('%',#{def19},'%') </if>
            <if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
            <if test="def20 != null and def20 != ''"> and def20 like concat('%',#{def20},'%') </if>
            <if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
            <if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
            <if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
            <if test="def6 != null and def6 != ''"> and def6 like concat('%',#{def6},'%') </if>
            <if test="def7 != null and def7 != ''"> and def7 like concat('%',#{def7},'%') </if>
            <if test="def8 != null and def8 != ''"> and def8 like concat('%',#{def8},'%') </if>
            <if test="def9 != null and def9 != ''"> and def9 like concat('%',#{def9},'%') </if>
            <if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
            <if test="ecotype != null and ecotype != ''"> and ecotype like concat('%',#{ecotype},'%') </if>
            <if test="email1 != null and email1 != ''"> and email1 like concat('%',#{email1},'%') </if>
            <if test="email2 != null and email2 != ''"> and email2 like concat('%',#{email2},'%') </if>
            <if test="email3 != null and email3 != ''"> and email3 like concat('%',#{email3},'%') </if>
            <if test="enddate != null and enddate != ''"> and enddate like concat('%',#{enddate},'%') </if>
            <if test="fathercorp != null and fathercorp != ''"> and fathercorp like concat('%',#{fathercorp},'%') </if>
            <if test="fax1 != null and fax1 != ''"> and fax1 like concat('%',#{fax1},'%') </if>
            <if test="fax2 != null and fax2 != ''"> and fax2 like concat('%',#{fax2},'%') </if>
            <if test="foreignname != null and foreignname != ''"> and foreignname like concat('%',#{foreignname},'%') </if>
            <if test="holdflag != null and holdflag != ''"> and holdflag like concat('%',#{holdflag},'%') </if>
            <if test="idnumber != null and idnumber != ''"> and idnumber like concat('%',#{idnumber},'%') </if>
            <if test="industry != null and industry != ''"> and industry like concat('%',#{industry},'%') </if>
            <if test="innercode != null and innercode != ''"> and innercode like concat('%',#{innercode},'%') </if>
            <if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount like concat('%',#{ishasaccount},'%') </if>
            <if test="isseal != null and isseal != ''"> and isseal like concat('%',#{isseal},'%') </if>
            <if test="isuseretail != null and isuseretail != ''"> and isuseretail like concat('%',#{isuseretail},'%') </if>
            <if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit like concat('%',#{isworkingunit},'%') </if>
            <if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode like concat('%',#{legalbodycode},'%') </if>
            <if test="linkman1 != null and linkman1 != ''"> and linkman1 like concat('%',#{linkman1},'%') </if>
            <if test="linkman2 != null and linkman2 != ''"> and linkman2 like concat('%',#{linkman2},'%') </if>
            <if test="linkman3 != null and linkman3 != ''"> and linkman3 like concat('%',#{linkman3},'%') </if>
            <if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode like concat('%',#{maxinnercode},'%') </if>
            <if test="memo != null and memo != ''"> and memo like concat('%',#{memo},'%') </if>
            <if test="ownersharerate != null"> and ownersharerate like concat('%',#{ownersharerate},'%') </if>
            <if test="phone1 != null and phone1 != ''"> and phone1 like concat('%',#{phone1},'%') </if>
            <if test="phone2 != null and phone2 != ''"> and phone2 like concat('%',#{phone2},'%') </if>
            <if test="phone3 != null and phone3 != ''"> and phone3 like concat('%',#{phone3},'%') </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
            <if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind like concat('%',#{pkCorpkind},'%') </if>
            <if test="pkCurrency != null and pkCurrency != ''"> and pk_currency like concat('%',#{pkCurrency},'%') </if>
            <if test="postaddr != null and postaddr != ''"> and postaddr like concat('%',#{postaddr},'%') </if>
            <if test="province != null and province != ''"> and province like concat('%',#{province},'%') </if>
            <if test="regcapital != null"> and regcapital like concat('%',#{regcapital},'%') </if>
            <if test="region != null and region != ''"> and region like concat('%',#{region},'%') </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr like concat('%',#{saleaddr},'%') </if>
            <if test="sealeddate != null and sealeddate != ''"> and sealeddate like concat('%',#{sealeddate},'%') </if>
            <if test="showorder != null"> and showorder like concat('%',#{showorder},'%') </if>
            <if test="taxcode != null and taxcode != ''"> and taxcode like concat('%',#{taxcode},'%') </if>
            <if test="taxpayertype != null"> and taxpayertype like concat('%',#{taxpayertype},'%') </if>
            <if test="tenantNo != null and tenantNo != ''"> and tenant_no like concat('%',#{tenantNo},'%') </if>
            <if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
            <if test="unitcode != null and unitcode != ''"> and unitcode like concat('%',#{unitcode},'%') </if>
            <if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction like concat('%',#{unitdistinction},'%') </if>
            <if test="unitname != null and unitname != ''"> and unitname like concat('%',#{unitname},'%') </if>
            <if test="unitshortname != null and unitshortname != ''"> and unitshortname like concat('%',#{unitshortname},'%') </if>
            <if test="url != null and url != ''"> and url like concat('%',#{url},'%') </if>
            <if test="zipcode != null and zipcode != ''"> and zipcode like concat('%',#{zipcode},'%') </if>
            and sts='Y'
    </trim>
    <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
    <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>

<!-- 查询列表 字段采用or格式 -->
<select id="BdCorpentity_list_or" resultMap="get-BdCorpEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
    select
    <include refid="BdCorpEntity_Base_Column_List" />
    from bd_corp
    <trim prefix="where" prefixOverrides="and"> 
         <if test="begindate != null and begindate != ''"> or begindate = #{begindate} </if>
             <if test="briefintro != null and briefintro != ''"> or briefintro = #{briefintro} </if>
             <if test="busibegindate != null and busibegindate != ''"> or busibegindate = #{busibegindate} </if>
             <if test="busienddate != null and busienddate != ''"> or busienddate = #{busienddate} </if>
             <if test="chargedeptcode != null and chargedeptcode != ''"> or chargedeptcode = #{chargedeptcode} </if>
             <if test="chargedeptname != null and chargedeptname != ''"> or chargedeptname = #{chargedeptname} </if>
             <if test="citycounty != null and citycounty != ''"> or citycounty = #{citycounty} </if>
             <if test="corptype != null and corptype != ''"> or corptype = #{corptype} </if>
             <if test="countryarea != null and countryarea != ''"> or countryarea = #{countryarea} </if>
             <if test="createdate != null and createdate != ''"> or createdate = #{createdate} </if>
             <if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
             <if test="def10 != null and def10 != ''"> or def10 = #{def10} </if>
             <if test="def11 != null and def11 != ''"> or def11 = #{def11} </if>
             <if test="def12 != null and def12 != ''"> or def12 = #{def12} </if>
             <if test="def13 != null and def13 != ''"> or def13 = #{def13} </if>
             <if test="def14 != null and def14 != ''"> or def14 = #{def14} </if>
             <if test="def15 != null and def15 != ''"> or def15 = #{def15} </if>
             <if test="def16 != null and def16 != ''"> or def16 = #{def16} </if>
             <if test="def17 != null and def17 != ''"> or def17 = #{def17} </if>
             <if test="def18 != null and def18 != ''"> or def18 = #{def18} </if>
             <if test="def19 != null and def19 != ''"> or def19 = #{def19} </if>
             <if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
             <if test="def20 != null and def20 != ''"> or def20 = #{def20} </if>
             <if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
             <if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
             <if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
             <if test="def6 != null and def6 != ''"> or def6 = #{def6} </if>
             <if test="def7 != null and def7 != ''"> or def7 = #{def7} </if>
             <if test="def8 != null and def8 != ''"> or def8 = #{def8} </if>
             <if test="def9 != null and def9 != ''"> or def9 = #{def9} </if>
             <if test="dr != null"> or dr = #{dr} </if>
             <if test="ecotype != null and ecotype != ''"> or ecotype = #{ecotype} </if>
             <if test="email1 != null and email1 != ''"> or email1 = #{email1} </if>
             <if test="email2 != null and email2 != ''"> or email2 = #{email2} </if>
             <if test="email3 != null and email3 != ''"> or email3 = #{email3} </if>
             <if test="enddate != null and enddate != ''"> or enddate = #{enddate} </if>
             <if test="fathercorp != null and fathercorp != ''"> or fathercorp = #{fathercorp} </if>
             <if test="fax1 != null and fax1 != ''"> or fax1 = #{fax1} </if>
             <if test="fax2 != null and fax2 != ''"> or fax2 = #{fax2} </if>
             <if test="foreignname != null and foreignname != ''"> or foreignname = #{foreignname} </if>
             <if test="holdflag != null and holdflag != ''"> or holdflag = #{holdflag} </if>
             <if test="idnumber != null and idnumber != ''"> or idnumber = #{idnumber} </if>
             <if test="industry != null and industry != ''"> or industry = #{industry} </if>
             <if test="innercode != null and innercode != ''"> or innercode = #{innercode} </if>
             <if test="ishasaccount != null and ishasaccount != ''"> or ishasaccount = #{ishasaccount} </if>
             <if test="isseal != null and isseal != ''"> or isseal = #{isseal} </if>
             <if test="isuseretail != null and isuseretail != ''"> or isuseretail = #{isuseretail} </if>
             <if test="isworkingunit != null and isworkingunit != ''"> or isworkingunit = #{isworkingunit} </if>
             <if test="legalbodycode != null and legalbodycode != ''"> or legalbodycode = #{legalbodycode} </if>
             <if test="linkman1 != null and linkman1 != ''"> or linkman1 = #{linkman1} </if>
             <if test="linkman2 != null and linkman2 != ''"> or linkman2 = #{linkman2} </if>
             <if test="linkman3 != null and linkman3 != ''"> or linkman3 = #{linkman3} </if>
             <if test="maxinnercode != null and maxinnercode != ''"> or maxinnercode = #{maxinnercode} </if>
             <if test="memo != null and memo != ''"> or memo = #{memo} </if>
             <if test="ownersharerate != null"> or ownersharerate = #{ownersharerate} </if>
             <if test="phone1 != null and phone1 != ''"> or phone1 = #{phone1} </if>
             <if test="phone2 != null and phone2 != ''"> or phone2 = #{phone2} </if>
             <if test="phone3 != null and phone3 != ''"> or phone3 = #{phone3} </if>
             <if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
             <if test="pkCorpkind != null and pkCorpkind != ''"> or pk_corpkind = #{pkCorpkind} </if>
             <if test="pkCurrency != null and pkCurrency != ''"> or pk_currency = #{pkCurrency} </if>
             <if test="postaddr != null and postaddr != ''"> or postaddr = #{postaddr} </if>
             <if test="province != null and province != ''"> or province = #{province} </if>
             <if test="regcapital != null"> or regcapital = #{regcapital} </if>
             <if test="region != null and region != ''"> or region = #{region} </if>
             <if test="saleaddr != null and saleaddr != ''"> or saleaddr = #{saleaddr} </if>
             <if test="sealeddate != null and sealeddate != ''"> or sealeddate = #{sealeddate} </if>
             <if test="showorder != null"> or showorder = #{showorder} </if>
             <if test="taxcode != null and taxcode != ''"> or taxcode = #{taxcode} </if>
             <if test="taxpayertype != null"> or taxpayertype = #{taxpayertype} </if>
             <if test="tenantNo != null and tenantNo != ''"> or tenant_no = #{tenantNo} </if>
             <if test="ts != null and ts != ''"> or ts = #{ts} </if>
             <if test="unitcode != null and unitcode != ''"> or unitcode = #{unitcode} </if>
             <if test="unitdistinction != null and unitdistinction != ''"> or unitdistinction = #{unitdistinction} </if>
             <if test="unitname != null and unitname != ''"> or unitname = #{unitname} </if>
             <if test="unitshortname != null and unitshortname != ''"> or unitshortname = #{unitshortname} </if>
             <if test="url != null and url != ''"> or url = #{url} </if>
             <if test="zipcode != null and zipcode != ''"> or zipcode = #{zipcode} </if>
            and sts='Y'
    </trim>
    <if test=" sort == null or sort == ''.toString()  "> order by sorts asc</if>
    <if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>

<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" keyProperty="pkCorp" useGeneratedKeys="true">
    insert into bd_corp(
  <trim suffix="" suffixOverrides=",">
       <if test="begindate != null and begindate != ''"> begindate , </if>
            <if test="briefintro != null and briefintro != ''"> briefintro , </if>
            <if test="busibegindate != null and busibegindate != ''"> busibegindate , </if>
            <if test="busienddate != null and busienddate != ''"> busienddate , </if>
            <if test="chargedeptcode != null and chargedeptcode != ''"> chargedeptcode , </if>
            <if test="chargedeptname != null and chargedeptname != ''"> chargedeptname , </if>
            <if test="citycounty != null and citycounty != ''"> citycounty , </if>
            <if test="corptype != null and corptype != ''"> corptype , </if>
            <if test="countryarea != null and countryarea != ''"> countryarea , </if>
            <if test="createdate != null and createdate != ''"> createdate , </if>
            <if test="def1 != null and def1 != ''"> def1 , </if>
            <if test="def10 != null and def10 != ''"> def10 , </if>
            <if test="def11 != null and def11 != ''"> def11 , </if>
            <if test="def12 != null and def12 != ''"> def12 , </if>
            <if test="def13 != null and def13 != ''"> def13 , </if>
            <if test="def14 != null and def14 != ''"> def14 , </if>
            <if test="def15 != null and def15 != ''"> def15 , </if>
            <if test="def16 != null and def16 != ''"> def16 , </if>
            <if test="def17 != null and def17 != ''"> def17 , </if>
            <if test="def18 != null and def18 != ''"> def18 , </if>
            <if test="def19 != null and def19 != ''"> def19 , </if>
            <if test="def2 != null and def2 != ''"> def2 , </if>
            <if test="def20 != null and def20 != ''"> def20 , </if>
            <if test="def3 != null and def3 != ''"> def3 , </if>
            <if test="def4 != null and def4 != ''"> def4 , </if>
            <if test="def5 != null and def5 != ''"> def5 , </if>
            <if test="def6 != null and def6 != ''"> def6 , </if>
            <if test="def7 != null and def7 != ''"> def7 , </if>
            <if test="def8 != null and def8 != ''"> def8 , </if>
            <if test="def9 != null and def9 != ''"> def9 , </if>
            <if test="dr != null"> dr , </if>
            <if test="ecotype != null and ecotype != ''"> ecotype , </if>
            <if test="email1 != null and email1 != ''"> email1 , </if>
            <if test="email2 != null and email2 != ''"> email2 , </if>
            <if test="email3 != null and email3 != ''"> email3 , </if>
            <if test="enddate != null and enddate != ''"> enddate , </if>
            <if test="fathercorp != null and fathercorp != ''"> fathercorp , </if>
            <if test="fax1 != null and fax1 != ''"> fax1 , </if>
            <if test="fax2 != null and fax2 != ''"> fax2 , </if>
            <if test="foreignname != null and foreignname != ''"> foreignname , </if>
            <if test="holdflag != null and holdflag != ''"> holdflag , </if>
            <if test="idnumber != null and idnumber != ''"> idnumber , </if>
            <if test="industry != null and industry != ''"> industry , </if>
            <if test="innercode != null and innercode != ''"> innercode , </if>
            <if test="ishasaccount != null and ishasaccount != ''"> ishasaccount , </if>
            <if test="isseal != null and isseal != ''"> isseal , </if>
            <if test="isuseretail != null and isuseretail != ''"> isuseretail , </if>
            <if test="isworkingunit != null and isworkingunit != ''"> isworkingunit , </if>
            <if test="legalbodycode != null and legalbodycode != ''"> legalbodycode , </if>
            <if test="linkman1 != null and linkman1 != ''"> linkman1 , </if>
            <if test="linkman2 != null and linkman2 != ''"> linkman2 , </if>
            <if test="linkman3 != null and linkman3 != ''"> linkman3 , </if>
            <if test="maxinnercode != null and maxinnercode != ''"> maxinnercode , </if>
            <if test="memo != null and memo != ''"> memo , </if>
            <if test="ownersharerate != null"> ownersharerate , </if>
            <if test="phone1 != null and phone1 != ''"> phone1 , </if>
            <if test="phone2 != null and phone2 != ''"> phone2 , </if>
            <if test="phone3 != null and phone3 != ''"> phone3 , </if>
            <if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>
            <if test="pkCorpkind != null and pkCorpkind != ''"> pk_corpkind , </if>
            <if test="pkCurrency != null and pkCurrency != ''"> pk_currency , </if>
            <if test="postaddr != null and postaddr != ''"> postaddr , </if>
            <if test="province != null and province != ''"> province , </if>
            <if test="regcapital != null"> regcapital , </if>
            <if test="region != null and region != ''"> region , </if>
            <if test="saleaddr != null and saleaddr != ''"> saleaddr , </if>
            <if test="sealeddate != null and sealeddate != ''"> sealeddate , </if>
            <if test="showorder != null"> showorder , </if>
            <if test="taxcode != null and taxcode != ''"> taxcode , </if>
            <if test="taxpayertype != null"> taxpayertype , </if>
            <if test="tenantNo != null and tenantNo != ''"> tenant_no , </if>
            <if test="ts != null and ts != ''"> ts , </if>
            <if test="unitcode != null and unitcode != ''"> unitcode , </if>
            <if test="unitdistinction != null and unitdistinction != ''"> unitdistinction , </if>
            <if test="unitname != null and unitname != ''"> unitname , </if>
            <if test="unitshortname != null and unitshortname != ''"> unitshortname , </if>
            <if test="url != null and url != ''"> url , </if>
            <if test="zipcode != null and zipcode != ''"> zipcode , </if>
            <if test="sorts == null ">sorts,</if>
    <if test="sts == null ">sts,</if>
  </trim>
  )values(
 <trim suffix="" suffixOverrides=",">
       <if test="begindate != null and begindate != ''"> #{begindate} ,</if>
            <if test="briefintro != null and briefintro != ''"> #{briefintro} ,</if>
            <if test="busibegindate != null and busibegindate != ''"> #{busibegindate} ,</if>
            <if test="busienddate != null and busienddate != ''"> #{busienddate} ,</if>
            <if test="chargedeptcode != null and chargedeptcode != ''"> #{chargedeptcode} ,</if>
            <if test="chargedeptname != null and chargedeptname != ''"> #{chargedeptname} ,</if>
            <if test="citycounty != null and citycounty != ''"> #{citycounty} ,</if>
            <if test="corptype != null and corptype != ''"> #{corptype} ,</if>
            <if test="countryarea != null and countryarea != ''"> #{countryarea} ,</if>
            <if test="createdate != null and createdate != ''"> #{createdate} ,</if>
            <if test="def1 != null and def1 != ''"> #{def1} ,</if>
            <if test="def10 != null and def10 != ''"> #{def10} ,</if>
            <if test="def11 != null and def11 != ''"> #{def11} ,</if>
            <if test="def12 != null and def12 != ''"> #{def12} ,</if>
            <if test="def13 != null and def13 != ''"> #{def13} ,</if>
            <if test="def14 != null and def14 != ''"> #{def14} ,</if>
            <if test="def15 != null and def15 != ''"> #{def15} ,</if>
            <if test="def16 != null and def16 != ''"> #{def16} ,</if>
            <if test="def17 != null and def17 != ''"> #{def17} ,</if>
            <if test="def18 != null and def18 != ''"> #{def18} ,</if>
            <if test="def19 != null and def19 != ''"> #{def19} ,</if>
            <if test="def2 != null and def2 != ''"> #{def2} ,</if>
            <if test="def20 != null and def20 != ''"> #{def20} ,</if>
            <if test="def3 != null and def3 != ''"> #{def3} ,</if>
            <if test="def4 != null and def4 != ''"> #{def4} ,</if>
            <if test="def5 != null and def5 != ''"> #{def5} ,</if>
            <if test="def6 != null and def6 != ''"> #{def6} ,</if>
            <if test="def7 != null and def7 != ''"> #{def7} ,</if>
            <if test="def8 != null and def8 != ''"> #{def8} ,</if>
            <if test="def9 != null and def9 != ''"> #{def9} ,</if>
            <if test="dr != null"> #{dr} ,</if>
            <if test="ecotype != null and ecotype != ''"> #{ecotype} ,</if>
            <if test="email1 != null and email1 != ''"> #{email1} ,</if>
            <if test="email2 != null and email2 != ''"> #{email2} ,</if>
            <if test="email3 != null and email3 != ''"> #{email3} ,</if>
            <if test="enddate != null and enddate != ''"> #{enddate} ,</if>
            <if test="fathercorp != null and fathercorp != ''"> #{fathercorp} ,</if>
            <if test="fax1 != null and fax1 != ''"> #{fax1} ,</if>
            <if test="fax2 != null and fax2 != ''"> #{fax2} ,</if>
            <if test="foreignname != null and foreignname != ''"> #{foreignname} ,</if>
            <if test="holdflag != null and holdflag != ''"> #{holdflag} ,</if>
            <if test="idnumber != null and idnumber != ''"> #{idnumber} ,</if>
            <if test="industry != null and industry != ''"> #{industry} ,</if>
            <if test="innercode != null and innercode != ''"> #{innercode} ,</if>
            <if test="ishasaccount != null and ishasaccount != ''"> #{ishasaccount} ,</if>
            <if test="isseal != null and isseal != ''"> #{isseal} ,</if>
            <if test="isuseretail != null and isuseretail != ''"> #{isuseretail} ,</if>
            <if test="isworkingunit != null and isworkingunit != ''"> #{isworkingunit} ,</if>
            <if test="legalbodycode != null and legalbodycode != ''"> #{legalbodycode} ,</if>
            <if test="linkman1 != null and linkman1 != ''"> #{linkman1} ,</if>
            <if test="linkman2 != null and linkman2 != ''"> #{linkman2} ,</if>
            <if test="linkman3 != null and linkman3 != ''"> #{linkman3} ,</if>
            <if test="maxinnercode != null and maxinnercode != ''"> #{maxinnercode} ,</if>
            <if test="memo != null and memo != ''"> #{memo} ,</if>
            <if test="ownersharerate != null"> #{ownersharerate} ,</if>
            <if test="phone1 != null and phone1 != ''"> #{phone1} ,</if>
            <if test="phone2 != null and phone2 != ''"> #{phone2} ,</if>
            <if test="phone3 != null and phone3 != ''"> #{phone3} ,</if>
            <if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
            <if test="pkCorpkind != null and pkCorpkind != ''"> #{pkCorpkind} ,</if>
            <if test="pkCurrency != null and pkCurrency != ''"> #{pkCurrency} ,</if>
            <if test="postaddr != null and postaddr != ''"> #{postaddr} ,</if>
            <if test="province != null and province != ''"> #{province} ,</if>
            <if test="regcapital != null"> #{regcapital} ,</if>
            <if test="region != null and region != ''"> #{region} ,</if>
            <if test="saleaddr != null and saleaddr != ''"> #{saleaddr} ,</if>
            <if test="sealeddate != null and sealeddate != ''"> #{sealeddate} ,</if>
            <if test="showorder != null"> #{showorder} ,</if>
            <if test="taxcode != null and taxcode != ''"> #{taxcode} ,</if>
            <if test="taxpayertype != null"> #{taxpayertype} ,</if>
            <if test="tenantNo != null and tenantNo != ''"> #{tenantNo} ,</if>
            <if test="ts != null and ts != ''"> #{ts} ,</if>
            <if test="unitcode != null and unitcode != ''"> #{unitcode} ,</if>
            <if test="unitdistinction != null and unitdistinction != ''"> #{unitdistinction} ,</if>
            <if test="unitname != null and unitname != ''"> #{unitname} ,</if>
            <if test="unitshortname != null and unitshortname != ''"> #{unitshortname} ,</if>
            <if test="url != null and url != ''"> #{url} ,</if>
            <if test="zipcode != null and zipcode != ''"> #{zipcode} ,</if>
            <if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_corp a WHERE a.sts = 'Y' ),</if>
    <if test="sts == null ">'Y',</if>
  </trim>
  )  
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkCorp" useGeneratedKeys="true">
  insert into bd_corp(begindate, briefintro, busibegindate, busienddate, chargedeptcode, chargedeptname, citycounty, corptype, countryarea, createdate, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, ecotype, email1, email2, email3, enddate, fathercorp, fax1, fax2, foreignname, holdflag, idnumber, industry, innercode, ishasaccount, isseal, isuseretail, isworkingunit, legalbodycode, linkman1, linkman2, linkman3, maxinnercode, memo, ownersharerate, phone1, phone2, phone3, pk_corpkind, pk_currency, postaddr, province, regcapital, region, saleaddr, sealeddate, showorder, taxcode, taxpayertype, tenant_no, ts, unitcode, unitdistinction, unitname, unitshortname, url, zipcode,  sts) 
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.begindate},#{entity.briefintro},#{entity.busibegindate},#{entity.busienddate},#{entity.chargedeptcode},#{entity.chargedeptname},#{entity.citycounty},#{entity.corptype},#{entity.countryarea},#{entity.createdate},#{entity.def1},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def2},#{entity.def20},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.dr},#{entity.ecotype},#{entity.email1},#{entity.email2},#{entity.email3},#{entity.enddate},#{entity.fathercorp},#{entity.fax1},#{entity.fax2},#{entity.foreignname},#{entity.holdflag},#{entity.idnumber},#{entity.industry},#{entity.innercode},#{entity.ishasaccount},#{entity.isseal},#{entity.isuseretail},#{entity.isworkingunit},#{entity.legalbodycode},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.maxinnercode},#{entity.memo},#{entity.ownersharerate},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkCorpkind},#{entity.pkCurrency},#{entity.postaddr},#{entity.province},#{entity.regcapital},#{entity.region},#{entity.saleaddr},#{entity.sealeddate},#{entity.showorder},#{entity.taxcode},#{entity.taxpayertype},#{entity.tenantNo},#{entity.ts},#{entity.unitcode},#{entity.unitdistinction},#{entity.unitname},#{entity.unitshortname},#{entity.url},#{entity.zipcode}, 'Y')
    </foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkCorp" useGeneratedKeys="true">
    insert into bd_corp(begindate, briefintro, busibegindate, busienddate, chargedeptcode, chargedeptname, citycounty, corptype, countryarea, createdate, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, ecotype, email1, email2, email3, enddate, fathercorp, fax1, fax2, foreignname, holdflag, idnumber, industry, innercode, ishasaccount, isseal, isuseretail, isworkingunit, legalbodycode, linkman1, linkman2, linkman3, maxinnercode, memo, ownersharerate, phone1, phone2, phone3, pk_corpkind, pk_currency, postaddr, province, regcapital, region, saleaddr, sealeddate, showorder, taxcode, taxpayertype, tenant_no, ts, unitcode, unitdistinction, unitname, unitshortname, url, zipcode)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.begindate},#{entity.briefintro},#{entity.busibegindate},#{entity.busienddate},#{entity.chargedeptcode},#{entity.chargedeptname},#{entity.citycounty},#{entity.corptype},#{entity.countryarea},#{entity.createdate},#{entity.def1},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def2},#{entity.def20},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.dr},#{entity.ecotype},#{entity.email1},#{entity.email2},#{entity.email3},#{entity.enddate},#{entity.fathercorp},#{entity.fax1},#{entity.fax2},#{entity.foreignname},#{entity.holdflag},#{entity.idnumber},#{entity.industry},#{entity.innercode},#{entity.ishasaccount},#{entity.isseal},#{entity.isuseretail},#{entity.isworkingunit},#{entity.legalbodycode},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.maxinnercode},#{entity.memo},#{entity.ownersharerate},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkCorpkind},#{entity.pkCurrency},#{entity.postaddr},#{entity.province},#{entity.regcapital},#{entity.region},#{entity.saleaddr},#{entity.sealeddate},#{entity.showorder},#{entity.taxcode},#{entity.taxpayertype},#{entity.tenantNo},#{entity.ts},#{entity.unitcode},#{entity.unitdistinction},#{entity.unitname},#{entity.unitshortname},#{entity.url},#{entity.zipcode})
    </foreach>
    on duplicate key update
    begindate = values(begindate),
    briefintro = values(briefintro),
    busibegindate = values(busibegindate),
    busienddate = values(busienddate),
    chargedeptcode = values(chargedeptcode),
    chargedeptname = values(chargedeptname),
    citycounty = values(citycounty),
    corptype = values(corptype),
    countryarea = values(countryarea),
    createdate = values(createdate),
    def1 = values(def1),
    def10 = values(def10),
    def11 = values(def11),
    def12 = values(def12),
    def13 = values(def13),
    def14 = values(def14),
    def15 = values(def15),
    def16 = values(def16),
    def17 = values(def17),
    def18 = values(def18),
    def19 = values(def19),
    def2 = values(def2),
    def20 = values(def20),
    def3 = values(def3),
    def4 = values(def4),
    def5 = values(def5),
    def6 = values(def6),
    def7 = values(def7),
    def8 = values(def8),
    def9 = values(def9),
    dr = values(dr),
    ecotype = values(ecotype),
    email1 = values(email1),
    email2 = values(email2),
    email3 = values(email3),
    enddate = values(enddate),
    fathercorp = values(fathercorp),
    fax1 = values(fax1),
    fax2 = values(fax2),
    foreignname = values(foreignname),
    holdflag = values(holdflag),
    idnumber = values(idnumber),
    industry = values(industry),
    innercode = values(innercode),
    ishasaccount = values(ishasaccount),
    isseal = values(isseal),
    isuseretail = values(isuseretail),
    isworkingunit = values(isworkingunit),
    legalbodycode = values(legalbodycode),
    linkman1 = values(linkman1),
    linkman2 = values(linkman2),
    linkman3 = values(linkman3),
    maxinnercode = values(maxinnercode),
    memo = values(memo),
    ownersharerate = values(ownersharerate),
    phone1 = values(phone1),
    phone2 = values(phone2),
    phone3 = values(phone3),
    pk_corpkind = values(pk_corpkind),
    pk_currency = values(pk_currency),
    postaddr = values(postaddr),
    province = values(province),
    regcapital = values(regcapital),
    region = values(region),
    saleaddr = values(saleaddr),
    sealeddate = values(sealeddate),
    showorder = values(showorder),
    taxcode = values(taxcode),
    taxpayertype = values(taxpayertype),
    tenant_no = values(tenant_no),
    ts = values(ts),
    unitcode = values(unitcode),
    unitdistinction = values(unitdistinction),
    unitname = values(unitname),
    unitshortname = values(unitshortname),
    url = values(url),
    zipcode = values(zipcode)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
update bd_corp  set
<trim suffix="" suffixOverrides=",">
  <if test="begindate != null and begindate != ''"> begindate = #{begindate},</if>
  <if test="briefintro != null and briefintro != ''"> briefintro = #{briefintro},</if>
  <if test="busibegindate != null and busibegindate != ''"> busibegindate = #{busibegindate},</if>
  <if test="busienddate != null and busienddate != ''"> busienddate = #{busienddate},</if>
  <if test="chargedeptcode != null and chargedeptcode != ''"> chargedeptcode = #{chargedeptcode},</if>
  <if test="chargedeptname != null and chargedeptname != ''"> chargedeptname = #{chargedeptname},</if>
  <if test="citycounty != null and citycounty != ''"> citycounty = #{citycounty},</if>
  <if test="corptype != null and corptype != ''"> corptype = #{corptype},</if>
  <if test="countryarea != null and countryarea != ''"> countryarea = #{countryarea},</if>
  <if test="createdate != null and createdate != ''"> createdate = #{createdate},</if>
  <if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
  <if test="def10 != null and def10 != ''"> def10 = #{def10},</if>
  <if test="def11 != null and def11 != ''"> def11 = #{def11},</if>
  <if test="def12 != null and def12 != ''"> def12 = #{def12},</if>
  <if test="def13 != null and def13 != ''"> def13 = #{def13},</if>
  <if test="def14 != null and def14 != ''"> def14 = #{def14},</if>
  <if test="def15 != null and def15 != ''"> def15 = #{def15},</if>
  <if test="def16 != null and def16 != ''"> def16 = #{def16},</if>
  <if test="def17 != null and def17 != ''"> def17 = #{def17},</if>
  <if test="def18 != null and def18 != ''"> def18 = #{def18},</if>
  <if test="def19 != null and def19 != ''"> def19 = #{def19},</if>
  <if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
  <if test="def20 != null and def20 != ''"> def20 = #{def20},</if>
  <if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
  <if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
  <if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
  <if test="def6 != null and def6 != ''"> def6 = #{def6},</if>
  <if test="def7 != null and def7 != ''"> def7 = #{def7},</if>
  <if test="def8 != null and def8 != ''"> def8 = #{def8},</if>
  <if test="def9 != null and def9 != ''"> def9 = #{def9},</if>
  <if test="dr != null"> dr = #{dr},</if>
  <if test="ecotype != null and ecotype != ''"> ecotype = #{ecotype},</if>
  <if test="email1 != null and email1 != ''"> email1 = #{email1},</if>
  <if test="email2 != null and email2 != ''"> email2 = #{email2},</if>
  <if test="email3 != null and email3 != ''"> email3 = #{email3},</if>
  <if test="enddate != null and enddate != ''"> enddate = #{enddate},</if>
  <if test="fathercorp != null and fathercorp != ''"> fathercorp = #{fathercorp},</if>
  <if test="fax1 != null and fax1 != ''"> fax1 = #{fax1},</if>
  <if test="fax2 != null and fax2 != ''"> fax2 = #{fax2},</if>
  <if test="foreignname != null and foreignname != ''"> foreignname = #{foreignname},</if>
  <if test="holdflag != null and holdflag != ''"> holdflag = #{holdflag},</if>
  <if test="idnumber != null and idnumber != ''"> idnumber = #{idnumber},</if>
  <if test="industry != null and industry != ''"> industry = #{industry},</if>
  <if test="innercode != null and innercode != ''"> innercode = #{innercode},</if>
  <if test="ishasaccount != null and ishasaccount != ''"> ishasaccount = #{ishasaccount},</if>
  <if test="isseal != null and isseal != ''"> isseal = #{isseal},</if>
  <if test="isuseretail != null and isuseretail != ''"> isuseretail = #{isuseretail},</if>
  <if test="isworkingunit != null and isworkingunit != ''"> isworkingunit = #{isworkingunit},</if>
  <if test="legalbodycode != null and legalbodycode != ''"> legalbodycode = #{legalbodycode},</if>
  <if test="linkman1 != null and linkman1 != ''"> linkman1 = #{linkman1},</if>
  <if test="linkman2 != null and linkman2 != ''"> linkman2 = #{linkman2},</if>
  <if test="linkman3 != null and linkman3 != ''"> linkman3 = #{linkman3},</if>
  <if test="maxinnercode != null and maxinnercode != ''"> maxinnercode = #{maxinnercode},</if>
  <if test="memo != null and memo != ''"> memo = #{memo},</if>
  <if test="ownersharerate != null"> ownersharerate = #{ownersharerate},</if>
  <if test="phone1 != null and phone1 != ''"> phone1 = #{phone1},</if>
  <if test="phone2 != null and phone2 != ''"> phone2 = #{phone2},</if>
  <if test="phone3 != null and phone3 != ''"> phone3 = #{phone3},</if>
  <if test="pkCorpkind != null and pkCorpkind != ''"> pk_corpkind = #{pkCorpkind},</if>
  <if test="pkCurrency != null and pkCurrency != ''"> pk_currency = #{pkCurrency},</if>
  <if test="postaddr != null and postaddr != ''"> postaddr = #{postaddr},</if>
  <if test="province != null and province != ''"> province = #{province},</if>
  <if test="regcapital != null"> regcapital = #{regcapital},</if>
  <if test="region != null and region != ''"> region = #{region},</if>
  <if test="saleaddr != null and saleaddr != ''"> saleaddr = #{saleaddr},</if>
  <if test="sealeddate != null and sealeddate != ''"> sealeddate = #{sealeddate},</if>
  <if test="showorder != null"> showorder = #{showorder},</if>
  <if test="taxcode != null and taxcode != ''"> taxcode = #{taxcode},</if>
  <if test="taxpayertype != null"> taxpayertype = #{taxpayertype},</if>
  <if test="tenantNo != null and tenantNo != ''"> tenant_no = #{tenantNo},</if>
  <if test="ts != null and ts != ''"> ts = #{ts},</if>
  <if test="unitcode != null and unitcode != ''"> unitcode = #{unitcode},</if>
  <if test="unitdistinction != null and unitdistinction != ''"> unitdistinction = #{unitdistinction},</if>
  <if test="unitname != null and unitname != ''"> unitname = #{unitname},</if>
  <if test="unitshortname != null and unitshortname != ''"> unitshortname = #{unitshortname},</if>
  <if test="url != null and url != ''"> url = #{url},</if>
  <if test="zipcode != null and zipcode != ''"> zipcode = #{zipcode},</if>
</trim>
where pk_corp = #{pkCorp}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
update bd_corp  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where pk_corp = #{pkCorp}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
update bd_corp  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
 <trim prefix="where" prefixOverrides="and"> 
        <if test="begindate != null and begindate != ''"> and begindate = #{begindate} </if>
            <if test="briefintro != null and briefintro != ''"> and briefintro = #{briefintro} </if>
            <if test="busibegindate != null and busibegindate != ''"> and busibegindate = #{busibegindate} </if>
            <if test="busienddate != null and busienddate != ''"> and busienddate = #{busienddate} </if>
            <if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode = #{chargedeptcode} </if>
            <if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname = #{chargedeptname} </if>
            <if test="citycounty != null and citycounty != ''"> and citycounty = #{citycounty} </if>
            <if test="corptype != null and corptype != ''"> and corptype = #{corptype} </if>
            <if test="countryarea != null and countryarea != ''"> and countryarea = #{countryarea} </if>
            <if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
            <if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
            <if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
            <if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
            <if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
            <if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
            <if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
            <if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
            <if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
            <if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
            <if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
            <if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
            <if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
            <if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
            <if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
            <if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
            <if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
            <if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
            <if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
            <if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
            <if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
            <if test="dr != null"> and dr = #{dr} </if>
            <if test="ecotype != null and ecotype != ''"> and ecotype = #{ecotype} </if>
            <if test="email1 != null and email1 != ''"> and email1 = #{email1} </if>
            <if test="email2 != null and email2 != ''"> and email2 = #{email2} </if>
            <if test="email3 != null and email3 != ''"> and email3 = #{email3} </if>
            <if test="enddate != null and enddate != ''"> and enddate = #{enddate} </if>
            <if test="fathercorp != null and fathercorp != ''"> and fathercorp = #{fathercorp} </if>
            <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
            <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
            <if test="foreignname != null and foreignname != ''"> and foreignname = #{foreignname} </if>
            <if test="holdflag != null and holdflag != ''"> and holdflag = #{holdflag} </if>
            <if test="idnumber != null and idnumber != ''"> and idnumber = #{idnumber} </if>
            <if test="industry != null and industry != ''"> and industry = #{industry} </if>
            <if test="innercode != null and innercode != ''"> and innercode = #{innercode} </if>
            <if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount = #{ishasaccount} </if>
            <if test="isseal != null and isseal != ''"> and isseal = #{isseal} </if>
            <if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
            <if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit = #{isworkingunit} </if>
            <if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode = #{legalbodycode} </if>
            <if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
            <if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
            <if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
            <if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode = #{maxinnercode} </if>
            <if test="memo != null and memo != ''"> and memo = #{memo} </if>
            <if test="ownersharerate != null"> and ownersharerate = #{ownersharerate} </if>
            <if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
            <if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
            <if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind = #{pkCorpkind} </if>
            <if test="pkCurrency != null and pkCurrency != ''"> and pk_currency = #{pkCurrency} </if>
            <if test="postaddr != null and postaddr != ''"> and postaddr = #{postaddr} </if>
            <if test="province != null and province != ''"> and province = #{province} </if>
            <if test="regcapital != null"> and regcapital = #{regcapital} </if>
            <if test="region != null and region != ''"> and region = #{region} </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
            <if test="sealeddate != null and sealeddate != ''"> and sealeddate = #{sealeddate} </if>
            <if test="showorder != null"> and showorder = #{showorder} </if>
            <if test="taxcode != null and taxcode != ''"> and taxcode = #{taxcode} </if>
            <if test="taxpayertype != null"> and taxpayertype = #{taxpayertype} </if>
            <if test="tenantNo != null and tenantNo != ''"> and tenant_no = #{tenantNo} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="unitcode != null and unitcode != ''"> and unitcode = #{unitcode} </if>
            <if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction = #{unitdistinction} </if>
            <if test="unitname != null and unitname != ''"> and unitname = #{unitname} </if>
            <if test="unitshortname != null and unitshortname != ''"> and unitshortname = #{unitshortname} </if>
            <if test="url != null and url != ''"> and url = #{url} </if>
            <if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
            and sts='Y'
    </trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
    delete from bd_corp where pk_corp = #{pkCorp}
</delete>

</mapper>

