<?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.BdCubasdocDaoImpl">

    <resultMap id="get-BdCubasdocEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >
        <result property="accdefault" column="accdefault" jdbcType="VARCHAR"/>
        <result property="billtemplet" column="billtemplet" jdbcType="VARCHAR"/>
        <result property="bp1" column="bp1" jdbcType="VARCHAR"/>
        <result property="bp2" column="bp2" jdbcType="VARCHAR"/>
        <result property="bp3" column="bp3" jdbcType="VARCHAR"/>
        <result property="conaddr" column="conaddr" jdbcType="VARCHAR"/>
        <result property="correspondunit" column="correspondunit" jdbcType="VARCHAR"/>
        <result property="createtime" column="createtime" jdbcType="VARCHAR"/>
        <result property="creator" column="creator" jdbcType="VARCHAR"/>
        <result property="creditmny" column="creditmny" jdbcType="VARCHAR"/>
        <result property="custcode" column="custcode" jdbcType="VARCHAR"/>
        <result property="custname" column="custname" jdbcType="VARCHAR"/>
        <result property="custprop" column="custprop" jdbcType="INTEGER"/>
        <result property="custshortname" column="custshortname" 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="drpnodeflag" column="drpnodeflag" jdbcType="VARCHAR"/>
        <result property="ecotypesincevfive" column="ecotypesincevfive" jdbcType="VARCHAR"/>
        <result property="email" column="email" jdbcType="VARCHAR"/>
        <result property="engname" column="engname" jdbcType="VARCHAR"/>
        <result property="fax1" column="fax1" jdbcType="VARCHAR"/>
        <result property="fax2" column="fax2" jdbcType="VARCHAR"/>
        <result property="freecustflag" column="freecustflag" jdbcType="VARCHAR"/>
        <result property="isconnflag" column="isconnflag" jdbcType="VARCHAR"/>
        <result property="legalbody" column="legalbody" 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="memo" column="memo" jdbcType="VARCHAR"/>
        <result property="mnecode" column="mnecode" jdbcType="VARCHAR"/>
        <result property="mobilephone1" column="mobilephone1" jdbcType="VARCHAR"/>
        <result property="mobilephone2" column="mobilephone2" jdbcType="VARCHAR"/>
        <result property="mobilephone3" column="mobilephone3" jdbcType="VARCHAR"/>
        <result property="modifier" column="modifier" jdbcType="VARCHAR"/>
        <result property="modifytime" column="modifytime" jdbcType="VARCHAR"/>
        <result property="phone1" column="phone1" jdbcType="VARCHAR"/>
        <result property="phone2" column="phone2" jdbcType="VARCHAR"/>
        <result property="phone3" column="phone3" jdbcType="VARCHAR"/>
        <result property="pkAreacl" column="pk_areacl" jdbcType="VARCHAR"/>
        <result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
        <result property="pkCorp1" column="pk_corp1" jdbcType="VARCHAR"/>
        <result property="pkCubasdoc" column="pk_cubasdoc" jdbcType="VARCHAR"/>
        <result property="pkCubasdoc1" column="pk_cubasdoc1" jdbcType="VARCHAR"/>
        <result property="pkPricegroup" column="pk_pricegroup" jdbcType="VARCHAR"/>
        <result property="registerfund" column="registerfund" jdbcType="VARCHAR"/>
        <result property="saleaddr" column="saleaddr" jdbcType="VARCHAR"/>
        <result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
        <result property="taxpayerid" column="taxpayerid" jdbcType="VARCHAR"/>
        <result property="trade" column="trade" jdbcType="VARCHAR"/>
        <result property="ts" column="ts" jdbcType="VARCHAR"/>
        <result property="url" column="url" jdbcType="VARCHAR"/>
        <result property="zipcode" column="zipcode" jdbcType="VARCHAR"/>
    </resultMap>
    <!-- 查询的字段-->
    <sql id = "BdCubasdocEntity_Base_Column_List">
        accdefault
        ,billtemplet
        ,bp1
        ,bp2
        ,bp3
        ,conaddr
        ,correspondunit
        ,createtime
        ,creator
        ,creditmny
        ,custcode
        ,custname
        ,custprop
        ,custshortname
        ,def1
        ,def10
        ,def11
        ,def12
        ,def13
        ,def14
        ,def15
        ,def16
        ,def17
        ,def18
        ,def19
        ,def2
        ,def20
        ,def3
        ,def4
        ,def5
        ,def6
        ,def7
        ,def8
        ,def9
        ,dr
        ,drpnodeflag
        ,ecotypesincevfive
        ,email
        ,engname
        ,fax1
        ,fax2
        ,freecustflag
        ,isconnflag
        ,legalbody
        ,linkman1
        ,linkman2
        ,linkman3
        ,memo
        ,mnecode
        ,mobilephone1
        ,mobilephone2
        ,mobilephone3
        ,modifier
        ,modifytime
        ,phone1
        ,phone2
        ,phone3
        ,pk_areacl
        ,pk_corp
        ,pk_corp1
        ,pk_cubasdoc
        ,pk_cubasdoc1
        ,pk_pricegroup
        ,registerfund
        ,saleaddr
        ,sealflag
        ,taxpayerid
        ,trade
        ,ts
        ,url
        ,zipcode
    </sql>
    <!-- 查询 采用==查询 -->
    <select id="entity_list_base" resultMap="get-BdCubasdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
        select
        <include refid="BdCubasdocEntity_Base_Column_List" />
        from bd_cubasdoc
        <trim prefix="where" prefixOverrides="and">
            <if test="accdefault != null and accdefault != ''"> and accdefault = #{accdefault} </if>
            <if test="billtemplet != null and billtemplet != ''"> and billtemplet = #{billtemplet} </if>
            <if test="bp1 != null and bp1 != ''"> and bp1 = #{bp1} </if>
            <if test="bp2 != null and bp2 != ''"> and bp2 = #{bp2} </if>
            <if test="bp3 != null and bp3 != ''"> and bp3 = #{bp3} </if>
            <if test="conaddr != null and conaddr != ''"> and conaddr = #{conaddr} </if>
            <if test="correspondunit != null and correspondunit != ''"> and correspondunit = #{correspondunit} </if>
            <if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
            <if test="creator != null and creator != ''"> and creator = #{creator} </if>
            <if test="creditmny != null and creditmny != ''"> and creditmny = #{creditmny} </if>
            <if test="custcode != null and custcode != ''"> and custcode = #{custcode} </if>
            <if test="custname != null and custname != ''"> and custname = #{custname} </if>
            <if test="custprop != null"> and custprop = #{custprop} </if>
            <if test="custshortname != null and custshortname != ''"> and custshortname = #{custshortname} </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="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag = #{drpnodeflag} </if>
            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive = #{ecotypesincevfive} </if>
            <if test="email != null and email != ''"> and email = #{email} </if>
            <if test="engname != null and engname != ''"> and engname = #{engname} </if>
            <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
            <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
            <if test="freecustflag != null and freecustflag != ''"> and freecustflag = #{freecustflag} </if>
            <if test="isconnflag != null and isconnflag != ''"> and isconnflag = #{isconnflag} </if>
            <if test="legalbody != null and legalbody != ''"> and legalbody = #{legalbody} </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="memo != null and memo != ''"> and memo = #{memo} </if>
            <if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
            <if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 = #{mobilephone1} </if>
            <if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 = #{mobilephone2} </if>
            <if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 = #{mobilephone3} </if>
            <if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
            <if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </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="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 = #{pkCorp1} </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 = #{pkCubasdoc1} </if>
            <if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup = #{pkPricegroup} </if>
            <if test="registerfund != null and registerfund != ''"> and registerfund = #{registerfund} </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
            <if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
            <if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
            <if test="trade != null and trade != ''"> and trade = #{trade} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="url != null and url != ''"> and url = #{url} </if>
            <if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>

            <if test="start_createtime!=null and start_createtime!=''"> and createtime >= #{start_createtime}</if>
            <if test="end_createtime!=null and end_createtime!=''">and createtime &lt;= #{end_createtime}</if>

            <if test="modifytime_start_time!=null and modifytime_start_time!=''">and ts >= #{modifytime_start_time}</if>
            <if test="modifytime_end_time!=null and modifytime_end_time!=''">and ts &lt;= #{modifytime_end_time}</if>

            <if test="custcodes!=null and custcodes!=''">
                and custcode in (${custcodes})
            </if>
        </trim>
        <if test=" 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.BdCubasdocEntity">
        select  count(1)   from bd_cubasdoc
        <trim prefix="where" prefixOverrides="and">
            <if test="accdefault != null and accdefault != ''"> and accdefault = #{accdefault} </if>
            <if test="billtemplet != null and billtemplet != ''"> and billtemplet = #{billtemplet} </if>
            <if test="bp1 != null and bp1 != ''"> and bp1 = #{bp1} </if>
            <if test="bp2 != null and bp2 != ''"> and bp2 = #{bp2} </if>
            <if test="bp3 != null and bp3 != ''"> and bp3 = #{bp3} </if>
            <if test="conaddr != null and conaddr != ''"> and conaddr = #{conaddr} </if>
            <if test="correspondunit != null and correspondunit != ''"> and correspondunit = #{correspondunit} </if>
            <if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
            <if test="creator != null and creator != ''"> and creator = #{creator} </if>
            <if test="creditmny != null and creditmny != ''"> and creditmny = #{creditmny} </if>
            <if test="custcode != null and custcode != ''"> and custcode = #{custcode} </if>
            <if test="custname != null and custname != ''"> and custname = #{custname} </if>
            <if test="custprop != null"> and custprop = #{custprop} </if>
            <if test="custshortname != null and custshortname != ''"> and custshortname = #{custshortname} </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="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag = #{drpnodeflag} </if>
            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive = #{ecotypesincevfive} </if>
            <if test="email != null and email != ''"> and email = #{email} </if>
            <if test="engname != null and engname != ''"> and engname = #{engname} </if>
            <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
            <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
            <if test="freecustflag != null and freecustflag != ''"> and freecustflag = #{freecustflag} </if>
            <if test="isconnflag != null and isconnflag != ''"> and isconnflag = #{isconnflag} </if>
            <if test="legalbody != null and legalbody != ''"> and legalbody = #{legalbody} </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="memo != null and memo != ''"> and memo = #{memo} </if>
            <if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
            <if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 = #{mobilephone1} </if>
            <if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 = #{mobilephone2} </if>
            <if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 = #{mobilephone3} </if>
            <if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
            <if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </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="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 = #{pkCorp1} </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 = #{pkCubasdoc1} </if>
            <if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup = #{pkPricegroup} </if>
            <if test="registerfund != null and registerfund != ''"> and registerfund = #{registerfund} </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
            <if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
            <if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
            <if test="trade != null and trade != ''"> and trade = #{trade} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </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 ==''.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-BdCubasdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
        select
        <include refid="BdCubasdocEntity_Base_Column_List" />
        from bd_cubasdoc
        <trim prefix="where" prefixOverrides="and">
            <if test="accdefault != null and accdefault != ''"> and accdefault like concat('%',#{accdefault},'%') </if>
            <if test="billtemplet != null and billtemplet != ''"> and billtemplet like concat('%',#{billtemplet},'%') </if>
            <if test="bp1 != null and bp1 != ''"> and bp1 like concat('%',#{bp1},'%') </if>
            <if test="bp2 != null and bp2 != ''"> and bp2 like concat('%',#{bp2},'%') </if>
            <if test="bp3 != null and bp3 != ''"> and bp3 like concat('%',#{bp3},'%') </if>
            <if test="conaddr != null and conaddr != ''"> and conaddr like concat('%',#{conaddr},'%') </if>
            <if test="correspondunit != null and correspondunit != ''"> and correspondunit like concat('%',#{correspondunit},'%') </if>
            <if test="createtime != null and createtime != ''"> and createtime like concat('%',#{createtime},'%') </if>
            <if test="creator != null and creator != ''"> and creator like concat('%',#{creator},'%') </if>
            <if test="creditmny != null and creditmny != ''"> and creditmny like concat('%',#{creditmny},'%') </if>
            <if test="custcode != null and custcode != ''"> and custcode like concat('%',#{custcode},'%') </if>
            <if test="custname != null and custname != ''"> and custname like concat('%',#{custname},'%') </if>
            <if test="custprop != null"> and custprop like concat('%',#{custprop},'%') </if>
            <if test="custshortname != null and custshortname != ''"> and custshortname like concat('%',#{custshortname},'%') </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="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag like concat('%',#{drpnodeflag},'%') </if>
            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive like concat('%',#{ecotypesincevfive},'%') </if>
            <if test="email != null and email != ''"> and email like concat('%',#{email},'%') </if>
            <if test="engname != null and engname != ''"> and engname like concat('%',#{engname},'%') </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="freecustflag != null and freecustflag != ''"> and freecustflag like concat('%',#{freecustflag},'%') </if>
            <if test="isconnflag != null and isconnflag != ''"> and isconnflag like concat('%',#{isconnflag},'%') </if>
            <if test="legalbody != null and legalbody != ''"> and legalbody like concat('%',#{legalbody},'%') </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="memo != null and memo != ''"> and memo like concat('%',#{memo},'%') </if>
            <if test="mnecode != null and mnecode != ''"> and mnecode like concat('%',#{mnecode},'%') </if>
            <if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 like concat('%',#{mobilephone1},'%') </if>
            <if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 like concat('%',#{mobilephone2},'%') </if>
            <if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 like concat('%',#{mobilephone3},'%') </if>
            <if test="modifier != null and modifier != ''"> and modifier like concat('%',#{modifier},'%') </if>
            <if test="modifytime != null and modifytime != ''"> and modifytime like concat('%',#{modifytime},'%') </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="pkAreacl != null and pkAreacl != ''"> and pk_areacl like concat('%',#{pkAreacl},'%') </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
            <if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 like concat('%',#{pkCorp1},'%') </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc like concat('%',#{pkCubasdoc},'%') </if>
            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 like concat('%',#{pkCubasdoc1},'%') </if>
            <if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup like concat('%',#{pkPricegroup},'%') </if>
            <if test="registerfund != null and registerfund != ''"> and registerfund like concat('%',#{registerfund},'%') </if>
            <if test="saleaddr != null and saleaddr != ''"> and saleaddr like concat('%',#{saleaddr},'%') </if>
            <if test="sealflag != null and sealflag != ''"> and sealflag like concat('%',#{sealflag},'%') </if>
            <if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid like concat('%',#{taxpayerid},'%') </if>
            <if test="trade != null and trade != ''"> and trade like concat('%',#{trade},'%') </if>
            <if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </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>
        </trim>
        <if test=" 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="BdCubasdocentity_list_or" resultMap="get-BdCubasdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
        select
        <include refid="BdCubasdocEntity_Base_Column_List" />
        from bd_cubasdoc
        <trim prefix="where" prefixOverrides="and">
            <if test="accdefault != null and accdefault != ''"> or accdefault = #{accdefault} </if>
            <if test="billtemplet != null and billtemplet != ''"> or billtemplet = #{billtemplet} </if>
            <if test="bp1 != null and bp1 != ''"> or bp1 = #{bp1} </if>
            <if test="bp2 != null and bp2 != ''"> or bp2 = #{bp2} </if>
            <if test="bp3 != null and bp3 != ''"> or bp3 = #{bp3} </if>
            <if test="conaddr != null and conaddr != ''"> or conaddr = #{conaddr} </if>
            <if test="correspondunit != null and correspondunit != ''"> or correspondunit = #{correspondunit} </if>
            <if test="createtime != null and createtime != ''"> or createtime = #{createtime} </if>
            <if test="creator != null and creator != ''"> or creator = #{creator} </if>
            <if test="creditmny != null and creditmny != ''"> or creditmny = #{creditmny} </if>
            <if test="custcode != null and custcode != ''"> or custcode = #{custcode} </if>
            <if test="custname != null and custname != ''"> or custname = #{custname} </if>
            <if test="custprop != null"> or custprop = #{custprop} </if>
            <if test="custshortname != null and custshortname != ''"> or custshortname = #{custshortname} </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="drpnodeflag != null and drpnodeflag != ''"> or drpnodeflag = #{drpnodeflag} </if>
            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> or ecotypesincevfive = #{ecotypesincevfive} </if>
            <if test="email != null and email != ''"> or email = #{email} </if>
            <if test="engname != null and engname != ''"> or engname = #{engname} </if>
            <if test="fax1 != null and fax1 != ''"> or fax1 = #{fax1} </if>
            <if test="fax2 != null and fax2 != ''"> or fax2 = #{fax2} </if>
            <if test="freecustflag != null and freecustflag != ''"> or freecustflag = #{freecustflag} </if>
            <if test="isconnflag != null and isconnflag != ''"> or isconnflag = #{isconnflag} </if>
            <if test="legalbody != null and legalbody != ''"> or legalbody = #{legalbody} </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="memo != null and memo != ''"> or memo = #{memo} </if>
            <if test="mnecode != null and mnecode != ''"> or mnecode = #{mnecode} </if>
            <if test="mobilephone1 != null and mobilephone1 != ''"> or mobilephone1 = #{mobilephone1} </if>
            <if test="mobilephone2 != null and mobilephone2 != ''"> or mobilephone2 = #{mobilephone2} </if>
            <if test="mobilephone3 != null and mobilephone3 != ''"> or mobilephone3 = #{mobilephone3} </if>
            <if test="modifier != null and modifier != ''"> or modifier = #{modifier} </if>
            <if test="modifytime != null and modifytime != ''"> or modifytime = #{modifytime} </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="pkAreacl != null and pkAreacl != ''"> or pk_areacl = #{pkAreacl} </if>
            <if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
            <if test="pkCorp1 != null and pkCorp1 != ''"> or pk_corp1 = #{pkCorp1} </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> or pk_cubasdoc = #{pkCubasdoc} </if>
            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> or pk_cubasdoc1 = #{pkCubasdoc1} </if>
            <if test="pkPricegroup != null and pkPricegroup != ''"> or pk_pricegroup = #{pkPricegroup} </if>
            <if test="registerfund != null and registerfund != ''"> or registerfund = #{registerfund} </if>
            <if test="saleaddr != null and saleaddr != ''"> or saleaddr = #{saleaddr} </if>
            <if test="sealflag != null and sealflag != ''"> or sealflag = #{sealflag} </if>
            <if test="taxpayerid != null and taxpayerid != ''"> or taxpayerid = #{taxpayerid} </if>
            <if test="trade != null and trade != ''"> or trade = #{trade} </if>
            <if test="ts != null and ts != ''"> or ts = #{ts} </if>
            <if test="url != null and url != ''"> or url = #{url} </if>
            <if test="zipcode != null and zipcode != ''"> or zipcode = #{zipcode} </if>
        </trim>
        <if test=" 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.BdCubasdocEntity" keyProperty="pkCubasdoc" useGeneratedKeys="true">-->
    <!--    insert into bd_cubasdoc(-->
    <!--  <trim suffix="" suffixOverrides=",">-->
    <!--       <if test="accdefault != null and accdefault != ''"> accdefault , </if>-->
    <!--            <if test="billtemplet != null and billtemplet != ''"> billtemplet , </if>-->
    <!--            <if test="bp1 != null and bp1 != ''"> bp1 , </if>-->
    <!--            <if test="bp2 != null and bp2 != ''"> bp2 , </if>-->
    <!--            <if test="bp3 != null and bp3 != ''"> bp3 , </if>-->
    <!--            <if test="conaddr != null and conaddr != ''"> conaddr , </if>-->
    <!--            <if test="correspondunit != null and correspondunit != ''"> correspondunit , </if>-->
    <!--            <if test="createtime != null and createtime != ''"> createtime , </if>-->
    <!--            <if test="creator != null and creator != ''"> creator , </if>-->
    <!--            <if test="creditmny != null and creditmny != ''"> creditmny , </if>-->
    <!--            <if test="custcode != null and custcode != ''"> custcode , </if>-->
    <!--            <if test="custname != null and custname != ''"> custname , </if>-->
    <!--            <if test="custprop != null"> custprop , </if>-->
    <!--            <if test="custshortname != null and custshortname != ''"> custshortname , </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="drpnodeflag != null and drpnodeflag != ''"> drpnodeflag , </if>-->
    <!--            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> ecotypesincevfive , </if>-->
    <!--            <if test="email != null and email != ''"> email , </if>-->
    <!--            <if test="engname != null and engname != ''"> engname , </if>-->
    <!--            <if test="fax1 != null and fax1 != ''"> fax1 , </if>-->
    <!--            <if test="fax2 != null and fax2 != ''"> fax2 , </if>-->
    <!--            <if test="freecustflag != null and freecustflag != ''"> freecustflag , </if>-->
    <!--            <if test="isconnflag != null and isconnflag != ''"> isconnflag , </if>-->
    <!--            <if test="legalbody != null and legalbody != ''"> legalbody , </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="memo != null and memo != ''"> memo , </if>-->
    <!--            <if test="mnecode != null and mnecode != ''"> mnecode , </if>-->
    <!--            <if test="mobilephone1 != null and mobilephone1 != ''"> mobilephone1 , </if>-->
    <!--            <if test="mobilephone2 != null and mobilephone2 != ''"> mobilephone2 , </if>-->
    <!--            <if test="mobilephone3 != null and mobilephone3 != ''"> mobilephone3 , </if>-->
    <!--            <if test="modifier != null and modifier != ''"> modifier , </if>-->
    <!--            <if test="modifytime != null and modifytime != ''"> modifytime , </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="pkAreacl != null and pkAreacl != ''"> pk_areacl , </if>-->
    <!--            <if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>-->
    <!--            <if test="pkCorp1 != null and pkCorp1 != ''"> pk_corp1 , </if>-->
    <!--            <if test="pkCubasdoc != null and pkCubasdoc != ''"> pk_cubasdoc , </if>-->
    <!--            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> pk_cubasdoc1 , </if>-->
    <!--            <if test="pkPricegroup != null and pkPricegroup != ''"> pk_pricegroup , </if>-->
    <!--            <if test="registerfund != null and registerfund != ''"> registerfund , </if>-->
    <!--            <if test="saleaddr != null and saleaddr != ''"> saleaddr , </if>-->
    <!--            <if test="sealflag != null and sealflag != ''"> sealflag , </if>-->
    <!--            <if test="taxpayerid != null and taxpayerid != ''"> taxpayerid , </if>-->
    <!--            <if test="trade != null and trade != ''"> trade , </if>-->
    <!--            <if test="ts != null and ts != ''"> ts , </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="accdefault != null and accdefault != ''"> #{accdefault} ,</if>-->
    <!--            <if test="billtemplet != null and billtemplet != ''"> #{billtemplet} ,</if>-->
    <!--            <if test="bp1 != null and bp1 != ''"> #{bp1} ,</if>-->
    <!--            <if test="bp2 != null and bp2 != ''"> #{bp2} ,</if>-->
    <!--            <if test="bp3 != null and bp3 != ''"> #{bp3} ,</if>-->
    <!--            <if test="conaddr != null and conaddr != ''"> #{conaddr} ,</if>-->
    <!--            <if test="correspondunit != null and correspondunit != ''"> #{correspondunit} ,</if>-->
    <!--            <if test="createtime != null and createtime != ''"> #{createtime} ,</if>-->
    <!--            <if test="creator != null and creator != ''"> #{creator} ,</if>-->
    <!--            <if test="creditmny != null and creditmny != ''"> #{creditmny} ,</if>-->
    <!--            <if test="custcode != null and custcode != ''"> #{custcode} ,</if>-->
    <!--            <if test="custname != null and custname != ''"> #{custname} ,</if>-->
    <!--            <if test="custprop != null"> #{custprop} ,</if>-->
    <!--            <if test="custshortname != null and custshortname != ''"> #{custshortname} ,</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="drpnodeflag != null and drpnodeflag != ''"> #{drpnodeflag} ,</if>-->
    <!--            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> #{ecotypesincevfive} ,</if>-->
    <!--            <if test="email != null and email != ''"> #{email} ,</if>-->
    <!--            <if test="engname != null and engname != ''"> #{engname} ,</if>-->
    <!--            <if test="fax1 != null and fax1 != ''"> #{fax1} ,</if>-->
    <!--            <if test="fax2 != null and fax2 != ''"> #{fax2} ,</if>-->
    <!--            <if test="freecustflag != null and freecustflag != ''"> #{freecustflag} ,</if>-->
    <!--            <if test="isconnflag != null and isconnflag != ''"> #{isconnflag} ,</if>-->
    <!--            <if test="legalbody != null and legalbody != ''"> #{legalbody} ,</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="memo != null and memo != ''"> #{memo} ,</if>-->
    <!--            <if test="mnecode != null and mnecode != ''"> #{mnecode} ,</if>-->
    <!--            <if test="mobilephone1 != null and mobilephone1 != ''"> #{mobilephone1} ,</if>-->
    <!--            <if test="mobilephone2 != null and mobilephone2 != ''"> #{mobilephone2} ,</if>-->
    <!--            <if test="mobilephone3 != null and mobilephone3 != ''"> #{mobilephone3} ,</if>-->
    <!--            <if test="modifier != null and modifier != ''"> #{modifier} ,</if>-->
    <!--            <if test="modifytime != null and modifytime != ''"> #{modifytime} ,</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="pkAreacl != null and pkAreacl != ''"> #{pkAreacl} ,</if>-->
    <!--            <if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>-->
    <!--            <if test="pkCorp1 != null and pkCorp1 != ''"> #{pkCorp1} ,</if>-->
    <!--            <if test="pkCubasdoc != null and pkCubasdoc != ''"> #{pkCubasdoc} ,</if>-->
    <!--            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> #{pkCubasdoc1} ,</if>-->
    <!--            <if test="pkPricegroup != null and pkPricegroup != ''"> #{pkPricegroup} ,</if>-->
    <!--            <if test="registerfund != null and registerfund != ''"> #{registerfund} ,</if>-->
    <!--            <if test="saleaddr != null and saleaddr != ''"> #{saleaddr} ,</if>-->
    <!--            <if test="sealflag != null and sealflag != ''"> #{sealflag} ,</if>-->
    <!--            <if test="taxpayerid != null and taxpayerid != ''"> #{taxpayerid} ,</if>-->
    <!--            <if test="trade != null and trade != ''"> #{trade} ,</if>-->
    <!--            <if test="ts != null and ts != ''"> #{ts} ,</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_cubasdoc a WHERE a.sts = 'Y' ),</if>-->
    <!--    <if test="sts == null ">'Y',</if>-->
    <!--  </trim>-->
    <!--  )  -->
    <!--</insert>-->
    <!-- 批量新增 -->
    <!--<insert id="entityInsertBatch" keyProperty="pkCubasdoc" useGeneratedKeys="true">-->
    <!--  insert into bd_cubasdoc(accdefault, billtemplet, bp1, bp2, bp3, conaddr, correspondunit, createtime, creator, creditmny, custcode, custname, custprop, custshortname, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, drpnodeflag, ecotypesincevfive, email, engname, fax1, fax2, freecustflag, isconnflag, legalbody, linkman1, linkman2, linkman3, memo, mnecode, mobilephone1, mobilephone2, mobilephone3, modifier, modifytime, phone1, phone2, phone3, pk_areacl, pk_corp, pk_corp1, pk_cubasdoc1, pk_pricegroup, registerfund, saleaddr, sealflag, taxpayerid, trade, ts, url, zipcode,  sts) -->
    <!--    values-->
    <!--    <foreach collection="entities" item="entity" separator=",">-->
    <!--    (#{entity.accdefault},#{entity.billtemplet},#{entity.bp1},#{entity.bp2},#{entity.bp3},#{entity.conaddr},#{entity.correspondunit},#{entity.createtime},#{entity.creator},#{entity.creditmny},#{entity.custcode},#{entity.custname},#{entity.custprop},#{entity.custshortname},#{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.drpnodeflag},#{entity.ecotypesincevfive},#{entity.email},#{entity.engname},#{entity.fax1},#{entity.fax2},#{entity.freecustflag},#{entity.isconnflag},#{entity.legalbody},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.memo},#{entity.mnecode},#{entity.mobilephone1},#{entity.mobilephone2},#{entity.mobilephone3},#{entity.modifier},#{entity.modifytime},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkAreacl},#{entity.pkCorp},#{entity.pkCorp1},#{entity.pkCubasdoc1},#{entity.pkPricegroup},#{entity.registerfund},#{entity.saleaddr},#{entity.sealflag},#{entity.taxpayerid},#{entity.trade},#{entity.ts},#{entity.url},#{entity.zipcode}, 'Y')-->
    <!--    </foreach>-->
    <!--</insert>-->
    <!-- 批量新增或者修改-->
    <!--<insert id="entityInsertOrUpdateBatch" keyProperty="pkCubasdoc" useGeneratedKeys="true">-->
    <!--    insert into bd_cubasdoc(accdefault, billtemplet, bp1, bp2, bp3, conaddr, correspondunit, createtime, creator, creditmny, custcode, custname, custprop, custshortname, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, drpnodeflag, ecotypesincevfive, email, engname, fax1, fax2, freecustflag, isconnflag, legalbody, linkman1, linkman2, linkman3, memo, mnecode, mobilephone1, mobilephone2, mobilephone3, modifier, modifytime, phone1, phone2, phone3, pk_areacl, pk_corp, pk_corp1, pk_cubasdoc1, pk_pricegroup, registerfund, saleaddr, sealflag, taxpayerid, trade, ts, url, zipcode)-->
    <!--    values-->
    <!--    <foreach collection="entities" item="entity" separator=",">-->
    <!--    (#{entity.accdefault},#{entity.billtemplet},#{entity.bp1},#{entity.bp2},#{entity.bp3},#{entity.conaddr},#{entity.correspondunit},#{entity.createtime},#{entity.creator},#{entity.creditmny},#{entity.custcode},#{entity.custname},#{entity.custprop},#{entity.custshortname},#{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.drpnodeflag},#{entity.ecotypesincevfive},#{entity.email},#{entity.engname},#{entity.fax1},#{entity.fax2},#{entity.freecustflag},#{entity.isconnflag},#{entity.legalbody},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.memo},#{entity.mnecode},#{entity.mobilephone1},#{entity.mobilephone2},#{entity.mobilephone3},#{entity.modifier},#{entity.modifytime},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkAreacl},#{entity.pkCorp},#{entity.pkCorp1},#{entity.pkCubasdoc1},#{entity.pkPricegroup},#{entity.registerfund},#{entity.saleaddr},#{entity.sealflag},#{entity.taxpayerid},#{entity.trade},#{entity.ts},#{entity.url},#{entity.zipcode})-->
    <!--    </foreach>-->
    <!--    on duplicate key update-->
    <!--    accdefault = values(accdefault),-->
    <!--    billtemplet = values(billtemplet),-->
    <!--    bp1 = values(bp1),-->
    <!--    bp2 = values(bp2),-->
    <!--    bp3 = values(bp3),-->
    <!--    conaddr = values(conaddr),-->
    <!--    correspondunit = values(correspondunit),-->
    <!--    createtime = values(createtime),-->
    <!--    creator = values(creator),-->
    <!--    creditmny = values(creditmny),-->
    <!--    custcode = values(custcode),-->
    <!--    custname = values(custname),-->
    <!--    custprop = values(custprop),-->
    <!--    custshortname = values(custshortname),-->
    <!--    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),-->
    <!--    drpnodeflag = values(drpnodeflag),-->
    <!--    ecotypesincevfive = values(ecotypesincevfive),-->
    <!--    email = values(email),-->
    <!--    engname = values(engname),-->
    <!--    fax1 = values(fax1),-->
    <!--    fax2 = values(fax2),-->
    <!--    freecustflag = values(freecustflag),-->
    <!--    isconnflag = values(isconnflag),-->
    <!--    legalbody = values(legalbody),-->
    <!--    linkman1 = values(linkman1),-->
    <!--    linkman2 = values(linkman2),-->
    <!--    linkman3 = values(linkman3),-->
    <!--    memo = values(memo),-->
    <!--    mnecode = values(mnecode),-->
    <!--    mobilephone1 = values(mobilephone1),-->
    <!--    mobilephone2 = values(mobilephone2),-->
    <!--    mobilephone3 = values(mobilephone3),-->
    <!--    modifier = values(modifier),-->
    <!--    modifytime = values(modifytime),-->
    <!--    phone1 = values(phone1),-->
    <!--    phone2 = values(phone2),-->
    <!--    phone3 = values(phone3),-->
    <!--    pk_areacl = values(pk_areacl),-->
    <!--    pk_corp = values(pk_corp),-->
    <!--    pk_corp1 = values(pk_corp1),-->
    <!--    pk_cubasdoc1 = values(pk_cubasdoc1),-->
    <!--    pk_pricegroup = values(pk_pricegroup),-->
    <!--    registerfund = values(registerfund),-->
    <!--    saleaddr = values(saleaddr),-->
    <!--    sealflag = values(sealflag),-->
    <!--    taxpayerid = values(taxpayerid),-->
    <!--    trade = values(trade),-->
    <!--    ts = values(ts),-->
    <!--    url = values(url),-->
    <!--    zipcode = values(zipcode)</insert>-->
    <!--通过主键修改方法-->
    <!--<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >-->
    <!--update bd_cubasdoc  set-->
    <!--<trim suffix="" suffixOverrides=",">-->
    <!--  <if test="accdefault != null and accdefault != ''"> accdefault = #{accdefault},</if>-->
    <!--  <if test="billtemplet != null and billtemplet != ''"> billtemplet = #{billtemplet},</if>-->
    <!--  <if test="bp1 != null and bp1 != ''"> bp1 = #{bp1},</if>-->
    <!--  <if test="bp2 != null and bp2 != ''"> bp2 = #{bp2},</if>-->
    <!--  <if test="bp3 != null and bp3 != ''"> bp3 = #{bp3},</if>-->
    <!--  <if test="conaddr != null and conaddr != ''"> conaddr = #{conaddr},</if>-->
    <!--  <if test="correspondunit != null and correspondunit != ''"> correspondunit = #{correspondunit},</if>-->
    <!--  <if test="createtime != null and createtime != ''"> createtime = #{createtime},</if>-->
    <!--  <if test="creator != null and creator != ''"> creator = #{creator},</if>-->
    <!--  <if test="creditmny != null and creditmny != ''"> creditmny = #{creditmny},</if>-->
    <!--  <if test="custcode != null and custcode != ''"> custcode = #{custcode},</if>-->
    <!--  <if test="custname != null and custname != ''"> custname = #{custname},</if>-->
    <!--  <if test="custprop != null"> custprop = #{custprop},</if>-->
    <!--  <if test="custshortname != null and custshortname != ''"> custshortname = #{custshortname},</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="drpnodeflag != null and drpnodeflag != ''"> drpnodeflag = #{drpnodeflag},</if>-->
    <!--  <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> ecotypesincevfive = #{ecotypesincevfive},</if>-->
    <!--  <if test="email != null and email != ''"> email = #{email},</if>-->
    <!--  <if test="engname != null and engname != ''"> engname = #{engname},</if>-->
    <!--  <if test="fax1 != null and fax1 != ''"> fax1 = #{fax1},</if>-->
    <!--  <if test="fax2 != null and fax2 != ''"> fax2 = #{fax2},</if>-->
    <!--  <if test="freecustflag != null and freecustflag != ''"> freecustflag = #{freecustflag},</if>-->
    <!--  <if test="isconnflag != null and isconnflag != ''"> isconnflag = #{isconnflag},</if>-->
    <!--  <if test="legalbody != null and legalbody != ''"> legalbody = #{legalbody},</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="memo != null and memo != ''"> memo = #{memo},</if>-->
    <!--  <if test="mnecode != null and mnecode != ''"> mnecode = #{mnecode},</if>-->
    <!--  <if test="mobilephone1 != null and mobilephone1 != ''"> mobilephone1 = #{mobilephone1},</if>-->
    <!--  <if test="mobilephone2 != null and mobilephone2 != ''"> mobilephone2 = #{mobilephone2},</if>-->
    <!--  <if test="mobilephone3 != null and mobilephone3 != ''"> mobilephone3 = #{mobilephone3},</if>-->
    <!--  <if test="modifier != null and modifier != ''"> modifier = #{modifier},</if>-->
    <!--  <if test="modifytime != null and modifytime != ''"> modifytime = #{modifytime},</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="pkAreacl != null and pkAreacl != ''"> pk_areacl = #{pkAreacl},</if>-->
    <!--  <if test="pkCorp != null and pkCorp != ''"> pk_corp = #{pkCorp},</if>-->
    <!--  <if test="pkCorp1 != null and pkCorp1 != ''"> pk_corp1 = #{pkCorp1},</if>-->
    <!--  <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> pk_cubasdoc1 = #{pkCubasdoc1},</if>-->
    <!--  <if test="pkPricegroup != null and pkPricegroup != ''"> pk_pricegroup = #{pkPricegroup},</if>-->
    <!--  <if test="registerfund != null and registerfund != ''"> registerfund = #{registerfund},</if>-->
    <!--  <if test="saleaddr != null and saleaddr != ''"> saleaddr = #{saleaddr},</if>-->
    <!--  <if test="sealflag != null and sealflag != ''"> sealflag = #{sealflag},</if>-->
    <!--  <if test="taxpayerid != null and taxpayerid != ''"> taxpayerid = #{taxpayerid},</if>-->
    <!--  <if test="trade != null and trade != ''"> trade = #{trade},</if>-->
    <!--  <if test="ts != null and ts != ''"> ts = #{ts},</if>-->
    <!--  <if test="url != null and url != ''"> url = #{url},</if>-->
    <!--  <if test="zipcode != null and zipcode != ''"> zipcode = #{zipcode},</if>-->
    <!--</trim>-->
    <!--where pk_cubasdoc = #{pkCubasdoc}-->
    <!--</update>-->
    <!-- 逻辑删除 -->
    <!--<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >-->
    <!--update bd_cubasdoc  set sts= 'N'-->
    <!--where pk_cubasdoc = #{pkCubasdoc}-->
    <!--</update>-->
    <!-- 多条件逻辑删除 -->
    <!--<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >-->
    <!--update bd_cubasdoc  set sts= 'N' -->
    <!-- <trim prefix="where" prefixOverrides="and"> -->
    <!--        <if test="accdefault != null and accdefault != ''"> and accdefault = #{accdefault} </if>-->
    <!--            <if test="billtemplet != null and billtemplet != ''"> and billtemplet = #{billtemplet} </if>-->
    <!--            <if test="bp1 != null and bp1 != ''"> and bp1 = #{bp1} </if>-->
    <!--            <if test="bp2 != null and bp2 != ''"> and bp2 = #{bp2} </if>-->
    <!--            <if test="bp3 != null and bp3 != ''"> and bp3 = #{bp3} </if>-->
    <!--            <if test="conaddr != null and conaddr != ''"> and conaddr = #{conaddr} </if>-->
    <!--            <if test="correspondunit != null and correspondunit != ''"> and correspondunit = #{correspondunit} </if>-->
    <!--            <if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>-->
    <!--            <if test="creator != null and creator != ''"> and creator = #{creator} </if>-->
    <!--            <if test="creditmny != null and creditmny != ''"> and creditmny = #{creditmny} </if>-->
    <!--            <if test="custcode != null and custcode != ''"> and custcode = #{custcode} </if>-->
    <!--            <if test="custname != null and custname != ''"> and custname = #{custname} </if>-->
    <!--            <if test="custprop != null"> and custprop = #{custprop} </if>-->
    <!--            <if test="custshortname != null and custshortname != ''"> and custshortname = #{custshortname} </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="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag = #{drpnodeflag} </if>-->
    <!--            <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive = #{ecotypesincevfive} </if>-->
    <!--            <if test="email != null and email != ''"> and email = #{email} </if>-->
    <!--            <if test="engname != null and engname != ''"> and engname = #{engname} </if>-->
    <!--            <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>-->
    <!--            <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>-->
    <!--            <if test="freecustflag != null and freecustflag != ''"> and freecustflag = #{freecustflag} </if>-->
    <!--            <if test="isconnflag != null and isconnflag != ''"> and isconnflag = #{isconnflag} </if>-->
    <!--            <if test="legalbody != null and legalbody != ''"> and legalbody = #{legalbody} </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="memo != null and memo != ''"> and memo = #{memo} </if>-->
    <!--            <if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>-->
    <!--            <if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 = #{mobilephone1} </if>-->
    <!--            <if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 = #{mobilephone2} </if>-->
    <!--            <if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 = #{mobilephone3} </if>-->
    <!--            <if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>-->
    <!--            <if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </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="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>-->
    <!--            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>-->
    <!--            <if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 = #{pkCorp1} </if>-->
    <!--            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>-->
    <!--            <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 = #{pkCubasdoc1} </if>-->
    <!--            <if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup = #{pkPricegroup} </if>-->
    <!--            <if test="registerfund != null and registerfund != ''"> and registerfund = #{registerfund} </if>-->
    <!--            <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>-->
    <!--            <if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>-->
    <!--            <if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>-->
    <!--            <if test="trade != null and trade != ''"> and trade = #{trade} </if>-->
    <!--            <if test="ts != null and ts != ''"> and ts = #{ts} </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_cubasdoc where pk_cubasdoc = #{pkCubasdoc}-->
    <!--</delete>-->

    <!--    根据客商管理档案的基础档案主键，查询客商管理档案信息-->
    <select id="queryBdCumandocByPkCumandoc" parameterType="com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" resultMap="get-BdCubasdocEntity-result">
        select bc.* from bd_cumandoc bca
                             left join bd_cubasdoc bc
                                       on bca.pk_cubasdoc = bc.pk_cubasdoc
        where
            bca.dr = 0
          and bc.dr = 0
          and bca.pk_cumandoc = #{pk_cumandoc}
          and bca.pk_corp = #{pkCorp}
    </select>
    <!--sm_user根据pk查username-->
    <select id="selectUserNameByPk" parameterType="String" resultType="String">
        select user_name from sm_user where cuserid = #{cuserid} and dr=0
    </select>
    <!--and bca.custflag = #{custflag}-->
</mapper>

