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

    <resultMap id="get-IcGeneralBEntity-result" type="com.hzya.frame.plugin.lets.entity.IcGeneralBEntity" >
       <result property="alrconfincomny" column="alrconfincomny" jdbcType="NUMERIC"/>
           <result property="alrconfinconum" column="alrconfinconum" jdbcType="NUMERIC"/>
           <result property="bbarcodeclose" column="bbarcodeclose" jdbcType="VARCHAR"/>
           <result property="bomversion" column="bomversion" jdbcType="VARCHAR"/>
           <result property="bonroadflag" column="bonroadflag" jdbcType="VARCHAR"/>
           <result property="breturnprofit" column="breturnprofit" jdbcType="VARCHAR"/>
           <result property="bsafeprice" column="bsafeprice" jdbcType="VARCHAR"/>
           <result property="bsourcelargess" column="bsourcelargess" jdbcType="VARCHAR"/>
           <result property="bsupplyflag" column="bsupplyflag" jdbcType="VARCHAR"/>
           <result property="btoinzgflag" column="btoinzgflag" jdbcType="VARCHAR"/>
           <result property="btoouttoiaflag" column="btoouttoiaflag" jdbcType="VARCHAR"/>
           <result property="btooutzgflag" column="btooutzgflag" jdbcType="VARCHAR"/>
           <result property="btou8rm" column="btou8rm" jdbcType="VARCHAR"/>
           <result property="btransasset" column="btransasset" jdbcType="VARCHAR"/>
           <result property="bzgflag" column="bzgflag" jdbcType="VARCHAR"/>
           <result property="bzgyfflag" column="bzgyfflag" jdbcType="VARCHAR"/>
           <result property="castunitid" column="castunitid" jdbcType="VARCHAR"/>
           <result property="cbodybilltypecode" column="cbodybilltypecode" jdbcType="VARCHAR"/>
           <result property="cbodywarehouseid" column="cbodywarehouseid" jdbcType="VARCHAR"/>
           <result property="ccheckstateid" column="ccheckstateid" jdbcType="VARCHAR"/>
           <result property="ccorrespondbid" column="ccorrespondbid" jdbcType="VARCHAR"/>
           <result property="ccorrespondcode" column="ccorrespondcode" jdbcType="VARCHAR"/>
           <result property="ccorrespondhid" column="ccorrespondhid" jdbcType="VARCHAR"/>
           <result property="ccorrespondtype" column="ccorrespondtype" jdbcType="VARCHAR"/>
           <result property="ccostobject" column="ccostobject" jdbcType="VARCHAR"/>
           <result property="ccurrencytypeid" column="ccurrencytypeid" jdbcType="VARCHAR"/>
           <result property="cfirstbillbid" column="cfirstbillbid" jdbcType="VARCHAR"/>
           <result property="cfirstbillhid" column="cfirstbillhid" jdbcType="VARCHAR"/>
           <result property="cfirsttype" column="cfirsttype" jdbcType="VARCHAR"/>
           <result property="cfreezeid" column="cfreezeid" jdbcType="VARCHAR"/>
           <result property="cgeneralbid" column="cgeneralbid" jdbcType="VARCHAR"/>
           <result property="cgeneralhid" column="cgeneralhid" jdbcType="VARCHAR"/>
           <result property="cinvbascode" column="cinvbascode" jdbcType="VARCHAR"/>
           <result property="cinvbasid" column="cinvbasid" jdbcType="VARCHAR"/>
           <result property="cinventoryid" column="cinventoryid" jdbcType="VARCHAR"/>
           <result property="corderBb1id" column="corder_bb1id" jdbcType="VARCHAR"/>
           <result property="cparentid" column="cparentid" jdbcType="VARCHAR"/>
           <result property="cprojectid" column="cprojectid" jdbcType="VARCHAR"/>
           <result property="cprojectphaseid" column="cprojectphaseid" jdbcType="VARCHAR"/>
           <result property="cquotecurrency" column="cquotecurrency" jdbcType="VARCHAR"/>
           <result property="cquoteunitid" column="cquoteunitid" jdbcType="VARCHAR"/>
           <result property="creceieveid" column="creceieveid" jdbcType="VARCHAR"/>
           <result property="creceiveareaid" column="creceiveareaid" jdbcType="VARCHAR"/>
           <result property="creceivepointid" column="creceivepointid" jdbcType="VARCHAR"/>
           <result property="crowno" column="crowno" jdbcType="VARCHAR"/>
           <result property="cselastunitid" column="cselastunitid" jdbcType="VARCHAR"/>
           <result property="csignwastbid" column="csignwastbid" jdbcType="VARCHAR"/>
           <result property="csignwasthid" column="csignwasthid" jdbcType="VARCHAR"/>
           <result property="csignwasttype" column="csignwasttype" jdbcType="VARCHAR"/>
           <result property="csourcebillbid" column="csourcebillbid" jdbcType="VARCHAR"/>
           <result property="csourcebillhid" column="csourcebillhid" jdbcType="VARCHAR"/>
           <result property="csourcetype" column="csourcetype" jdbcType="VARCHAR"/>
           <result property="csourcewastbid" column="csourcewastbid" jdbcType="VARCHAR"/>
           <result property="csourcewasthid" column="csourcewasthid" jdbcType="VARCHAR"/>
           <result property="csourcewasttype" column="csourcewasttype" jdbcType="VARCHAR"/>
           <result property="csrc2billbid" column="csrc2billbid" jdbcType="VARCHAR"/>
           <result property="csrc2billhid" column="csrc2billhid" jdbcType="VARCHAR"/>
           <result property="csrc2billtype" column="csrc2billtype" jdbcType="VARCHAR"/>
           <result property="csumid" column="csumid" jdbcType="VARCHAR"/>
           <result property="cvendorid" column="cvendorid" jdbcType="VARCHAR"/>
           <result property="cworkcenterid" column="cworkcenterid" jdbcType="VARCHAR"/>
           <result property="cworksiteid" column="cworksiteid" jdbcType="VARCHAR"/>
           <result property="cwp" column="cwp" jdbcType="VARCHAR"/>
           <result property="dbizdate" column="dbizdate" jdbcType="VARCHAR"/>
           <result property="ddeliverdate" column="ddeliverdate" jdbcType="VARCHAR"/>
           <result property="dfirstbilldate" column="dfirstbilldate" jdbcType="VARCHAR"/>
           <result property="dr" column="dr" jdbcType="INTEGER"/>
           <result property="drequiredate" column="drequiredate" jdbcType="VARCHAR"/>
           <result property="drequiretime" column="drequiretime" jdbcType="VARCHAR"/>
           <result property="dstandbydate" column="dstandbydate" jdbcType="VARCHAR"/>
           <result property="dvalidate" column="dvalidate" jdbcType="VARCHAR"/>
           <result property="dzgdate" column="dzgdate" jdbcType="VARCHAR"/>
           <result property="fassertcardflag" column="fassertcardflag" jdbcType="VARCHAR"/>
           <result property="fbillrowflag" column="fbillrowflag" jdbcType="INTEGER"/>
           <result property="fchecked" column="fchecked" jdbcType="INTEGER"/>
           <result property="flargess" column="flargess" jdbcType="VARCHAR"/>
           <result property="ftoouttransflag" column="ftoouttransflag" jdbcType="VARCHAR"/>
           <result property="hsl" column="hsl" jdbcType="NUMERIC"/>
           <result property="idesatype" column="idesatype" jdbcType="INTEGER"/>
           <result property="inccontimepoint" column="inccontimepoint" jdbcType="VARCHAR"/>
           <result property="inccontimepointname" column="inccontimepointname" jdbcType="VARCHAR"/>
           <result property="isok" column="isok" jdbcType="VARCHAR"/>
           <result property="materialcost" column="materialcost" jdbcType="NUMERIC"/>
           <result property="naccumtonum" column="naccumtonum" jdbcType="NUMERIC"/>
           <result property="naccumwastnum" column="naccumwastnum" jdbcType="NUMERIC"/>
           <result property="nbarcodenum" column="nbarcodenum" jdbcType="NUMERIC"/>
           <result property="ncorrespondastnum" column="ncorrespondastnum" jdbcType="NUMERIC"/>
           <result property="ncorrespondgrsnum" column="ncorrespondgrsnum" jdbcType="NUMERIC"/>
           <result property="ncorrespondnum" column="ncorrespondnum" jdbcType="NUMERIC"/>
           <result property="ncountnum" column="ncountnum" jdbcType="NUMERIC"/>
           <result property="nfeesettletimes" column="nfeesettletimes" jdbcType="INTEGER"/>
           <result property="ninassistnum" column="ninassistnum" jdbcType="NUMERIC"/>
           <result property="ningrossnum" column="ningrossnum" jdbcType="NUMERIC"/>
           <result property="ninnum" column="ninnum" jdbcType="NUMERIC"/>
           <result property="nkdnum" column="nkdnum" jdbcType="NUMERIC"/>
           <result property="nmny" column="nmny" jdbcType="NUMERIC"/>
           <result property="nneedinassistnum" column="nneedinassistnum" jdbcType="NUMERIC"/>
           <result property="noutassistnum" column="noutassistnum" jdbcType="NUMERIC"/>
           <result property="noutgrossnum" column="noutgrossnum" jdbcType="NUMERIC"/>
           <result property="noutnum" column="noutnum" jdbcType="NUMERIC"/>
           <result property="nplannedmny" column="nplannedmny" jdbcType="NUMERIC"/>
           <result property="nplannedprice" column="nplannedprice" jdbcType="NUMERIC"/>
           <result property="nprice" column="nprice" jdbcType="NUMERIC"/>
           <result property="npricesettlebill" column="npricesettlebill" jdbcType="INTEGER"/>
           <result property="nquotemny" column="nquotemny" jdbcType="NUMERIC"/>
           <result property="nquotentmny" column="nquotentmny" jdbcType="NUMERIC"/>
           <result property="nquotentprice" column="nquotentprice" jdbcType="NUMERIC"/>
           <result property="nquoteprice" column="nquoteprice" jdbcType="NUMERIC"/>
           <result property="nquoteunitnum" column="nquoteunitnum" jdbcType="NUMERIC"/>
           <result property="nquoteunitrate" column="nquoteunitrate" jdbcType="NUMERIC"/>
           <result property="nreplenishedastnum" column="nreplenishedastnum" jdbcType="NUMERIC"/>
           <result property="nreplenishednum" column="nreplenishednum" jdbcType="NUMERIC"/>
           <result property="nretastnum" column="nretastnum" jdbcType="NUMERIC"/>
           <result property="nretgrossnum" column="nretgrossnum" jdbcType="NUMERIC"/>
           <result property="nretnum" column="nretnum" jdbcType="NUMERIC"/>
           <result property="nsalemny" column="nsalemny" jdbcType="NUMERIC"/>
           <result property="nsaleprice" column="nsaleprice" jdbcType="NUMERIC"/>
           <result property="nshouldinnum" column="nshouldinnum" jdbcType="NUMERIC"/>
           <result property="nshouldoutassistnum" column="nshouldoutassistnum" jdbcType="NUMERIC"/>
           <result property="nshouldoutnum" column="nshouldoutnum" jdbcType="NUMERIC"/>
           <result property="ntarenum" column="ntarenum" jdbcType="NUMERIC"/>
           <result property="ntaxmny" column="ntaxmny" jdbcType="NUMERIC"/>
           <result property="ntaxprice" column="ntaxprice" jdbcType="NUMERIC"/>
           <result property="ntotalmatchnum" column="ntotalmatchnum" jdbcType="NUMERIC"/>
           <result property="ntotalreasonwastenum" column="ntotalreasonwastenum" jdbcType="NUMERIC"/>
           <result property="ntranoutastnum" column="ntranoutastnum" jdbcType="NUMERIC"/>
           <result property="ntranoutnum" column="ntranoutnum" jdbcType="NUMERIC"/>
           <result property="pkBodycalbody" column="pk_bodycalbody" jdbcType="VARCHAR"/>
           <result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
           <result property="pkCreqwareid" column="pk_creqwareid" jdbcType="VARCHAR"/>
           <result property="pkCubasdoc" column="pk_cubasdoc" jdbcType="VARCHAR"/>
           <result property="pkDefdoc1" column="pk_defdoc1" jdbcType="VARCHAR"/>
           <result property="pkDefdoc10" column="pk_defdoc10" jdbcType="VARCHAR"/>
           <result property="pkDefdoc11" column="pk_defdoc11" jdbcType="VARCHAR"/>
           <result property="pkDefdoc12" column="pk_defdoc12" jdbcType="VARCHAR"/>
           <result property="pkDefdoc13" column="pk_defdoc13" jdbcType="VARCHAR"/>
           <result property="pkDefdoc14" column="pk_defdoc14" jdbcType="VARCHAR"/>
           <result property="pkDefdoc15" column="pk_defdoc15" jdbcType="VARCHAR"/>
           <result property="pkDefdoc16" column="pk_defdoc16" jdbcType="VARCHAR"/>
           <result property="pkDefdoc17" column="pk_defdoc17" jdbcType="VARCHAR"/>
           <result property="pkDefdoc18" column="pk_defdoc18" jdbcType="VARCHAR"/>
           <result property="pkDefdoc19" column="pk_defdoc19" jdbcType="VARCHAR"/>
           <result property="pkDefdoc2" column="pk_defdoc2" jdbcType="VARCHAR"/>
           <result property="pkDefdoc20" column="pk_defdoc20" jdbcType="VARCHAR"/>
           <result property="pkDefdoc3" column="pk_defdoc3" jdbcType="VARCHAR"/>
           <result property="pkDefdoc4" column="pk_defdoc4" jdbcType="VARCHAR"/>
           <result property="pkDefdoc5" column="pk_defdoc5" jdbcType="VARCHAR"/>
           <result property="pkDefdoc6" column="pk_defdoc6" jdbcType="VARCHAR"/>
           <result property="pkDefdoc7" column="pk_defdoc7" jdbcType="VARCHAR"/>
           <result property="pkDefdoc8" column="pk_defdoc8" jdbcType="VARCHAR"/>
           <result property="pkDefdoc9" column="pk_defdoc9" jdbcType="VARCHAR"/>
           <result property="pkInvoicecorp" column="pk_invoicecorp" jdbcType="VARCHAR"/>
           <result property="pkMeasware" column="pk_measware" jdbcType="VARCHAR"/>
           <result property="pkPacksort" column="pk_packsort" jdbcType="VARCHAR"/>
           <result property="pkReqcorp" column="pk_reqcorp" jdbcType="VARCHAR"/>
           <result property="pkReqstoorg" column="pk_reqstoorg" jdbcType="VARCHAR"/>
           <result property="pkReturnreason" column="pk_returnreason" jdbcType="VARCHAR"/>
           <result property="process1" column="process1" jdbcType="VARCHAR"/>
           <result property="process2" column="process2" jdbcType="VARCHAR"/>
           <result property="process3" column="process3" jdbcType="VARCHAR"/>
           <result property="process4" column="process4" jdbcType="VARCHAR"/>
           <result property="process5" column="process5" jdbcType="VARCHAR"/>
           <result property="processcost" column="processcost" jdbcType="NUMERIC"/>
           <result property="processmanid" column="processmanid" jdbcType="VARCHAR"/>
           <result property="serialnum" column="serialnum" jdbcType="INTEGER"/>
           <result property="ts" column="ts" jdbcType="VARCHAR"/>
           <result property="vbatchcode" column="vbatchcode" jdbcType="VARCHAR"/>
           <result property="vbilltypeu8rm" column="vbilltypeu8rm" jdbcType="VARCHAR"/>
           <result property="vbodynote2" column="vbodynote2" jdbcType="VARCHAR"/>
           <result property="vcorrespondrowno" column="vcorrespondrowno" jdbcType="VARCHAR"/>
           <result property="vfirstbillcode" column="vfirstbillcode" jdbcType="VARCHAR"/>
           <result property="vfirstrowno" column="vfirstrowno" jdbcType="VARCHAR"/>
           <result property="vfree1" column="vfree1" jdbcType="VARCHAR"/>
           <result property="vfree10" column="vfree10" jdbcType="VARCHAR"/>
           <result property="vfree2" column="vfree2" jdbcType="VARCHAR"/>
           <result property="vfree3" column="vfree3" jdbcType="VARCHAR"/>
           <result property="vfree4" column="vfree4" jdbcType="VARCHAR"/>
           <result property="vfree5" column="vfree5" jdbcType="VARCHAR"/>
           <result property="vfree6" column="vfree6" jdbcType="VARCHAR"/>
           <result property="vfree7" column="vfree7" jdbcType="VARCHAR"/>
           <result property="vfree8" column="vfree8" jdbcType="VARCHAR"/>
           <result property="vfree9" column="vfree9" jdbcType="VARCHAR"/>
           <result property="vnotebody" column="vnotebody" jdbcType="VARCHAR"/>
           <result property="vproductbatch" column="vproductbatch" jdbcType="VARCHAR"/>
           <result property="vreceiveaddress" column="vreceiveaddress" jdbcType="VARCHAR"/>
           <result property="vsignwastcode" column="vsignwastcode" jdbcType="VARCHAR"/>
           <result property="vsignwastrowno" column="vsignwastrowno" jdbcType="VARCHAR"/>
           <result property="vsourcebillcode" column="vsourcebillcode" jdbcType="VARCHAR"/>
           <result property="vsourcerowno" column="vsourcerowno" jdbcType="VARCHAR"/>
           <result property="vsourcewastcode" column="vsourcewastcode" jdbcType="VARCHAR"/>
           <result property="vsourcewastrowno" column="vsourcewastrowno" jdbcType="VARCHAR"/>
           <result property="vsrc2billcode" column="vsrc2billcode" jdbcType="VARCHAR"/>
           <result property="vsrc2billrowno" column="vsrc2billrowno" jdbcType="VARCHAR"/>
           <result property="vtransfercode" column="vtransfercode" jdbcType="VARCHAR"/>
           <result property="vuserdef1" column="vuserdef1" jdbcType="VARCHAR"/>
           <result property="vuserdef10" column="vuserdef10" jdbcType="VARCHAR"/>
           <result property="vuserdef11" column="vuserdef11" jdbcType="VARCHAR"/>
           <result property="vuserdef12" column="vuserdef12" jdbcType="VARCHAR"/>
           <result property="vuserdef13" column="vuserdef13" jdbcType="VARCHAR"/>
           <result property="vuserdef14" column="vuserdef14" jdbcType="VARCHAR"/>
           <result property="vuserdef15" column="vuserdef15" jdbcType="VARCHAR"/>
           <result property="vuserdef16" column="vuserdef16" jdbcType="VARCHAR"/>
           <result property="vuserdef17" column="vuserdef17" jdbcType="VARCHAR"/>
           <result property="vuserdef18" column="vuserdef18" jdbcType="VARCHAR"/>
           <result property="vuserdef19" column="vuserdef19" jdbcType="VARCHAR"/>
           <result property="vuserdef2" column="vuserdef2" jdbcType="VARCHAR"/>
           <result property="vuserdef20" column="vuserdef20" jdbcType="VARCHAR"/>
           <result property="vuserdef3" column="vuserdef3" jdbcType="VARCHAR"/>
           <result property="vuserdef4" column="vuserdef4" jdbcType="VARCHAR"/>
           <result property="vuserdef5" column="vuserdef5" jdbcType="VARCHAR"/>
           <result property="vuserdef6" column="vuserdef6" jdbcType="VARCHAR"/>
           <result property="vuserdef7" column="vuserdef7" jdbcType="VARCHAR"/>
           <result property="vuserdef8" column="vuserdef8" jdbcType="VARCHAR"/>
           <result property="vuserdef9" column="vuserdef9" jdbcType="VARCHAR"/>
           <result property="vvehiclecode" column="vvehiclecode" jdbcType="VARCHAR"/>
           <result property="writeofftype" column="writeofftype" jdbcType="VARCHAR"/>
        </resultMap>
    <!-- 查询的字段-->
    <sql id = "IcGeneralBEntity_Base_Column_List">
        alrconfincomny
       ,alrconfinconum 
        ,bbarcodeclose 
        ,bomversion 
        ,bonroadflag 
        ,breturnprofit 
        ,bsafeprice 
        ,bsourcelargess 
        ,bsupplyflag 
        ,btoinzgflag 
        ,btoouttoiaflag 
        ,btooutzgflag 
        ,btou8rm 
        ,btransasset 
        ,bzgflag 
        ,bzgyfflag 
        ,castunitid 
        ,cbodybilltypecode 
        ,cbodywarehouseid 
        ,ccheckstateid 
        ,ccorrespondbid 
        ,ccorrespondcode 
        ,ccorrespondhid 
        ,ccorrespondtype 
        ,ccostobject 
        ,ccurrencytypeid 
        ,cfirstbillbid 
        ,cfirstbillhid 
        ,cfirsttype 
        ,cfreezeid 
        ,cgeneralbid 
        ,cgeneralhid
        ,cinvbasid
        ,cinventoryid
        ,corder_bb1id 
        ,cparentid 
        ,cprojectid 
        ,cprojectphaseid 
        ,cquotecurrency 
        ,cquoteunitid 
        ,creceieveid 
        ,creceiveareaid 
        ,creceivepointid 
        ,crowno 
        ,cselastunitid 
        ,csignwastbid 
        ,csignwasthid 
        ,csignwasttype 
        ,csourcebillbid 
        ,csourcebillhid 
        ,csourcetype 
        ,csourcewastbid 
        ,csourcewasthid 
        ,csourcewasttype 
        ,csrc2billbid 
        ,csrc2billhid 
        ,csrc2billtype 
        ,csumid 
        ,cvendorid 
        ,cworkcenterid 
        ,cworksiteid 
        ,cwp 
        ,dbizdate 
        ,ddeliverdate 
        ,dfirstbilldate 
        ,dr 
        ,drequiredate 
        ,drequiretime 
        ,dstandbydate 
        ,dvalidate 
        ,dzgdate 
        ,fassertcardflag 
        ,fbillrowflag 
        ,fchecked 
        ,flargess 
        ,ftoouttransflag 
        ,hsl 
        ,idesatype 
        ,inccontimepoint 
        ,inccontimepointname 
        ,isok 
        ,materialcost 
        ,naccumtonum 
        ,naccumwastnum 
        ,nbarcodenum 
        ,ncorrespondastnum 
        ,ncorrespondgrsnum 
        ,ncorrespondnum 
        ,ncountnum 
        ,nfeesettletimes 
        ,ninassistnum 
        ,ningrossnum 
        ,ninnum 
        ,nkdnum 
        ,nmny 
        ,nneedinassistnum 
        ,noutassistnum 
        ,noutgrossnum 
        ,noutnum 
        ,nplannedmny 
        ,nplannedprice 
        ,nprice 
        ,npricesettlebill 
        ,nquotemny 
        ,nquotentmny 
        ,nquotentprice 
        ,nquoteprice 
        ,nquoteunitnum 
        ,nquoteunitrate 
        ,nreplenishedastnum 
        ,nreplenishednum 
        ,nretastnum 
        ,nretgrossnum 
        ,nretnum 
        ,nsalemny 
        ,nsaleprice 
        ,nshouldinnum 
        ,nshouldoutassistnum 
        ,nshouldoutnum 
        ,ntarenum 
        ,ntaxmny 
        ,ntaxprice 
        ,ntotalmatchnum 
        ,ntotalreasonwastenum 
        ,ntranoutastnum 
        ,ntranoutnum 
        ,pk_bodycalbody 
        ,pk_corp 
        ,pk_creqwareid 
        ,pk_cubasdoc 
        ,pk_defdoc1 
        ,pk_defdoc10 
        ,pk_defdoc11 
        ,pk_defdoc12 
        ,pk_defdoc13 
        ,pk_defdoc14 
        ,pk_defdoc15 
        ,pk_defdoc16 
        ,pk_defdoc17 
        ,pk_defdoc18 
        ,pk_defdoc19 
        ,pk_defdoc2 
        ,pk_defdoc20 
        ,pk_defdoc3 
        ,pk_defdoc4 
        ,pk_defdoc5 
        ,pk_defdoc6 
        ,pk_defdoc7 
        ,pk_defdoc8 
        ,pk_defdoc9 
        ,pk_invoicecorp 
        ,pk_measware 
        ,pk_packsort 
        ,pk_reqcorp 
        ,pk_reqstoorg 
        ,pk_returnreason 
        ,process1 
        ,process2 
        ,process3 
        ,process4 
        ,process5 
        ,processcost 
        ,processmanid 
        ,serialnum 
        ,ts 
        ,vbatchcode 
        ,vbilltypeu8rm 
        ,vbodynote2 
        ,vcorrespondrowno 
        ,vfirstbillcode 
        ,vfirstrowno 
        ,vfree1 
        ,vfree10 
        ,vfree2 
        ,vfree3 
        ,vfree4 
        ,vfree5 
        ,vfree6 
        ,vfree7 
        ,vfree8 
        ,vfree9 
        ,vnotebody 
        ,vproductbatch 
        ,vreceiveaddress 
        ,vsignwastcode 
        ,vsignwastrowno 
        ,vsourcebillcode 
        ,vsourcerowno 
        ,vsourcewastcode 
        ,vsourcewastrowno 
        ,vsrc2billcode 
        ,vsrc2billrowno 
        ,vtransfercode 
        ,vuserdef1 
        ,vuserdef10 
        ,vuserdef11 
        ,vuserdef12 
        ,vuserdef13 
        ,vuserdef14 
        ,vuserdef15 
        ,vuserdef16 
        ,vuserdef17 
        ,vuserdef18 
        ,vuserdef19 
        ,vuserdef2 
        ,vuserdef20 
        ,vuserdef3 
        ,vuserdef4 
        ,vuserdef5 
        ,vuserdef6 
        ,vuserdef7 
        ,vuserdef8 
        ,vuserdef9 
        ,vvehiclecode 
        ,writeofftype 
     </sql>
 <!-- 查询 采用==查询 -->
 <select id="entity_list_base" resultMap="get-IcGeneralBEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity">
    select
    <include refid="IcGeneralBEntity_Base_Column_List" />
    from ic_general_b
    <trim prefix="where" prefixOverrides="and"> 
        <if test="alrconfincomny != null"> and alrconfincomny = #{alrconfincomny} </if>
            <if test="alrconfinconum != null"> and alrconfinconum = #{alrconfinconum} </if>
            <if test="bbarcodeclose != null and bbarcodeclose != ''"> and bbarcodeclose = #{bbarcodeclose} </if>
            <if test="bomversion != null and bomversion != ''"> and bomversion = #{bomversion} </if>
            <if test="bonroadflag != null and bonroadflag != ''"> and bonroadflag = #{bonroadflag} </if>
            <if test="breturnprofit != null and breturnprofit != ''"> and breturnprofit = #{breturnprofit} </if>
            <if test="bsafeprice != null and bsafeprice != ''"> and bsafeprice = #{bsafeprice} </if>
            <if test="bsourcelargess != null and bsourcelargess != ''"> and bsourcelargess = #{bsourcelargess} </if>
            <if test="bsupplyflag != null and bsupplyflag != ''"> and bsupplyflag = #{bsupplyflag} </if>
            <if test="btoinzgflag != null and btoinzgflag != ''"> and btoinzgflag = #{btoinzgflag} </if>
            <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> and btoouttoiaflag = #{btoouttoiaflag} </if>
            <if test="btooutzgflag != null and btooutzgflag != ''"> and btooutzgflag = #{btooutzgflag} </if>
            <if test="btou8rm != null and btou8rm != ''"> and btou8rm = #{btou8rm} </if>
            <if test="btransasset != null and btransasset != ''"> and btransasset = #{btransasset} </if>
            <if test="bzgflag != null and bzgflag != ''"> and bzgflag = #{bzgflag} </if>
            <if test="bzgyfflag != null and bzgyfflag != ''"> and bzgyfflag = #{bzgyfflag} </if>
            <if test="castunitid != null and castunitid != ''"> and castunitid = #{castunitid} </if>
            <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> and cbodybilltypecode = #{cbodybilltypecode} </if>
            <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> and cbodywarehouseid = #{cbodywarehouseid} </if>
            <if test="ccheckstateid != null and ccheckstateid != ''"> and ccheckstateid = #{ccheckstateid} </if>
            <if test="ccorrespondbid != null and ccorrespondbid != ''"> and ccorrespondbid = #{ccorrespondbid} </if>
            <if test="ccorrespondcode != null and ccorrespondcode != ''"> and ccorrespondcode = #{ccorrespondcode} </if>
            <if test="ccorrespondhid != null and ccorrespondhid != ''"> and ccorrespondhid = #{ccorrespondhid} </if>
            <if test="ccorrespondtype != null and ccorrespondtype != ''"> and ccorrespondtype = #{ccorrespondtype} </if>
            <if test="ccostobject != null and ccostobject != ''"> and ccostobject = #{ccostobject} </if>
            <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> and ccurrencytypeid = #{ccurrencytypeid} </if>
            <if test="cfirstbillbid != null and cfirstbillbid != ''"> and cfirstbillbid = #{cfirstbillbid} </if>
            <if test="cfirstbillhid != null and cfirstbillhid != ''"> and cfirstbillhid = #{cfirstbillhid} </if>
            <if test="cfirsttype != null and cfirsttype != ''"> and cfirsttype = #{cfirsttype} </if>
            <if test="cfreezeid != null and cfreezeid != ''"> and cfreezeid = #{cfreezeid} </if>
            <if test="cgeneralbid != null and cgeneralbid != ''"> and cgeneralbid = #{cgeneralbid} </if>
            <if test="cgeneralhid != null and cgeneralhid != ''"> and cgeneralhid = #{cgeneralhid} </if>
            <if test="cinvbasid != null and cinvbasid != ''"> and cinvbasid = #{cinvbasid} </if>
            <if test="cinventoryid != null and cinventoryid != ''"> and cinventoryid = #{cinventoryid} </if>
            <if test="corderBb1id != null and corderBb1id != ''"> and corder_bb1id = #{corderBb1id} </if>
            <if test="cparentid != null and cparentid != ''"> and cparentid = #{cparentid} </if>
            <if test="cprojectid != null and cprojectid != ''"> and cprojectid = #{cprojectid} </if>
            <if test="cprojectphaseid != null and cprojectphaseid != ''"> and cprojectphaseid = #{cprojectphaseid} </if>
            <if test="cquotecurrency != null and cquotecurrency != ''"> and cquotecurrency = #{cquotecurrency} </if>
            <if test="cquoteunitid != null and cquoteunitid != ''"> and cquoteunitid = #{cquoteunitid} </if>
            <if test="creceieveid != null and creceieveid != ''"> and creceieveid = #{creceieveid} </if>
            <if test="creceiveareaid != null and creceiveareaid != ''"> and creceiveareaid = #{creceiveareaid} </if>
            <if test="creceivepointid != null and creceivepointid != ''"> and creceivepointid = #{creceivepointid} </if>
            <if test="crowno != null and crowno != ''"> and crowno = #{crowno} </if>
            <if test="cselastunitid != null and cselastunitid != ''"> and cselastunitid = #{cselastunitid} </if>
            <if test="csignwastbid != null and csignwastbid != ''"> and csignwastbid = #{csignwastbid} </if>
            <if test="csignwasthid != null and csignwasthid != ''"> and csignwasthid = #{csignwasthid} </if>
            <if test="csignwasttype != null and csignwasttype != ''"> and csignwasttype = #{csignwasttype} </if>
            <if test="csourcebillbid != null and csourcebillbid != ''"> and csourcebillbid = #{csourcebillbid} </if>
            <if test="csourcebillhid != null and csourcebillhid != ''"> and csourcebillhid = #{csourcebillhid} </if>
            <if test="csourcetype != null and csourcetype != ''"> and csourcetype = #{csourcetype} </if>
            <if test="csourcewastbid != null and csourcewastbid != ''"> and csourcewastbid = #{csourcewastbid} </if>
            <if test="csourcewasthid != null and csourcewasthid != ''"> and csourcewasthid = #{csourcewasthid} </if>
            <if test="csourcewasttype != null and csourcewasttype != ''"> and csourcewasttype = #{csourcewasttype} </if>
            <if test="csrc2billbid != null and csrc2billbid != ''"> and csrc2billbid = #{csrc2billbid} </if>
            <if test="csrc2billhid != null and csrc2billhid != ''"> and csrc2billhid = #{csrc2billhid} </if>
            <if test="csrc2billtype != null and csrc2billtype != ''"> and csrc2billtype = #{csrc2billtype} </if>
            <if test="csumid != null and csumid != ''"> and csumid = #{csumid} </if>
            <if test="cvendorid != null and cvendorid != ''"> and cvendorid = #{cvendorid} </if>
            <if test="cworkcenterid != null and cworkcenterid != ''"> and cworkcenterid = #{cworkcenterid} </if>
            <if test="cworksiteid != null and cworksiteid != ''"> and cworksiteid = #{cworksiteid} </if>
            <if test="cwp != null and cwp != ''"> and cwp = #{cwp} </if>
            <if test="dbizdate != null and dbizdate != ''"> and dbizdate = #{dbizdate} </if>
            <if test="ddeliverdate != null and ddeliverdate != ''"> and ddeliverdate = #{ddeliverdate} </if>
            <if test="dfirstbilldate != null and dfirstbilldate != ''"> and dfirstbilldate = #{dfirstbilldate} </if>
            <if test="dr != null"> and dr = #{dr} </if>
            <if test="drequiredate != null and drequiredate != ''"> and drequiredate = #{drequiredate} </if>
            <if test="drequiretime != null and drequiretime != ''"> and drequiretime = #{drequiretime} </if>
            <if test="dstandbydate != null and dstandbydate != ''"> and dstandbydate = #{dstandbydate} </if>
            <if test="dvalidate != null and dvalidate != ''"> and dvalidate = #{dvalidate} </if>
            <if test="dzgdate != null and dzgdate != ''"> and dzgdate = #{dzgdate} </if>
            <if test="fassertcardflag != null and fassertcardflag != ''"> and fassertcardflag = #{fassertcardflag} </if>
            <if test="fbillrowflag != null"> and fbillrowflag = #{fbillrowflag} </if>
            <if test="fchecked != null"> and fchecked = #{fchecked} </if>
            <if test="flargess != null and flargess != ''"> and flargess = #{flargess} </if>
            <if test="ftoouttransflag != null and ftoouttransflag != ''"> and ftoouttransflag = #{ftoouttransflag} </if>
            <if test="hsl != null"> and hsl = #{hsl} </if>
            <if test="idesatype != null"> and idesatype = #{idesatype} </if>
            <if test="inccontimepoint != null and inccontimepoint != ''"> and inccontimepoint = #{inccontimepoint} </if>
            <if test="inccontimepointname != null and inccontimepointname != ''"> and inccontimepointname = #{inccontimepointname} </if>
            <if test="isok != null and isok != ''"> and isok = #{isok} </if>
            <if test="materialcost != null"> and materialcost = #{materialcost} </if>
            <if test="naccumtonum != null"> and naccumtonum = #{naccumtonum} </if>
            <if test="naccumwastnum != null"> and naccumwastnum = #{naccumwastnum} </if>
            <if test="nbarcodenum != null"> and nbarcodenum = #{nbarcodenum} </if>
            <if test="ncorrespondastnum != null"> and ncorrespondastnum = #{ncorrespondastnum} </if>
            <if test="ncorrespondgrsnum != null"> and ncorrespondgrsnum = #{ncorrespondgrsnum} </if>
            <if test="ncorrespondnum != null"> and ncorrespondnum = #{ncorrespondnum} </if>
            <if test="ncountnum != null"> and ncountnum = #{ncountnum} </if>
            <if test="nfeesettletimes != null"> and nfeesettletimes = #{nfeesettletimes} </if>
            <if test="ninassistnum != null"> and ninassistnum = #{ninassistnum} </if>
            <if test="ningrossnum != null"> and ningrossnum = #{ningrossnum} </if>
            <if test="ninnum != null"> and ninnum = #{ninnum} </if>
            <if test="nkdnum != null"> and nkdnum = #{nkdnum} </if>
            <if test="nmny != null"> and nmny = #{nmny} </if>
            <if test="nneedinassistnum != null"> and nneedinassistnum = #{nneedinassistnum} </if>
            <if test="noutassistnum != null"> and noutassistnum = #{noutassistnum} </if>
            <if test="noutgrossnum != null"> and noutgrossnum = #{noutgrossnum} </if>
            <if test="noutnum != null"> and noutnum = #{noutnum} </if>
            <if test="nplannedmny != null"> and nplannedmny = #{nplannedmny} </if>
            <if test="nplannedprice != null"> and nplannedprice = #{nplannedprice} </if>
            <if test="nprice != null"> and nprice = #{nprice} </if>
            <if test="npricesettlebill != null"> and npricesettlebill = #{npricesettlebill} </if>
            <if test="nquotemny != null"> and nquotemny = #{nquotemny} </if>
            <if test="nquotentmny != null"> and nquotentmny = #{nquotentmny} </if>
            <if test="nquotentprice != null"> and nquotentprice = #{nquotentprice} </if>
            <if test="nquoteprice != null"> and nquoteprice = #{nquoteprice} </if>
            <if test="nquoteunitnum != null"> and nquoteunitnum = #{nquoteunitnum} </if>
            <if test="nquoteunitrate != null"> and nquoteunitrate = #{nquoteunitrate} </if>
            <if test="nreplenishedastnum != null"> and nreplenishedastnum = #{nreplenishedastnum} </if>
            <if test="nreplenishednum != null"> and nreplenishednum = #{nreplenishednum} </if>
            <if test="nretastnum != null"> and nretastnum = #{nretastnum} </if>
            <if test="nretgrossnum != null"> and nretgrossnum = #{nretgrossnum} </if>
            <if test="nretnum != null"> and nretnum = #{nretnum} </if>
            <if test="nsalemny != null"> and nsalemny = #{nsalemny} </if>
            <if test="nsaleprice != null"> and nsaleprice = #{nsaleprice} </if>
            <if test="nshouldinnum != null"> and nshouldinnum = #{nshouldinnum} </if>
            <if test="nshouldoutassistnum != null"> and nshouldoutassistnum = #{nshouldoutassistnum} </if>
            <if test="nshouldoutnum != null"> and nshouldoutnum = #{nshouldoutnum} </if>
            <if test="ntarenum != null"> and ntarenum = #{ntarenum} </if>
            <if test="ntaxmny != null"> and ntaxmny = #{ntaxmny} </if>
            <if test="ntaxprice != null"> and ntaxprice = #{ntaxprice} </if>
            <if test="ntotalmatchnum != null"> and ntotalmatchnum = #{ntotalmatchnum} </if>
            <if test="ntotalreasonwastenum != null"> and ntotalreasonwastenum = #{ntotalreasonwastenum} </if>
            <if test="ntranoutastnum != null"> and ntranoutastnum = #{ntranoutastnum} </if>
            <if test="ntranoutnum != null"> and ntranoutnum = #{ntranoutnum} </if>
            <if test="pkBodycalbody != null and pkBodycalbody != ''"> and pk_bodycalbody = #{pkBodycalbody} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCreqwareid != null and pkCreqwareid != ''"> and pk_creqwareid = #{pkCreqwareid} </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
            <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and pk_defdoc1 = #{pkDefdoc1} </if>
            <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and pk_defdoc10 = #{pkDefdoc10} </if>
            <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and pk_defdoc11 = #{pkDefdoc11} </if>
            <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and pk_defdoc12 = #{pkDefdoc12} </if>
            <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and pk_defdoc13 = #{pkDefdoc13} </if>
            <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and pk_defdoc14 = #{pkDefdoc14} </if>
            <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and pk_defdoc15 = #{pkDefdoc15} </if>
            <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and pk_defdoc16 = #{pkDefdoc16} </if>
            <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and pk_defdoc17 = #{pkDefdoc17} </if>
            <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and pk_defdoc18 = #{pkDefdoc18} </if>
            <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and pk_defdoc19 = #{pkDefdoc19} </if>
            <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and pk_defdoc2 = #{pkDefdoc2} </if>
            <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and pk_defdoc20 = #{pkDefdoc20} </if>
            <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and pk_defdoc3 = #{pkDefdoc3} </if>
            <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and pk_defdoc4 = #{pkDefdoc4} </if>
            <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and pk_defdoc5 = #{pkDefdoc5} </if>
            <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and pk_defdoc6 = #{pkDefdoc6} </if>
            <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and pk_defdoc7 = #{pkDefdoc7} </if>
            <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and pk_defdoc8 = #{pkDefdoc8} </if>
            <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and pk_defdoc9 = #{pkDefdoc9} </if>
            <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> and pk_invoicecorp = #{pkInvoicecorp} </if>
            <if test="pkMeasware != null and pkMeasware != ''"> and pk_measware = #{pkMeasware} </if>
            <if test="pkPacksort != null and pkPacksort != ''"> and pk_packsort = #{pkPacksort} </if>
            <if test="pkReqcorp != null and pkReqcorp != ''"> and pk_reqcorp = #{pkReqcorp} </if>
            <if test="pkReqstoorg != null and pkReqstoorg != ''"> and pk_reqstoorg = #{pkReqstoorg} </if>
            <if test="pkReturnreason != null and pkReturnreason != ''"> and pk_returnreason = #{pkReturnreason} </if>
            <if test="process1 != null and process1 != ''"> and process1 = #{process1} </if>
            <if test="process2 != null and process2 != ''"> and process2 = #{process2} </if>
            <if test="process3 != null and process3 != ''"> and process3 = #{process3} </if>
            <if test="process4 != null and process4 != ''"> and process4 = #{process4} </if>
            <if test="process5 != null and process5 != ''"> and process5 = #{process5} </if>
            <if test="processcost != null"> and processcost = #{processcost} </if>
            <if test="processmanid != null and processmanid != ''"> and processmanid = #{processmanid} </if>
            <if test="serialnum != null"> and serialnum = #{serialnum} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="vbatchcode != null and vbatchcode != ''"> and vbatchcode = #{vbatchcode} </if>
            <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> and vbilltypeu8rm = #{vbilltypeu8rm} </if>
            <if test="vbodynote2 != null and vbodynote2 != ''"> and vbodynote2 = #{vbodynote2} </if>
            <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> and vcorrespondrowno = #{vcorrespondrowno} </if>
            <if test="vfirstbillcode != null and vfirstbillcode != ''"> and vfirstbillcode = #{vfirstbillcode} </if>
            <if test="vfirstrowno != null and vfirstrowno != ''"> and vfirstrowno = #{vfirstrowno} </if>
            <if test="vfree1 != null and vfree1 != ''"> and vfree1 = #{vfree1} </if>
            <if test="vfree10 != null and vfree10 != ''"> and vfree10 = #{vfree10} </if>
            <if test="vfree2 != null and vfree2 != ''"> and vfree2 = #{vfree2} </if>
            <if test="vfree3 != null and vfree3 != ''"> and vfree3 = #{vfree3} </if>
            <if test="vfree4 != null and vfree4 != ''"> and vfree4 = #{vfree4} </if>
            <if test="vfree5 != null and vfree5 != ''"> and vfree5 = #{vfree5} </if>
            <if test="vfree6 != null and vfree6 != ''"> and vfree6 = #{vfree6} </if>
            <if test="vfree7 != null and vfree7 != ''"> and vfree7 = #{vfree7} </if>
            <if test="vfree8 != null and vfree8 != ''"> and vfree8 = #{vfree8} </if>
            <if test="vfree9 != null and vfree9 != ''"> and vfree9 = #{vfree9} </if>
            <if test="vnotebody != null and vnotebody != ''"> and vnotebody = #{vnotebody} </if>
            <if test="vproductbatch != null and vproductbatch != ''"> and vproductbatch = #{vproductbatch} </if>
            <if test="vreceiveaddress != null and vreceiveaddress != ''"> and vreceiveaddress = #{vreceiveaddress} </if>
            <if test="vsignwastcode != null and vsignwastcode != ''"> and vsignwastcode = #{vsignwastcode} </if>
            <if test="vsignwastrowno != null and vsignwastrowno != ''"> and vsignwastrowno = #{vsignwastrowno} </if>
            <if test="vsourcebillcode != null and vsourcebillcode != ''"> and vsourcebillcode = #{vsourcebillcode} </if>
            <if test="vsourcerowno != null and vsourcerowno != ''"> and vsourcerowno = #{vsourcerowno} </if>
            <if test="vsourcewastcode != null and vsourcewastcode != ''"> and vsourcewastcode = #{vsourcewastcode} </if>
            <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> and vsourcewastrowno = #{vsourcewastrowno} </if>
            <if test="vsrc2billcode != null and vsrc2billcode != ''"> and vsrc2billcode = #{vsrc2billcode} </if>
            <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> and vsrc2billrowno = #{vsrc2billrowno} </if>
            <if test="vtransfercode != null and vtransfercode != ''"> and vtransfercode = #{vtransfercode} </if>
            <if test="vuserdef1 != null and vuserdef1 != ''"> and vuserdef1 = #{vuserdef1} </if>
            <if test="vuserdef10 != null and vuserdef10 != ''"> and vuserdef10 = #{vuserdef10} </if>
            <if test="vuserdef11 != null and vuserdef11 != ''"> and vuserdef11 = #{vuserdef11} </if>
            <if test="vuserdef12 != null and vuserdef12 != ''"> and vuserdef12 = #{vuserdef12} </if>
            <if test="vuserdef13 != null and vuserdef13 != ''"> and vuserdef13 = #{vuserdef13} </if>
            <if test="vuserdef14 != null and vuserdef14 != ''"> and vuserdef14 = #{vuserdef14} </if>
            <if test="vuserdef15 != null and vuserdef15 != ''"> and vuserdef15 = #{vuserdef15} </if>
            <if test="vuserdef16 != null and vuserdef16 != ''"> and vuserdef16 = #{vuserdef16} </if>
            <if test="vuserdef17 != null and vuserdef17 != ''"> and vuserdef17 = #{vuserdef17} </if>
            <if test="vuserdef18 != null and vuserdef18 != ''"> and vuserdef18 = #{vuserdef18} </if>
            <if test="vuserdef19 != null and vuserdef19 != ''"> and vuserdef19 = #{vuserdef19} </if>
            <if test="vuserdef2 != null and vuserdef2 != ''"> and vuserdef2 = #{vuserdef2} </if>
            <if test="vuserdef20 != null and vuserdef20 != ''"> and vuserdef20 = #{vuserdef20} </if>
            <if test="vuserdef3 != null and vuserdef3 != ''"> and vuserdef3 = #{vuserdef3} </if>
            <if test="vuserdef4 != null and vuserdef4 != ''"> and vuserdef4 = #{vuserdef4} </if>
            <if test="vuserdef5 != null and vuserdef5 != ''"> and vuserdef5 = #{vuserdef5} </if>
            <if test="vuserdef6 != null and vuserdef6 != ''"> and vuserdef6 = #{vuserdef6} </if>
            <if test="vuserdef7 != null and vuserdef7 != ''"> and vuserdef7 = #{vuserdef7} </if>
            <if test="vuserdef8 != null and vuserdef8 != ''"> and vuserdef8 = #{vuserdef8} </if>
            <if test="vuserdef9 != null and vuserdef9 != ''"> and vuserdef9 = #{vuserdef9} </if>
            <if test="vvehiclecode != null and vvehiclecode != ''"> and vvehiclecode = #{vvehiclecode} </if>
            <if test="writeofftype != null and writeofftype != ''"> and writeofftype = #{writeofftype} </if>
    and dr=0
    </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="queryAndCinvbasCode" resultType="com.hzya.frame.plugin.lets.entity.IcGeneralBEntity" parameterType = "String">
        select
            ic_general_b.alrconfincomny
             ,ic_general_b.alrconfinconum
             ,ic_general_b.bbarcodeclose
             ,ic_general_b.bomversion
             ,ic_general_b.bonroadflag
             ,ic_general_b.breturnprofit
             ,ic_general_b.bsafeprice
             ,ic_general_b.bsourcelargess
             ,ic_general_b.bsupplyflag
             ,ic_general_b.btoinzgflag
             ,ic_general_b.btoouttoiaflag
             ,ic_general_b.btooutzgflag
             ,ic_general_b.btou8rm
             ,ic_general_b.btransasset
             ,ic_general_b.bzgflag
             ,ic_general_b.bzgyfflag
             ,ic_general_b.castunitid
             ,ic_general_b.cbodybilltypecode
             ,ic_general_b.cbodywarehouseid
             ,ic_general_b.ccheckstateid
             ,ic_general_b.ccorrespondbid
             ,ic_general_b.ccorrespondcode
             ,ic_general_b.ccorrespondhid
             ,ic_general_b.ccorrespondtype
             ,ic_general_b.ccostobject
             ,ic_general_b.ccurrencytypeid
             ,ic_general_b.cfirstbillbid
             ,ic_general_b.cfirstbillhid
             ,ic_general_b.cfirsttype
             ,ic_general_b.cfreezeid
             ,ic_general_b.cgeneralbid
             ,ic_general_b.cgeneralhid
             ,BD_INVBASDOC.invcode AS cinvbascode
             ,ic_general_b.cinvbasid
             ,ic_general_b.cinventoryid
             ,ic_general_b.corder_bb1id
             ,ic_general_b.cparentid
             ,ic_general_b.cprojectid
             ,ic_general_b.cprojectphaseid
             ,ic_general_b.cquotecurrency
             ,ic_general_b.cquoteunitid
             ,ic_general_b.creceieveid
             ,ic_general_b.creceiveareaid
             ,ic_general_b.creceivepointid
             ,ic_general_b.crowno
             ,ic_general_b.cselastunitid
             ,ic_general_b.csignwastbid
             ,ic_general_b.csignwasthid
             ,ic_general_b.csignwasttype
             ,ic_general_b.csourcebillbid
             ,ic_general_b.csourcebillhid
             ,ic_general_b.csourcetype
             ,ic_general_b.csourcewastbid
             ,ic_general_b.csourcewasthid
             ,ic_general_b.csourcewasttype
             ,ic_general_b.csrc2billbid
             ,ic_general_b.csrc2billhid
             ,ic_general_b.csrc2billtype
             ,ic_general_b.csumid
             ,ic_general_b.cvendorid
             ,ic_general_b.cworkcenterid
             ,ic_general_b.cworksiteid
             ,ic_general_b.cwp
             ,ic_general_b.dbizdate
             ,ic_general_b.ddeliverdate
             ,ic_general_b.dfirstbilldate
             ,ic_general_b.dr
             ,ic_general_b.drequiredate
             ,ic_general_b.drequiretime
             ,ic_general_b.dstandbydate
             ,ic_general_b.dvalidate
             ,ic_general_b.dzgdate
             ,ic_general_b.fassertcardflag
             ,ic_general_b.fbillrowflag
             ,ic_general_b.fchecked
             ,ic_general_b.flargess
             ,ic_general_b.ftoouttransflag
             ,ic_general_b.hsl
             ,ic_general_b.idesatype
             ,ic_general_b.inccontimepoint
             ,ic_general_b.inccontimepointname
             ,ic_general_b.isok
             ,ic_general_b.materialcost
             ,ic_general_b.naccumtonum
             ,ic_general_b.naccumwastnum
             ,ic_general_b.nbarcodenum
             ,ic_general_b.ncorrespondastnum
             ,ic_general_b.ncorrespondgrsnum
             ,ic_general_b.ncorrespondnum
             ,ic_general_b.ncountnum
             ,ic_general_b.nfeesettletimes
             ,ic_general_b.ninassistnum
             ,ic_general_b.ningrossnum
             ,ic_general_b.ninnum
             ,ic_general_b.nkdnum
             ,ic_general_b.nmny
             ,ic_general_b.nneedinassistnum
             ,ic_general_b.noutassistnum
             ,ic_general_b.noutgrossnum
             ,ic_general_b.noutnum
             ,ic_general_b.nplannedmny
             ,ic_general_b.nplannedprice
             ,ic_general_b.nprice
             ,ic_general_b.npricesettlebill
             ,ic_general_b.nquotemny
             ,ic_general_b.nquotentmny
             ,ic_general_b.nquotentprice
             ,ic_general_b.nquoteprice
             ,ic_general_b.nquoteunitnum
             ,ic_general_b.nquoteunitrate
             ,ic_general_b.nreplenishedastnum
             ,ic_general_b.nreplenishednum
             ,ic_general_b.nretastnum
             ,ic_general_b.nretgrossnum
             ,ic_general_b.nretnum
             ,ic_general_b.nsalemny
             ,ic_general_b.nsaleprice
             ,ic_general_b.nshouldinnum
             ,ic_general_b.nshouldoutassistnum
             ,ic_general_b.nshouldoutnum
             ,ic_general_b.ntarenum
             ,ic_general_b.ntaxmny
             ,ic_general_b.ntaxprice
             ,ic_general_b.ntotalmatchnum
             ,ic_general_b.ntotalreasonwastenum
             ,ic_general_b.ntranoutastnum
             ,ic_general_b.ntranoutnum
             ,ic_general_b.pk_bodycalbody
             ,ic_general_b.pk_corp
             ,ic_general_b.pk_creqwareid
             ,ic_general_b.pk_cubasdoc
             ,ic_general_b.pk_defdoc1
             ,ic_general_b.pk_defdoc10
             ,ic_general_b.pk_defdoc11
             ,ic_general_b.pk_defdoc12
             ,ic_general_b.pk_defdoc13
             ,ic_general_b.pk_defdoc14
             ,ic_general_b.pk_defdoc15
             ,ic_general_b.pk_defdoc16
             ,ic_general_b.pk_defdoc17
             ,ic_general_b.pk_defdoc18
             ,ic_general_b.pk_defdoc19
             ,ic_general_b.pk_defdoc2
             ,ic_general_b.pk_defdoc20
             ,ic_general_b.pk_defdoc3
             ,ic_general_b.pk_defdoc4
             ,ic_general_b.pk_defdoc5
             ,ic_general_b.pk_defdoc6
             ,ic_general_b.pk_defdoc7
             ,ic_general_b.pk_defdoc8
             ,ic_general_b.pk_defdoc9
             ,ic_general_b.pk_invoicecorp
             ,ic_general_b.pk_measware
             ,ic_general_b.pk_packsort
             ,ic_general_b.pk_reqcorp
             ,ic_general_b.pk_reqstoorg
             ,ic_general_b.pk_returnreason
             ,ic_general_b.process1
             ,ic_general_b.process2
             ,ic_general_b.process3
             ,ic_general_b.process4
             ,ic_general_b.process5
             ,ic_general_b.processcost
             ,ic_general_b.processmanid
             ,ic_general_b.serialnum
             ,ic_general_b.ts
             ,ic_general_b.vbatchcode
             ,ic_general_b.vbilltypeu8rm
             ,ic_general_b.vbodynote2
             ,ic_general_b.vcorrespondrowno
             ,ic_general_b.vfirstbillcode
             ,ic_general_b.vfirstrowno
             ,ic_general_b.vfree1
             ,ic_general_b.vfree10
             ,ic_general_b.vfree2
             ,ic_general_b.vfree3
             ,ic_general_b.vfree4
             ,ic_general_b.vfree5
             ,ic_general_b.vfree6
             ,ic_general_b.vfree7
             ,ic_general_b.vfree8
             ,ic_general_b.vfree9
             ,ic_general_b.vnotebody
             ,ic_general_b.vproductbatch
             ,ic_general_b.vreceiveaddress
             ,ic_general_b.vsignwastcode
             ,ic_general_b.vsignwastrowno
             ,ic_general_b.vsourcebillcode
             ,ic_general_b.vsourcerowno
             ,ic_general_b.vsourcewastcode
             ,ic_general_b.vsourcewastrowno
             ,ic_general_b.vsrc2billcode
             ,ic_general_b.vsrc2billrowno
             ,ic_general_b.vtransfercode
             ,ic_general_b.vuserdef1
             ,ic_general_b.vuserdef10
             ,ic_general_b.vuserdef11
             ,ic_general_b.vuserdef12
             ,ic_general_b.vuserdef13
             ,ic_general_b.vuserdef14
             ,ic_general_b.vuserdef15
             ,ic_general_b.vuserdef16
             ,ic_general_b.vuserdef17
             ,ic_general_b.vuserdef18
             ,ic_general_b.vuserdef19
             ,ic_general_b.vuserdef2
             ,ic_general_b.vuserdef20
             ,ic_general_b.vuserdef3
             ,ic_general_b.vuserdef4
             ,ic_general_b.vuserdef5
             ,ic_general_b.vuserdef6
             ,ic_general_b.vuserdef7
             ,ic_general_b.vuserdef8
             ,ic_general_b.vuserdef9
             ,ic_general_b.vvehiclecode
             ,ic_general_b.writeofftype
        from ic_general_b ic_general_b
        LEFT JOIN BD_INVBASDOC BD_INVBASDOC ON IC_GENERAL_B.cinvbasid=BD_INVBASDOC.PK_INVBASDOC
        where ic_general_b.dr=0 and ic_general_b.cgeneralhid=#{cgeneralhid}
    </select>





    
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity">
        select  count(1)   from ic_general_b
    <trim prefix="where" prefixOverrides="and"> 
        <if test="alrconfincomny != null"> and alrconfincomny = #{alrconfincomny} </if>
            <if test="alrconfinconum != null"> and alrconfinconum = #{alrconfinconum} </if>
            <if test="bbarcodeclose != null and bbarcodeclose != ''"> and bbarcodeclose = #{bbarcodeclose} </if>
            <if test="bomversion != null and bomversion != ''"> and bomversion = #{bomversion} </if>
            <if test="bonroadflag != null and bonroadflag != ''"> and bonroadflag = #{bonroadflag} </if>
            <if test="breturnprofit != null and breturnprofit != ''"> and breturnprofit = #{breturnprofit} </if>
            <if test="bsafeprice != null and bsafeprice != ''"> and bsafeprice = #{bsafeprice} </if>
            <if test="bsourcelargess != null and bsourcelargess != ''"> and bsourcelargess = #{bsourcelargess} </if>
            <if test="bsupplyflag != null and bsupplyflag != ''"> and bsupplyflag = #{bsupplyflag} </if>
            <if test="btoinzgflag != null and btoinzgflag != ''"> and btoinzgflag = #{btoinzgflag} </if>
            <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> and btoouttoiaflag = #{btoouttoiaflag} </if>
            <if test="btooutzgflag != null and btooutzgflag != ''"> and btooutzgflag = #{btooutzgflag} </if>
            <if test="btou8rm != null and btou8rm != ''"> and btou8rm = #{btou8rm} </if>
            <if test="btransasset != null and btransasset != ''"> and btransasset = #{btransasset} </if>
            <if test="bzgflag != null and bzgflag != ''"> and bzgflag = #{bzgflag} </if>
            <if test="bzgyfflag != null and bzgyfflag != ''"> and bzgyfflag = #{bzgyfflag} </if>
            <if test="castunitid != null and castunitid != ''"> and castunitid = #{castunitid} </if>
            <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> and cbodybilltypecode = #{cbodybilltypecode} </if>
            <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> and cbodywarehouseid = #{cbodywarehouseid} </if>
            <if test="ccheckstateid != null and ccheckstateid != ''"> and ccheckstateid = #{ccheckstateid} </if>
            <if test="ccorrespondbid != null and ccorrespondbid != ''"> and ccorrespondbid = #{ccorrespondbid} </if>
            <if test="ccorrespondcode != null and ccorrespondcode != ''"> and ccorrespondcode = #{ccorrespondcode} </if>
            <if test="ccorrespondhid != null and ccorrespondhid != ''"> and ccorrespondhid = #{ccorrespondhid} </if>
            <if test="ccorrespondtype != null and ccorrespondtype != ''"> and ccorrespondtype = #{ccorrespondtype} </if>
            <if test="ccostobject != null and ccostobject != ''"> and ccostobject = #{ccostobject} </if>
            <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> and ccurrencytypeid = #{ccurrencytypeid} </if>
            <if test="cfirstbillbid != null and cfirstbillbid != ''"> and cfirstbillbid = #{cfirstbillbid} </if>
            <if test="cfirstbillhid != null and cfirstbillhid != ''"> and cfirstbillhid = #{cfirstbillhid} </if>
            <if test="cfirsttype != null and cfirsttype != ''"> and cfirsttype = #{cfirsttype} </if>
            <if test="cfreezeid != null and cfreezeid != ''"> and cfreezeid = #{cfreezeid} </if>
            <if test="cgeneralbid != null and cgeneralbid != ''"> and cgeneralbid = #{cgeneralbid} </if>
            <if test="cgeneralhid != null and cgeneralhid != ''"> and cgeneralhid = #{cgeneralhid} </if>
            <if test="cinvbasid != null and cinvbasid != ''"> and cinvbasid = #{cinvbasid} </if>
            <if test="cinventoryid != null and cinventoryid != ''"> and cinventoryid = #{cinventoryid} </if>
            <if test="corderBb1id != null and corderBb1id != ''"> and corder_bb1id = #{corderBb1id} </if>
            <if test="cparentid != null and cparentid != ''"> and cparentid = #{cparentid} </if>
            <if test="cprojectid != null and cprojectid != ''"> and cprojectid = #{cprojectid} </if>
            <if test="cprojectphaseid != null and cprojectphaseid != ''"> and cprojectphaseid = #{cprojectphaseid} </if>
            <if test="cquotecurrency != null and cquotecurrency != ''"> and cquotecurrency = #{cquotecurrency} </if>
            <if test="cquoteunitid != null and cquoteunitid != ''"> and cquoteunitid = #{cquoteunitid} </if>
            <if test="creceieveid != null and creceieveid != ''"> and creceieveid = #{creceieveid} </if>
            <if test="creceiveareaid != null and creceiveareaid != ''"> and creceiveareaid = #{creceiveareaid} </if>
            <if test="creceivepointid != null and creceivepointid != ''"> and creceivepointid = #{creceivepointid} </if>
            <if test="crowno != null and crowno != ''"> and crowno = #{crowno} </if>
            <if test="cselastunitid != null and cselastunitid != ''"> and cselastunitid = #{cselastunitid} </if>
            <if test="csignwastbid != null and csignwastbid != ''"> and csignwastbid = #{csignwastbid} </if>
            <if test="csignwasthid != null and csignwasthid != ''"> and csignwasthid = #{csignwasthid} </if>
            <if test="csignwasttype != null and csignwasttype != ''"> and csignwasttype = #{csignwasttype} </if>
            <if test="csourcebillbid != null and csourcebillbid != ''"> and csourcebillbid = #{csourcebillbid} </if>
            <if test="csourcebillhid != null and csourcebillhid != ''"> and csourcebillhid = #{csourcebillhid} </if>
            <if test="csourcetype != null and csourcetype != ''"> and csourcetype = #{csourcetype} </if>
            <if test="csourcewastbid != null and csourcewastbid != ''"> and csourcewastbid = #{csourcewastbid} </if>
            <if test="csourcewasthid != null and csourcewasthid != ''"> and csourcewasthid = #{csourcewasthid} </if>
            <if test="csourcewasttype != null and csourcewasttype != ''"> and csourcewasttype = #{csourcewasttype} </if>
            <if test="csrc2billbid != null and csrc2billbid != ''"> and csrc2billbid = #{csrc2billbid} </if>
            <if test="csrc2billhid != null and csrc2billhid != ''"> and csrc2billhid = #{csrc2billhid} </if>
            <if test="csrc2billtype != null and csrc2billtype != ''"> and csrc2billtype = #{csrc2billtype} </if>
            <if test="csumid != null and csumid != ''"> and csumid = #{csumid} </if>
            <if test="cvendorid != null and cvendorid != ''"> and cvendorid = #{cvendorid} </if>
            <if test="cworkcenterid != null and cworkcenterid != ''"> and cworkcenterid = #{cworkcenterid} </if>
            <if test="cworksiteid != null and cworksiteid != ''"> and cworksiteid = #{cworksiteid} </if>
            <if test="cwp != null and cwp != ''"> and cwp = #{cwp} </if>
            <if test="dbizdate != null and dbizdate != ''"> and dbizdate = #{dbizdate} </if>
            <if test="ddeliverdate != null and ddeliverdate != ''"> and ddeliverdate = #{ddeliverdate} </if>
            <if test="dfirstbilldate != null and dfirstbilldate != ''"> and dfirstbilldate = #{dfirstbilldate} </if>
            <if test="dr != null"> and dr = #{dr} </if>
            <if test="drequiredate != null and drequiredate != ''"> and drequiredate = #{drequiredate} </if>
            <if test="drequiretime != null and drequiretime != ''"> and drequiretime = #{drequiretime} </if>
            <if test="dstandbydate != null and dstandbydate != ''"> and dstandbydate = #{dstandbydate} </if>
            <if test="dvalidate != null and dvalidate != ''"> and dvalidate = #{dvalidate} </if>
            <if test="dzgdate != null and dzgdate != ''"> and dzgdate = #{dzgdate} </if>
            <if test="fassertcardflag != null and fassertcardflag != ''"> and fassertcardflag = #{fassertcardflag} </if>
            <if test="fbillrowflag != null"> and fbillrowflag = #{fbillrowflag} </if>
            <if test="fchecked != null"> and fchecked = #{fchecked} </if>
            <if test="flargess != null and flargess != ''"> and flargess = #{flargess} </if>
            <if test="ftoouttransflag != null and ftoouttransflag != ''"> and ftoouttransflag = #{ftoouttransflag} </if>
            <if test="hsl != null"> and hsl = #{hsl} </if>
            <if test="idesatype != null"> and idesatype = #{idesatype} </if>
            <if test="inccontimepoint != null and inccontimepoint != ''"> and inccontimepoint = #{inccontimepoint} </if>
            <if test="inccontimepointname != null and inccontimepointname != ''"> and inccontimepointname = #{inccontimepointname} </if>
            <if test="isok != null and isok != ''"> and isok = #{isok} </if>
            <if test="materialcost != null"> and materialcost = #{materialcost} </if>
            <if test="naccumtonum != null"> and naccumtonum = #{naccumtonum} </if>
            <if test="naccumwastnum != null"> and naccumwastnum = #{naccumwastnum} </if>
            <if test="nbarcodenum != null"> and nbarcodenum = #{nbarcodenum} </if>
            <if test="ncorrespondastnum != null"> and ncorrespondastnum = #{ncorrespondastnum} </if>
            <if test="ncorrespondgrsnum != null"> and ncorrespondgrsnum = #{ncorrespondgrsnum} </if>
            <if test="ncorrespondnum != null"> and ncorrespondnum = #{ncorrespondnum} </if>
            <if test="ncountnum != null"> and ncountnum = #{ncountnum} </if>
            <if test="nfeesettletimes != null"> and nfeesettletimes = #{nfeesettletimes} </if>
            <if test="ninassistnum != null"> and ninassistnum = #{ninassistnum} </if>
            <if test="ningrossnum != null"> and ningrossnum = #{ningrossnum} </if>
            <if test="ninnum != null"> and ninnum = #{ninnum} </if>
            <if test="nkdnum != null"> and nkdnum = #{nkdnum} </if>
            <if test="nmny != null"> and nmny = #{nmny} </if>
            <if test="nneedinassistnum != null"> and nneedinassistnum = #{nneedinassistnum} </if>
            <if test="noutassistnum != null"> and noutassistnum = #{noutassistnum} </if>
            <if test="noutgrossnum != null"> and noutgrossnum = #{noutgrossnum} </if>
            <if test="noutnum != null"> and noutnum = #{noutnum} </if>
            <if test="nplannedmny != null"> and nplannedmny = #{nplannedmny} </if>
            <if test="nplannedprice != null"> and nplannedprice = #{nplannedprice} </if>
            <if test="nprice != null"> and nprice = #{nprice} </if>
            <if test="npricesettlebill != null"> and npricesettlebill = #{npricesettlebill} </if>
            <if test="nquotemny != null"> and nquotemny = #{nquotemny} </if>
            <if test="nquotentmny != null"> and nquotentmny = #{nquotentmny} </if>
            <if test="nquotentprice != null"> and nquotentprice = #{nquotentprice} </if>
            <if test="nquoteprice != null"> and nquoteprice = #{nquoteprice} </if>
            <if test="nquoteunitnum != null"> and nquoteunitnum = #{nquoteunitnum} </if>
            <if test="nquoteunitrate != null"> and nquoteunitrate = #{nquoteunitrate} </if>
            <if test="nreplenishedastnum != null"> and nreplenishedastnum = #{nreplenishedastnum} </if>
            <if test="nreplenishednum != null"> and nreplenishednum = #{nreplenishednum} </if>
            <if test="nretastnum != null"> and nretastnum = #{nretastnum} </if>
            <if test="nretgrossnum != null"> and nretgrossnum = #{nretgrossnum} </if>
            <if test="nretnum != null"> and nretnum = #{nretnum} </if>
            <if test="nsalemny != null"> and nsalemny = #{nsalemny} </if>
            <if test="nsaleprice != null"> and nsaleprice = #{nsaleprice} </if>
            <if test="nshouldinnum != null"> and nshouldinnum = #{nshouldinnum} </if>
            <if test="nshouldoutassistnum != null"> and nshouldoutassistnum = #{nshouldoutassistnum} </if>
            <if test="nshouldoutnum != null"> and nshouldoutnum = #{nshouldoutnum} </if>
            <if test="ntarenum != null"> and ntarenum = #{ntarenum} </if>
            <if test="ntaxmny != null"> and ntaxmny = #{ntaxmny} </if>
            <if test="ntaxprice != null"> and ntaxprice = #{ntaxprice} </if>
            <if test="ntotalmatchnum != null"> and ntotalmatchnum = #{ntotalmatchnum} </if>
            <if test="ntotalreasonwastenum != null"> and ntotalreasonwastenum = #{ntotalreasonwastenum} </if>
            <if test="ntranoutastnum != null"> and ntranoutastnum = #{ntranoutastnum} </if>
            <if test="ntranoutnum != null"> and ntranoutnum = #{ntranoutnum} </if>
            <if test="pkBodycalbody != null and pkBodycalbody != ''"> and pk_bodycalbody = #{pkBodycalbody} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCreqwareid != null and pkCreqwareid != ''"> and pk_creqwareid = #{pkCreqwareid} </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
            <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and pk_defdoc1 = #{pkDefdoc1} </if>
            <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and pk_defdoc10 = #{pkDefdoc10} </if>
            <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and pk_defdoc11 = #{pkDefdoc11} </if>
            <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and pk_defdoc12 = #{pkDefdoc12} </if>
            <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and pk_defdoc13 = #{pkDefdoc13} </if>
            <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and pk_defdoc14 = #{pkDefdoc14} </if>
            <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and pk_defdoc15 = #{pkDefdoc15} </if>
            <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and pk_defdoc16 = #{pkDefdoc16} </if>
            <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and pk_defdoc17 = #{pkDefdoc17} </if>
            <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and pk_defdoc18 = #{pkDefdoc18} </if>
            <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and pk_defdoc19 = #{pkDefdoc19} </if>
            <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and pk_defdoc2 = #{pkDefdoc2} </if>
            <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and pk_defdoc20 = #{pkDefdoc20} </if>
            <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and pk_defdoc3 = #{pkDefdoc3} </if>
            <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and pk_defdoc4 = #{pkDefdoc4} </if>
            <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and pk_defdoc5 = #{pkDefdoc5} </if>
            <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and pk_defdoc6 = #{pkDefdoc6} </if>
            <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and pk_defdoc7 = #{pkDefdoc7} </if>
            <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and pk_defdoc8 = #{pkDefdoc8} </if>
            <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and pk_defdoc9 = #{pkDefdoc9} </if>
            <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> and pk_invoicecorp = #{pkInvoicecorp} </if>
            <if test="pkMeasware != null and pkMeasware != ''"> and pk_measware = #{pkMeasware} </if>
            <if test="pkPacksort != null and pkPacksort != ''"> and pk_packsort = #{pkPacksort} </if>
            <if test="pkReqcorp != null and pkReqcorp != ''"> and pk_reqcorp = #{pkReqcorp} </if>
            <if test="pkReqstoorg != null and pkReqstoorg != ''"> and pk_reqstoorg = #{pkReqstoorg} </if>
            <if test="pkReturnreason != null and pkReturnreason != ''"> and pk_returnreason = #{pkReturnreason} </if>
            <if test="process1 != null and process1 != ''"> and process1 = #{process1} </if>
            <if test="process2 != null and process2 != ''"> and process2 = #{process2} </if>
            <if test="process3 != null and process3 != ''"> and process3 = #{process3} </if>
            <if test="process4 != null and process4 != ''"> and process4 = #{process4} </if>
            <if test="process5 != null and process5 != ''"> and process5 = #{process5} </if>
            <if test="processcost != null"> and processcost = #{processcost} </if>
            <if test="processmanid != null and processmanid != ''"> and processmanid = #{processmanid} </if>
            <if test="serialnum != null"> and serialnum = #{serialnum} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="vbatchcode != null and vbatchcode != ''"> and vbatchcode = #{vbatchcode} </if>
            <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> and vbilltypeu8rm = #{vbilltypeu8rm} </if>
            <if test="vbodynote2 != null and vbodynote2 != ''"> and vbodynote2 = #{vbodynote2} </if>
            <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> and vcorrespondrowno = #{vcorrespondrowno} </if>
            <if test="vfirstbillcode != null and vfirstbillcode != ''"> and vfirstbillcode = #{vfirstbillcode} </if>
            <if test="vfirstrowno != null and vfirstrowno != ''"> and vfirstrowno = #{vfirstrowno} </if>
            <if test="vfree1 != null and vfree1 != ''"> and vfree1 = #{vfree1} </if>
            <if test="vfree10 != null and vfree10 != ''"> and vfree10 = #{vfree10} </if>
            <if test="vfree2 != null and vfree2 != ''"> and vfree2 = #{vfree2} </if>
            <if test="vfree3 != null and vfree3 != ''"> and vfree3 = #{vfree3} </if>
            <if test="vfree4 != null and vfree4 != ''"> and vfree4 = #{vfree4} </if>
            <if test="vfree5 != null and vfree5 != ''"> and vfree5 = #{vfree5} </if>
            <if test="vfree6 != null and vfree6 != ''"> and vfree6 = #{vfree6} </if>
            <if test="vfree7 != null and vfree7 != ''"> and vfree7 = #{vfree7} </if>
            <if test="vfree8 != null and vfree8 != ''"> and vfree8 = #{vfree8} </if>
            <if test="vfree9 != null and vfree9 != ''"> and vfree9 = #{vfree9} </if>
            <if test="vnotebody != null and vnotebody != ''"> and vnotebody = #{vnotebody} </if>
            <if test="vproductbatch != null and vproductbatch != ''"> and vproductbatch = #{vproductbatch} </if>
            <if test="vreceiveaddress != null and vreceiveaddress != ''"> and vreceiveaddress = #{vreceiveaddress} </if>
            <if test="vsignwastcode != null and vsignwastcode != ''"> and vsignwastcode = #{vsignwastcode} </if>
            <if test="vsignwastrowno != null and vsignwastrowno != ''"> and vsignwastrowno = #{vsignwastrowno} </if>
            <if test="vsourcebillcode != null and vsourcebillcode != ''"> and vsourcebillcode = #{vsourcebillcode} </if>
            <if test="vsourcerowno != null and vsourcerowno != ''"> and vsourcerowno = #{vsourcerowno} </if>
            <if test="vsourcewastcode != null and vsourcewastcode != ''"> and vsourcewastcode = #{vsourcewastcode} </if>
            <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> and vsourcewastrowno = #{vsourcewastrowno} </if>
            <if test="vsrc2billcode != null and vsrc2billcode != ''"> and vsrc2billcode = #{vsrc2billcode} </if>
            <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> and vsrc2billrowno = #{vsrc2billrowno} </if>
            <if test="vtransfercode != null and vtransfercode != ''"> and vtransfercode = #{vtransfercode} </if>
            <if test="vuserdef1 != null and vuserdef1 != ''"> and vuserdef1 = #{vuserdef1} </if>
            <if test="vuserdef10 != null and vuserdef10 != ''"> and vuserdef10 = #{vuserdef10} </if>
            <if test="vuserdef11 != null and vuserdef11 != ''"> and vuserdef11 = #{vuserdef11} </if>
            <if test="vuserdef12 != null and vuserdef12 != ''"> and vuserdef12 = #{vuserdef12} </if>
            <if test="vuserdef13 != null and vuserdef13 != ''"> and vuserdef13 = #{vuserdef13} </if>
            <if test="vuserdef14 != null and vuserdef14 != ''"> and vuserdef14 = #{vuserdef14} </if>
            <if test="vuserdef15 != null and vuserdef15 != ''"> and vuserdef15 = #{vuserdef15} </if>
            <if test="vuserdef16 != null and vuserdef16 != ''"> and vuserdef16 = #{vuserdef16} </if>
            <if test="vuserdef17 != null and vuserdef17 != ''"> and vuserdef17 = #{vuserdef17} </if>
            <if test="vuserdef18 != null and vuserdef18 != ''"> and vuserdef18 = #{vuserdef18} </if>
            <if test="vuserdef19 != null and vuserdef19 != ''"> and vuserdef19 = #{vuserdef19} </if>
            <if test="vuserdef2 != null and vuserdef2 != ''"> and vuserdef2 = #{vuserdef2} </if>
            <if test="vuserdef20 != null and vuserdef20 != ''"> and vuserdef20 = #{vuserdef20} </if>
            <if test="vuserdef3 != null and vuserdef3 != ''"> and vuserdef3 = #{vuserdef3} </if>
            <if test="vuserdef4 != null and vuserdef4 != ''"> and vuserdef4 = #{vuserdef4} </if>
            <if test="vuserdef5 != null and vuserdef5 != ''"> and vuserdef5 = #{vuserdef5} </if>
            <if test="vuserdef6 != null and vuserdef6 != ''"> and vuserdef6 = #{vuserdef6} </if>
            <if test="vuserdef7 != null and vuserdef7 != ''"> and vuserdef7 = #{vuserdef7} </if>
            <if test="vuserdef8 != null and vuserdef8 != ''"> and vuserdef8 = #{vuserdef8} </if>
            <if test="vuserdef9 != null and vuserdef9 != ''"> and vuserdef9 = #{vuserdef9} </if>
            <if test="vvehiclecode != null and vvehiclecode != ''"> and vvehiclecode = #{vvehiclecode} </if>
            <if test="writeofftype != null and writeofftype != ''"> and writeofftype = #{writeofftype} </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>

    <!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-IcGeneralBEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity">
    select
    <include refid="IcGeneralBEntity_Base_Column_List" />
    from ic_general_b
    <trim prefix="where" prefixOverrides="and"> 
        <if test="alrconfincomny != null"> and alrconfincomny like concat('%',#{alrconfincomny},'%') </if>
            <if test="alrconfinconum != null"> and alrconfinconum like concat('%',#{alrconfinconum},'%') </if>
            <if test="bbarcodeclose != null and bbarcodeclose != ''"> and bbarcodeclose like concat('%',#{bbarcodeclose},'%') </if>
            <if test="bomversion != null and bomversion != ''"> and bomversion like concat('%',#{bomversion},'%') </if>
            <if test="bonroadflag != null and bonroadflag != ''"> and bonroadflag like concat('%',#{bonroadflag},'%') </if>
            <if test="breturnprofit != null and breturnprofit != ''"> and breturnprofit like concat('%',#{breturnprofit},'%') </if>
            <if test="bsafeprice != null and bsafeprice != ''"> and bsafeprice like concat('%',#{bsafeprice},'%') </if>
            <if test="bsourcelargess != null and bsourcelargess != ''"> and bsourcelargess like concat('%',#{bsourcelargess},'%') </if>
            <if test="bsupplyflag != null and bsupplyflag != ''"> and bsupplyflag like concat('%',#{bsupplyflag},'%') </if>
            <if test="btoinzgflag != null and btoinzgflag != ''"> and btoinzgflag like concat('%',#{btoinzgflag},'%') </if>
            <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> and btoouttoiaflag like concat('%',#{btoouttoiaflag},'%') </if>
            <if test="btooutzgflag != null and btooutzgflag != ''"> and btooutzgflag like concat('%',#{btooutzgflag},'%') </if>
            <if test="btou8rm != null and btou8rm != ''"> and btou8rm like concat('%',#{btou8rm},'%') </if>
            <if test="btransasset != null and btransasset != ''"> and btransasset like concat('%',#{btransasset},'%') </if>
            <if test="bzgflag != null and bzgflag != ''"> and bzgflag like concat('%',#{bzgflag},'%') </if>
            <if test="bzgyfflag != null and bzgyfflag != ''"> and bzgyfflag like concat('%',#{bzgyfflag},'%') </if>
            <if test="castunitid != null and castunitid != ''"> and castunitid like concat('%',#{castunitid},'%') </if>
            <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> and cbodybilltypecode like concat('%',#{cbodybilltypecode},'%') </if>
            <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> and cbodywarehouseid like concat('%',#{cbodywarehouseid},'%') </if>
            <if test="ccheckstateid != null and ccheckstateid != ''"> and ccheckstateid like concat('%',#{ccheckstateid},'%') </if>
            <if test="ccorrespondbid != null and ccorrespondbid != ''"> and ccorrespondbid like concat('%',#{ccorrespondbid},'%') </if>
            <if test="ccorrespondcode != null and ccorrespondcode != ''"> and ccorrespondcode like concat('%',#{ccorrespondcode},'%') </if>
            <if test="ccorrespondhid != null and ccorrespondhid != ''"> and ccorrespondhid like concat('%',#{ccorrespondhid},'%') </if>
            <if test="ccorrespondtype != null and ccorrespondtype != ''"> and ccorrespondtype like concat('%',#{ccorrespondtype},'%') </if>
            <if test="ccostobject != null and ccostobject != ''"> and ccostobject like concat('%',#{ccostobject},'%') </if>
            <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> and ccurrencytypeid like concat('%',#{ccurrencytypeid},'%') </if>
            <if test="cfirstbillbid != null and cfirstbillbid != ''"> and cfirstbillbid like concat('%',#{cfirstbillbid},'%') </if>
            <if test="cfirstbillhid != null and cfirstbillhid != ''"> and cfirstbillhid like concat('%',#{cfirstbillhid},'%') </if>
            <if test="cfirsttype != null and cfirsttype != ''"> and cfirsttype like concat('%',#{cfirsttype},'%') </if>
            <if test="cfreezeid != null and cfreezeid != ''"> and cfreezeid like concat('%',#{cfreezeid},'%') </if>
            <if test="cgeneralbid != null and cgeneralbid != ''"> and cgeneralbid like concat('%',#{cgeneralbid},'%') </if>
            <if test="cgeneralhid != null and cgeneralhid != ''"> and cgeneralhid like concat('%',#{cgeneralhid},'%') </if>
            <if test="cinvbasid != null and cinvbasid != ''"> and cinvbasid like concat('%',#{cinvbasid},'%') </if>
            <if test="cinventoryid != null and cinventoryid != ''"> and cinventoryid like concat('%',#{cinventoryid},'%') </if>
            <if test="corderBb1id != null and corderBb1id != ''"> and corder_bb1id like concat('%',#{corderBb1id},'%') </if>
            <if test="cparentid != null and cparentid != ''"> and cparentid like concat('%',#{cparentid},'%') </if>
            <if test="cprojectid != null and cprojectid != ''"> and cprojectid like concat('%',#{cprojectid},'%') </if>
            <if test="cprojectphaseid != null and cprojectphaseid != ''"> and cprojectphaseid like concat('%',#{cprojectphaseid},'%') </if>
            <if test="cquotecurrency != null and cquotecurrency != ''"> and cquotecurrency like concat('%',#{cquotecurrency},'%') </if>
            <if test="cquoteunitid != null and cquoteunitid != ''"> and cquoteunitid like concat('%',#{cquoteunitid},'%') </if>
            <if test="creceieveid != null and creceieveid != ''"> and creceieveid like concat('%',#{creceieveid},'%') </if>
            <if test="creceiveareaid != null and creceiveareaid != ''"> and creceiveareaid like concat('%',#{creceiveareaid},'%') </if>
            <if test="creceivepointid != null and creceivepointid != ''"> and creceivepointid like concat('%',#{creceivepointid},'%') </if>
            <if test="crowno != null and crowno != ''"> and crowno like concat('%',#{crowno},'%') </if>
            <if test="cselastunitid != null and cselastunitid != ''"> and cselastunitid like concat('%',#{cselastunitid},'%') </if>
            <if test="csignwastbid != null and csignwastbid != ''"> and csignwastbid like concat('%',#{csignwastbid},'%') </if>
            <if test="csignwasthid != null and csignwasthid != ''"> and csignwasthid like concat('%',#{csignwasthid},'%') </if>
            <if test="csignwasttype != null and csignwasttype != ''"> and csignwasttype like concat('%',#{csignwasttype},'%') </if>
            <if test="csourcebillbid != null and csourcebillbid != ''"> and csourcebillbid like concat('%',#{csourcebillbid},'%') </if>
            <if test="csourcebillhid != null and csourcebillhid != ''"> and csourcebillhid like concat('%',#{csourcebillhid},'%') </if>
            <if test="csourcetype != null and csourcetype != ''"> and csourcetype like concat('%',#{csourcetype},'%') </if>
            <if test="csourcewastbid != null and csourcewastbid != ''"> and csourcewastbid like concat('%',#{csourcewastbid},'%') </if>
            <if test="csourcewasthid != null and csourcewasthid != ''"> and csourcewasthid like concat('%',#{csourcewasthid},'%') </if>
            <if test="csourcewasttype != null and csourcewasttype != ''"> and csourcewasttype like concat('%',#{csourcewasttype},'%') </if>
            <if test="csrc2billbid != null and csrc2billbid != ''"> and csrc2billbid like concat('%',#{csrc2billbid},'%') </if>
            <if test="csrc2billhid != null and csrc2billhid != ''"> and csrc2billhid like concat('%',#{csrc2billhid},'%') </if>
            <if test="csrc2billtype != null and csrc2billtype != ''"> and csrc2billtype like concat('%',#{csrc2billtype},'%') </if>
            <if test="csumid != null and csumid != ''"> and csumid like concat('%',#{csumid},'%') </if>
            <if test="cvendorid != null and cvendorid != ''"> and cvendorid like concat('%',#{cvendorid},'%') </if>
            <if test="cworkcenterid != null and cworkcenterid != ''"> and cworkcenterid like concat('%',#{cworkcenterid},'%') </if>
            <if test="cworksiteid != null and cworksiteid != ''"> and cworksiteid like concat('%',#{cworksiteid},'%') </if>
            <if test="cwp != null and cwp != ''"> and cwp like concat('%',#{cwp},'%') </if>
            <if test="dbizdate != null and dbizdate != ''"> and dbizdate like concat('%',#{dbizdate},'%') </if>
            <if test="ddeliverdate != null and ddeliverdate != ''"> and ddeliverdate like concat('%',#{ddeliverdate},'%') </if>
            <if test="dfirstbilldate != null and dfirstbilldate != ''"> and dfirstbilldate like concat('%',#{dfirstbilldate},'%') </if>
            <if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
            <if test="drequiredate != null and drequiredate != ''"> and drequiredate like concat('%',#{drequiredate},'%') </if>
            <if test="drequiretime != null and drequiretime != ''"> and drequiretime like concat('%',#{drequiretime},'%') </if>
            <if test="dstandbydate != null and dstandbydate != ''"> and dstandbydate like concat('%',#{dstandbydate},'%') </if>
            <if test="dvalidate != null and dvalidate != ''"> and dvalidate like concat('%',#{dvalidate},'%') </if>
            <if test="dzgdate != null and dzgdate != ''"> and dzgdate like concat('%',#{dzgdate},'%') </if>
            <if test="fassertcardflag != null and fassertcardflag != ''"> and fassertcardflag like concat('%',#{fassertcardflag},'%') </if>
            <if test="fbillrowflag != null"> and fbillrowflag like concat('%',#{fbillrowflag},'%') </if>
            <if test="fchecked != null"> and fchecked like concat('%',#{fchecked},'%') </if>
            <if test="flargess != null and flargess != ''"> and flargess like concat('%',#{flargess},'%') </if>
            <if test="ftoouttransflag != null and ftoouttransflag != ''"> and ftoouttransflag like concat('%',#{ftoouttransflag},'%') </if>
            <if test="hsl != null"> and hsl like concat('%',#{hsl},'%') </if>
            <if test="idesatype != null"> and idesatype like concat('%',#{idesatype},'%') </if>
            <if test="inccontimepoint != null and inccontimepoint != ''"> and inccontimepoint like concat('%',#{inccontimepoint},'%') </if>
            <if test="inccontimepointname != null and inccontimepointname != ''"> and inccontimepointname like concat('%',#{inccontimepointname},'%') </if>
            <if test="isok != null and isok != ''"> and isok like concat('%',#{isok},'%') </if>
            <if test="materialcost != null"> and materialcost like concat('%',#{materialcost},'%') </if>
            <if test="naccumtonum != null"> and naccumtonum like concat('%',#{naccumtonum},'%') </if>
            <if test="naccumwastnum != null"> and naccumwastnum like concat('%',#{naccumwastnum},'%') </if>
            <if test="nbarcodenum != null"> and nbarcodenum like concat('%',#{nbarcodenum},'%') </if>
            <if test="ncorrespondastnum != null"> and ncorrespondastnum like concat('%',#{ncorrespondastnum},'%') </if>
            <if test="ncorrespondgrsnum != null"> and ncorrespondgrsnum like concat('%',#{ncorrespondgrsnum},'%') </if>
            <if test="ncorrespondnum != null"> and ncorrespondnum like concat('%',#{ncorrespondnum},'%') </if>
            <if test="ncountnum != null"> and ncountnum like concat('%',#{ncountnum},'%') </if>
            <if test="nfeesettletimes != null"> and nfeesettletimes like concat('%',#{nfeesettletimes},'%') </if>
            <if test="ninassistnum != null"> and ninassistnum like concat('%',#{ninassistnum},'%') </if>
            <if test="ningrossnum != null"> and ningrossnum like concat('%',#{ningrossnum},'%') </if>
            <if test="ninnum != null"> and ninnum like concat('%',#{ninnum},'%') </if>
            <if test="nkdnum != null"> and nkdnum like concat('%',#{nkdnum},'%') </if>
            <if test="nmny != null"> and nmny like concat('%',#{nmny},'%') </if>
            <if test="nneedinassistnum != null"> and nneedinassistnum like concat('%',#{nneedinassistnum},'%') </if>
            <if test="noutassistnum != null"> and noutassistnum like concat('%',#{noutassistnum},'%') </if>
            <if test="noutgrossnum != null"> and noutgrossnum like concat('%',#{noutgrossnum},'%') </if>
            <if test="noutnum != null"> and noutnum like concat('%',#{noutnum},'%') </if>
            <if test="nplannedmny != null"> and nplannedmny like concat('%',#{nplannedmny},'%') </if>
            <if test="nplannedprice != null"> and nplannedprice like concat('%',#{nplannedprice},'%') </if>
            <if test="nprice != null"> and nprice like concat('%',#{nprice},'%') </if>
            <if test="npricesettlebill != null"> and npricesettlebill like concat('%',#{npricesettlebill},'%') </if>
            <if test="nquotemny != null"> and nquotemny like concat('%',#{nquotemny},'%') </if>
            <if test="nquotentmny != null"> and nquotentmny like concat('%',#{nquotentmny},'%') </if>
            <if test="nquotentprice != null"> and nquotentprice like concat('%',#{nquotentprice},'%') </if>
            <if test="nquoteprice != null"> and nquoteprice like concat('%',#{nquoteprice},'%') </if>
            <if test="nquoteunitnum != null"> and nquoteunitnum like concat('%',#{nquoteunitnum},'%') </if>
            <if test="nquoteunitrate != null"> and nquoteunitrate like concat('%',#{nquoteunitrate},'%') </if>
            <if test="nreplenishedastnum != null"> and nreplenishedastnum like concat('%',#{nreplenishedastnum},'%') </if>
            <if test="nreplenishednum != null"> and nreplenishednum like concat('%',#{nreplenishednum},'%') </if>
            <if test="nretastnum != null"> and nretastnum like concat('%',#{nretastnum},'%') </if>
            <if test="nretgrossnum != null"> and nretgrossnum like concat('%',#{nretgrossnum},'%') </if>
            <if test="nretnum != null"> and nretnum like concat('%',#{nretnum},'%') </if>
            <if test="nsalemny != null"> and nsalemny like concat('%',#{nsalemny},'%') </if>
            <if test="nsaleprice != null"> and nsaleprice like concat('%',#{nsaleprice},'%') </if>
            <if test="nshouldinnum != null"> and nshouldinnum like concat('%',#{nshouldinnum},'%') </if>
            <if test="nshouldoutassistnum != null"> and nshouldoutassistnum like concat('%',#{nshouldoutassistnum},'%') </if>
            <if test="nshouldoutnum != null"> and nshouldoutnum like concat('%',#{nshouldoutnum},'%') </if>
            <if test="ntarenum != null"> and ntarenum like concat('%',#{ntarenum},'%') </if>
            <if test="ntaxmny != null"> and ntaxmny like concat('%',#{ntaxmny},'%') </if>
            <if test="ntaxprice != null"> and ntaxprice like concat('%',#{ntaxprice},'%') </if>
            <if test="ntotalmatchnum != null"> and ntotalmatchnum like concat('%',#{ntotalmatchnum},'%') </if>
            <if test="ntotalreasonwastenum != null"> and ntotalreasonwastenum like concat('%',#{ntotalreasonwastenum},'%') </if>
            <if test="ntranoutastnum != null"> and ntranoutastnum like concat('%',#{ntranoutastnum},'%') </if>
            <if test="ntranoutnum != null"> and ntranoutnum like concat('%',#{ntranoutnum},'%') </if>
            <if test="pkBodycalbody != null and pkBodycalbody != ''"> and pk_bodycalbody like concat('%',#{pkBodycalbody},'%') </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
            <if test="pkCreqwareid != null and pkCreqwareid != ''"> and pk_creqwareid like concat('%',#{pkCreqwareid},'%') </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc like concat('%',#{pkCubasdoc},'%') </if>
            <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and pk_defdoc1 like concat('%',#{pkDefdoc1},'%') </if>
            <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and pk_defdoc10 like concat('%',#{pkDefdoc10},'%') </if>
            <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and pk_defdoc11 like concat('%',#{pkDefdoc11},'%') </if>
            <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and pk_defdoc12 like concat('%',#{pkDefdoc12},'%') </if>
            <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and pk_defdoc13 like concat('%',#{pkDefdoc13},'%') </if>
            <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and pk_defdoc14 like concat('%',#{pkDefdoc14},'%') </if>
            <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and pk_defdoc15 like concat('%',#{pkDefdoc15},'%') </if>
            <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and pk_defdoc16 like concat('%',#{pkDefdoc16},'%') </if>
            <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and pk_defdoc17 like concat('%',#{pkDefdoc17},'%') </if>
            <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and pk_defdoc18 like concat('%',#{pkDefdoc18},'%') </if>
            <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and pk_defdoc19 like concat('%',#{pkDefdoc19},'%') </if>
            <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and pk_defdoc2 like concat('%',#{pkDefdoc2},'%') </if>
            <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and pk_defdoc20 like concat('%',#{pkDefdoc20},'%') </if>
            <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and pk_defdoc3 like concat('%',#{pkDefdoc3},'%') </if>
            <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and pk_defdoc4 like concat('%',#{pkDefdoc4},'%') </if>
            <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and pk_defdoc5 like concat('%',#{pkDefdoc5},'%') </if>
            <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and pk_defdoc6 like concat('%',#{pkDefdoc6},'%') </if>
            <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and pk_defdoc7 like concat('%',#{pkDefdoc7},'%') </if>
            <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and pk_defdoc8 like concat('%',#{pkDefdoc8},'%') </if>
            <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and pk_defdoc9 like concat('%',#{pkDefdoc9},'%') </if>
            <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> and pk_invoicecorp like concat('%',#{pkInvoicecorp},'%') </if>
            <if test="pkMeasware != null and pkMeasware != ''"> and pk_measware like concat('%',#{pkMeasware},'%') </if>
            <if test="pkPacksort != null and pkPacksort != ''"> and pk_packsort like concat('%',#{pkPacksort},'%') </if>
            <if test="pkReqcorp != null and pkReqcorp != ''"> and pk_reqcorp like concat('%',#{pkReqcorp},'%') </if>
            <if test="pkReqstoorg != null and pkReqstoorg != ''"> and pk_reqstoorg like concat('%',#{pkReqstoorg},'%') </if>
            <if test="pkReturnreason != null and pkReturnreason != ''"> and pk_returnreason like concat('%',#{pkReturnreason},'%') </if>
            <if test="process1 != null and process1 != ''"> and process1 like concat('%',#{process1},'%') </if>
            <if test="process2 != null and process2 != ''"> and process2 like concat('%',#{process2},'%') </if>
            <if test="process3 != null and process3 != ''"> and process3 like concat('%',#{process3},'%') </if>
            <if test="process4 != null and process4 != ''"> and process4 like concat('%',#{process4},'%') </if>
            <if test="process5 != null and process5 != ''"> and process5 like concat('%',#{process5},'%') </if>
            <if test="processcost != null"> and processcost like concat('%',#{processcost},'%') </if>
            <if test="processmanid != null and processmanid != ''"> and processmanid like concat('%',#{processmanid},'%') </if>
            <if test="serialnum != null"> and serialnum like concat('%',#{serialnum},'%') </if>
            <if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
            <if test="vbatchcode != null and vbatchcode != ''"> and vbatchcode like concat('%',#{vbatchcode},'%') </if>
            <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> and vbilltypeu8rm like concat('%',#{vbilltypeu8rm},'%') </if>
            <if test="vbodynote2 != null and vbodynote2 != ''"> and vbodynote2 like concat('%',#{vbodynote2},'%') </if>
            <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> and vcorrespondrowno like concat('%',#{vcorrespondrowno},'%') </if>
            <if test="vfirstbillcode != null and vfirstbillcode != ''"> and vfirstbillcode like concat('%',#{vfirstbillcode},'%') </if>
            <if test="vfirstrowno != null and vfirstrowno != ''"> and vfirstrowno like concat('%',#{vfirstrowno},'%') </if>
            <if test="vfree1 != null and vfree1 != ''"> and vfree1 like concat('%',#{vfree1},'%') </if>
            <if test="vfree10 != null and vfree10 != ''"> and vfree10 like concat('%',#{vfree10},'%') </if>
            <if test="vfree2 != null and vfree2 != ''"> and vfree2 like concat('%',#{vfree2},'%') </if>
            <if test="vfree3 != null and vfree3 != ''"> and vfree3 like concat('%',#{vfree3},'%') </if>
            <if test="vfree4 != null and vfree4 != ''"> and vfree4 like concat('%',#{vfree4},'%') </if>
            <if test="vfree5 != null and vfree5 != ''"> and vfree5 like concat('%',#{vfree5},'%') </if>
            <if test="vfree6 != null and vfree6 != ''"> and vfree6 like concat('%',#{vfree6},'%') </if>
            <if test="vfree7 != null and vfree7 != ''"> and vfree7 like concat('%',#{vfree7},'%') </if>
            <if test="vfree8 != null and vfree8 != ''"> and vfree8 like concat('%',#{vfree8},'%') </if>
            <if test="vfree9 != null and vfree9 != ''"> and vfree9 like concat('%',#{vfree9},'%') </if>
            <if test="vnotebody != null and vnotebody != ''"> and vnotebody like concat('%',#{vnotebody},'%') </if>
            <if test="vproductbatch != null and vproductbatch != ''"> and vproductbatch like concat('%',#{vproductbatch},'%') </if>
            <if test="vreceiveaddress != null and vreceiveaddress != ''"> and vreceiveaddress like concat('%',#{vreceiveaddress},'%') </if>
            <if test="vsignwastcode != null and vsignwastcode != ''"> and vsignwastcode like concat('%',#{vsignwastcode},'%') </if>
            <if test="vsignwastrowno != null and vsignwastrowno != ''"> and vsignwastrowno like concat('%',#{vsignwastrowno},'%') </if>
            <if test="vsourcebillcode != null and vsourcebillcode != ''"> and vsourcebillcode like concat('%',#{vsourcebillcode},'%') </if>
            <if test="vsourcerowno != null and vsourcerowno != ''"> and vsourcerowno like concat('%',#{vsourcerowno},'%') </if>
            <if test="vsourcewastcode != null and vsourcewastcode != ''"> and vsourcewastcode like concat('%',#{vsourcewastcode},'%') </if>
            <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> and vsourcewastrowno like concat('%',#{vsourcewastrowno},'%') </if>
            <if test="vsrc2billcode != null and vsrc2billcode != ''"> and vsrc2billcode like concat('%',#{vsrc2billcode},'%') </if>
            <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> and vsrc2billrowno like concat('%',#{vsrc2billrowno},'%') </if>
            <if test="vtransfercode != null and vtransfercode != ''"> and vtransfercode like concat('%',#{vtransfercode},'%') </if>
            <if test="vuserdef1 != null and vuserdef1 != ''"> and vuserdef1 like concat('%',#{vuserdef1},'%') </if>
            <if test="vuserdef10 != null and vuserdef10 != ''"> and vuserdef10 like concat('%',#{vuserdef10},'%') </if>
            <if test="vuserdef11 != null and vuserdef11 != ''"> and vuserdef11 like concat('%',#{vuserdef11},'%') </if>
            <if test="vuserdef12 != null and vuserdef12 != ''"> and vuserdef12 like concat('%',#{vuserdef12},'%') </if>
            <if test="vuserdef13 != null and vuserdef13 != ''"> and vuserdef13 like concat('%',#{vuserdef13},'%') </if>
            <if test="vuserdef14 != null and vuserdef14 != ''"> and vuserdef14 like concat('%',#{vuserdef14},'%') </if>
            <if test="vuserdef15 != null and vuserdef15 != ''"> and vuserdef15 like concat('%',#{vuserdef15},'%') </if>
            <if test="vuserdef16 != null and vuserdef16 != ''"> and vuserdef16 like concat('%',#{vuserdef16},'%') </if>
            <if test="vuserdef17 != null and vuserdef17 != ''"> and vuserdef17 like concat('%',#{vuserdef17},'%') </if>
            <if test="vuserdef18 != null and vuserdef18 != ''"> and vuserdef18 like concat('%',#{vuserdef18},'%') </if>
            <if test="vuserdef19 != null and vuserdef19 != ''"> and vuserdef19 like concat('%',#{vuserdef19},'%') </if>
            <if test="vuserdef2 != null and vuserdef2 != ''"> and vuserdef2 like concat('%',#{vuserdef2},'%') </if>
            <if test="vuserdef20 != null and vuserdef20 != ''"> and vuserdef20 like concat('%',#{vuserdef20},'%') </if>
            <if test="vuserdef3 != null and vuserdef3 != ''"> and vuserdef3 like concat('%',#{vuserdef3},'%') </if>
            <if test="vuserdef4 != null and vuserdef4 != ''"> and vuserdef4 like concat('%',#{vuserdef4},'%') </if>
            <if test="vuserdef5 != null and vuserdef5 != ''"> and vuserdef5 like concat('%',#{vuserdef5},'%') </if>
            <if test="vuserdef6 != null and vuserdef6 != ''"> and vuserdef6 like concat('%',#{vuserdef6},'%') </if>
            <if test="vuserdef7 != null and vuserdef7 != ''"> and vuserdef7 like concat('%',#{vuserdef7},'%') </if>
            <if test="vuserdef8 != null and vuserdef8 != ''"> and vuserdef8 like concat('%',#{vuserdef8},'%') </if>
            <if test="vuserdef9 != null and vuserdef9 != ''"> and vuserdef9 like concat('%',#{vuserdef9},'%') </if>
            <if test="vvehiclecode != null and vvehiclecode != ''"> and vvehiclecode like concat('%',#{vvehiclecode},'%') </if>
            <if test="writeofftype != null and writeofftype != ''"> and writeofftype like concat('%',#{writeofftype},'%') </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>

<!-- 查询列表 字段采用or格式 -->
<select id="IcGeneralBentity_list_or" resultMap="get-IcGeneralBEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity">
    select
    <include refid="IcGeneralBEntity_Base_Column_List" />
    from ic_general_b
    <trim prefix="where" prefixOverrides="and"> 
         <if test="alrconfincomny != null"> or alrconfincomny = #{alrconfincomny} </if>
             <if test="alrconfinconum != null"> or alrconfinconum = #{alrconfinconum} </if>
             <if test="bbarcodeclose != null and bbarcodeclose != ''"> or bbarcodeclose = #{bbarcodeclose} </if>
             <if test="bomversion != null and bomversion != ''"> or bomversion = #{bomversion} </if>
             <if test="bonroadflag != null and bonroadflag != ''"> or bonroadflag = #{bonroadflag} </if>
             <if test="breturnprofit != null and breturnprofit != ''"> or breturnprofit = #{breturnprofit} </if>
             <if test="bsafeprice != null and bsafeprice != ''"> or bsafeprice = #{bsafeprice} </if>
             <if test="bsourcelargess != null and bsourcelargess != ''"> or bsourcelargess = #{bsourcelargess} </if>
             <if test="bsupplyflag != null and bsupplyflag != ''"> or bsupplyflag = #{bsupplyflag} </if>
             <if test="btoinzgflag != null and btoinzgflag != ''"> or btoinzgflag = #{btoinzgflag} </if>
             <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> or btoouttoiaflag = #{btoouttoiaflag} </if>
             <if test="btooutzgflag != null and btooutzgflag != ''"> or btooutzgflag = #{btooutzgflag} </if>
             <if test="btou8rm != null and btou8rm != ''"> or btou8rm = #{btou8rm} </if>
             <if test="btransasset != null and btransasset != ''"> or btransasset = #{btransasset} </if>
             <if test="bzgflag != null and bzgflag != ''"> or bzgflag = #{bzgflag} </if>
             <if test="bzgyfflag != null and bzgyfflag != ''"> or bzgyfflag = #{bzgyfflag} </if>
             <if test="castunitid != null and castunitid != ''"> or castunitid = #{castunitid} </if>
             <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> or cbodybilltypecode = #{cbodybilltypecode} </if>
             <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> or cbodywarehouseid = #{cbodywarehouseid} </if>
             <if test="ccheckstateid != null and ccheckstateid != ''"> or ccheckstateid = #{ccheckstateid} </if>
             <if test="ccorrespondbid != null and ccorrespondbid != ''"> or ccorrespondbid = #{ccorrespondbid} </if>
             <if test="ccorrespondcode != null and ccorrespondcode != ''"> or ccorrespondcode = #{ccorrespondcode} </if>
             <if test="ccorrespondhid != null and ccorrespondhid != ''"> or ccorrespondhid = #{ccorrespondhid} </if>
             <if test="ccorrespondtype != null and ccorrespondtype != ''"> or ccorrespondtype = #{ccorrespondtype} </if>
             <if test="ccostobject != null and ccostobject != ''"> or ccostobject = #{ccostobject} </if>
             <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> or ccurrencytypeid = #{ccurrencytypeid} </if>
             <if test="cfirstbillbid != null and cfirstbillbid != ''"> or cfirstbillbid = #{cfirstbillbid} </if>
             <if test="cfirstbillhid != null and cfirstbillhid != ''"> or cfirstbillhid = #{cfirstbillhid} </if>
             <if test="cfirsttype != null and cfirsttype != ''"> or cfirsttype = #{cfirsttype} </if>
             <if test="cfreezeid != null and cfreezeid != ''"> or cfreezeid = #{cfreezeid} </if>
             <if test="cgeneralbid != null and cgeneralbid != ''"> or cgeneralbid = #{cgeneralbid} </if>
             <if test="cgeneralhid != null and cgeneralhid != ''"> or cgeneralhid = #{cgeneralhid} </if>
             <if test="cinvbasid != null and cinvbasid != ''"> or cinvbasid = #{cinvbasid} </if>
             <if test="cinventoryid != null and cinventoryid != ''"> or cinventoryid = #{cinventoryid} </if>
             <if test="corderBb1id != null and corderBb1id != ''"> or corder_bb1id = #{corderBb1id} </if>
             <if test="cparentid != null and cparentid != ''"> or cparentid = #{cparentid} </if>
             <if test="cprojectid != null and cprojectid != ''"> or cprojectid = #{cprojectid} </if>
             <if test="cprojectphaseid != null and cprojectphaseid != ''"> or cprojectphaseid = #{cprojectphaseid} </if>
             <if test="cquotecurrency != null and cquotecurrency != ''"> or cquotecurrency = #{cquotecurrency} </if>
             <if test="cquoteunitid != null and cquoteunitid != ''"> or cquoteunitid = #{cquoteunitid} </if>
             <if test="creceieveid != null and creceieveid != ''"> or creceieveid = #{creceieveid} </if>
             <if test="creceiveareaid != null and creceiveareaid != ''"> or creceiveareaid = #{creceiveareaid} </if>
             <if test="creceivepointid != null and creceivepointid != ''"> or creceivepointid = #{creceivepointid} </if>
             <if test="crowno != null and crowno != ''"> or crowno = #{crowno} </if>
             <if test="cselastunitid != null and cselastunitid != ''"> or cselastunitid = #{cselastunitid} </if>
             <if test="csignwastbid != null and csignwastbid != ''"> or csignwastbid = #{csignwastbid} </if>
             <if test="csignwasthid != null and csignwasthid != ''"> or csignwasthid = #{csignwasthid} </if>
             <if test="csignwasttype != null and csignwasttype != ''"> or csignwasttype = #{csignwasttype} </if>
             <if test="csourcebillbid != null and csourcebillbid != ''"> or csourcebillbid = #{csourcebillbid} </if>
             <if test="csourcebillhid != null and csourcebillhid != ''"> or csourcebillhid = #{csourcebillhid} </if>
             <if test="csourcetype != null and csourcetype != ''"> or csourcetype = #{csourcetype} </if>
             <if test="csourcewastbid != null and csourcewastbid != ''"> or csourcewastbid = #{csourcewastbid} </if>
             <if test="csourcewasthid != null and csourcewasthid != ''"> or csourcewasthid = #{csourcewasthid} </if>
             <if test="csourcewasttype != null and csourcewasttype != ''"> or csourcewasttype = #{csourcewasttype} </if>
             <if test="csrc2billbid != null and csrc2billbid != ''"> or csrc2billbid = #{csrc2billbid} </if>
             <if test="csrc2billhid != null and csrc2billhid != ''"> or csrc2billhid = #{csrc2billhid} </if>
             <if test="csrc2billtype != null and csrc2billtype != ''"> or csrc2billtype = #{csrc2billtype} </if>
             <if test="csumid != null and csumid != ''"> or csumid = #{csumid} </if>
             <if test="cvendorid != null and cvendorid != ''"> or cvendorid = #{cvendorid} </if>
             <if test="cworkcenterid != null and cworkcenterid != ''"> or cworkcenterid = #{cworkcenterid} </if>
             <if test="cworksiteid != null and cworksiteid != ''"> or cworksiteid = #{cworksiteid} </if>
             <if test="cwp != null and cwp != ''"> or cwp = #{cwp} </if>
             <if test="dbizdate != null and dbizdate != ''"> or dbizdate = #{dbizdate} </if>
             <if test="ddeliverdate != null and ddeliverdate != ''"> or ddeliverdate = #{ddeliverdate} </if>
             <if test="dfirstbilldate != null and dfirstbilldate != ''"> or dfirstbilldate = #{dfirstbilldate} </if>
             <if test="dr != null"> or dr = #{dr} </if>
             <if test="drequiredate != null and drequiredate != ''"> or drequiredate = #{drequiredate} </if>
             <if test="drequiretime != null and drequiretime != ''"> or drequiretime = #{drequiretime} </if>
             <if test="dstandbydate != null and dstandbydate != ''"> or dstandbydate = #{dstandbydate} </if>
             <if test="dvalidate != null and dvalidate != ''"> or dvalidate = #{dvalidate} </if>
             <if test="dzgdate != null and dzgdate != ''"> or dzgdate = #{dzgdate} </if>
             <if test="fassertcardflag != null and fassertcardflag != ''"> or fassertcardflag = #{fassertcardflag} </if>
             <if test="fbillrowflag != null"> or fbillrowflag = #{fbillrowflag} </if>
             <if test="fchecked != null"> or fchecked = #{fchecked} </if>
             <if test="flargess != null and flargess != ''"> or flargess = #{flargess} </if>
             <if test="ftoouttransflag != null and ftoouttransflag != ''"> or ftoouttransflag = #{ftoouttransflag} </if>
             <if test="hsl != null"> or hsl = #{hsl} </if>
             <if test="idesatype != null"> or idesatype = #{idesatype} </if>
             <if test="inccontimepoint != null and inccontimepoint != ''"> or inccontimepoint = #{inccontimepoint} </if>
             <if test="inccontimepointname != null and inccontimepointname != ''"> or inccontimepointname = #{inccontimepointname} </if>
             <if test="isok != null and isok != ''"> or isok = #{isok} </if>
             <if test="materialcost != null"> or materialcost = #{materialcost} </if>
             <if test="naccumtonum != null"> or naccumtonum = #{naccumtonum} </if>
             <if test="naccumwastnum != null"> or naccumwastnum = #{naccumwastnum} </if>
             <if test="nbarcodenum != null"> or nbarcodenum = #{nbarcodenum} </if>
             <if test="ncorrespondastnum != null"> or ncorrespondastnum = #{ncorrespondastnum} </if>
             <if test="ncorrespondgrsnum != null"> or ncorrespondgrsnum = #{ncorrespondgrsnum} </if>
             <if test="ncorrespondnum != null"> or ncorrespondnum = #{ncorrespondnum} </if>
             <if test="ncountnum != null"> or ncountnum = #{ncountnum} </if>
             <if test="nfeesettletimes != null"> or nfeesettletimes = #{nfeesettletimes} </if>
             <if test="ninassistnum != null"> or ninassistnum = #{ninassistnum} </if>
             <if test="ningrossnum != null"> or ningrossnum = #{ningrossnum} </if>
             <if test="ninnum != null"> or ninnum = #{ninnum} </if>
             <if test="nkdnum != null"> or nkdnum = #{nkdnum} </if>
             <if test="nmny != null"> or nmny = #{nmny} </if>
             <if test="nneedinassistnum != null"> or nneedinassistnum = #{nneedinassistnum} </if>
             <if test="noutassistnum != null"> or noutassistnum = #{noutassistnum} </if>
             <if test="noutgrossnum != null"> or noutgrossnum = #{noutgrossnum} </if>
             <if test="noutnum != null"> or noutnum = #{noutnum} </if>
             <if test="nplannedmny != null"> or nplannedmny = #{nplannedmny} </if>
             <if test="nplannedprice != null"> or nplannedprice = #{nplannedprice} </if>
             <if test="nprice != null"> or nprice = #{nprice} </if>
             <if test="npricesettlebill != null"> or npricesettlebill = #{npricesettlebill} </if>
             <if test="nquotemny != null"> or nquotemny = #{nquotemny} </if>
             <if test="nquotentmny != null"> or nquotentmny = #{nquotentmny} </if>
             <if test="nquotentprice != null"> or nquotentprice = #{nquotentprice} </if>
             <if test="nquoteprice != null"> or nquoteprice = #{nquoteprice} </if>
             <if test="nquoteunitnum != null"> or nquoteunitnum = #{nquoteunitnum} </if>
             <if test="nquoteunitrate != null"> or nquoteunitrate = #{nquoteunitrate} </if>
             <if test="nreplenishedastnum != null"> or nreplenishedastnum = #{nreplenishedastnum} </if>
             <if test="nreplenishednum != null"> or nreplenishednum = #{nreplenishednum} </if>
             <if test="nretastnum != null"> or nretastnum = #{nretastnum} </if>
             <if test="nretgrossnum != null"> or nretgrossnum = #{nretgrossnum} </if>
             <if test="nretnum != null"> or nretnum = #{nretnum} </if>
             <if test="nsalemny != null"> or nsalemny = #{nsalemny} </if>
             <if test="nsaleprice != null"> or nsaleprice = #{nsaleprice} </if>
             <if test="nshouldinnum != null"> or nshouldinnum = #{nshouldinnum} </if>
             <if test="nshouldoutassistnum != null"> or nshouldoutassistnum = #{nshouldoutassistnum} </if>
             <if test="nshouldoutnum != null"> or nshouldoutnum = #{nshouldoutnum} </if>
             <if test="ntarenum != null"> or ntarenum = #{ntarenum} </if>
             <if test="ntaxmny != null"> or ntaxmny = #{ntaxmny} </if>
             <if test="ntaxprice != null"> or ntaxprice = #{ntaxprice} </if>
             <if test="ntotalmatchnum != null"> or ntotalmatchnum = #{ntotalmatchnum} </if>
             <if test="ntotalreasonwastenum != null"> or ntotalreasonwastenum = #{ntotalreasonwastenum} </if>
             <if test="ntranoutastnum != null"> or ntranoutastnum = #{ntranoutastnum} </if>
             <if test="ntranoutnum != null"> or ntranoutnum = #{ntranoutnum} </if>
             <if test="pkBodycalbody != null and pkBodycalbody != ''"> or pk_bodycalbody = #{pkBodycalbody} </if>
             <if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
             <if test="pkCreqwareid != null and pkCreqwareid != ''"> or pk_creqwareid = #{pkCreqwareid} </if>
             <if test="pkCubasdoc != null and pkCubasdoc != ''"> or pk_cubasdoc = #{pkCubasdoc} </if>
             <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> or pk_defdoc1 = #{pkDefdoc1} </if>
             <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> or pk_defdoc10 = #{pkDefdoc10} </if>
             <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> or pk_defdoc11 = #{pkDefdoc11} </if>
             <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> or pk_defdoc12 = #{pkDefdoc12} </if>
             <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> or pk_defdoc13 = #{pkDefdoc13} </if>
             <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> or pk_defdoc14 = #{pkDefdoc14} </if>
             <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> or pk_defdoc15 = #{pkDefdoc15} </if>
             <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> or pk_defdoc16 = #{pkDefdoc16} </if>
             <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> or pk_defdoc17 = #{pkDefdoc17} </if>
             <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> or pk_defdoc18 = #{pkDefdoc18} </if>
             <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> or pk_defdoc19 = #{pkDefdoc19} </if>
             <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> or pk_defdoc2 = #{pkDefdoc2} </if>
             <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> or pk_defdoc20 = #{pkDefdoc20} </if>
             <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> or pk_defdoc3 = #{pkDefdoc3} </if>
             <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> or pk_defdoc4 = #{pkDefdoc4} </if>
             <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> or pk_defdoc5 = #{pkDefdoc5} </if>
             <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> or pk_defdoc6 = #{pkDefdoc6} </if>
             <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> or pk_defdoc7 = #{pkDefdoc7} </if>
             <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> or pk_defdoc8 = #{pkDefdoc8} </if>
             <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> or pk_defdoc9 = #{pkDefdoc9} </if>
             <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> or pk_invoicecorp = #{pkInvoicecorp} </if>
             <if test="pkMeasware != null and pkMeasware != ''"> or pk_measware = #{pkMeasware} </if>
             <if test="pkPacksort != null and pkPacksort != ''"> or pk_packsort = #{pkPacksort} </if>
             <if test="pkReqcorp != null and pkReqcorp != ''"> or pk_reqcorp = #{pkReqcorp} </if>
             <if test="pkReqstoorg != null and pkReqstoorg != ''"> or pk_reqstoorg = #{pkReqstoorg} </if>
             <if test="pkReturnreason != null and pkReturnreason != ''"> or pk_returnreason = #{pkReturnreason} </if>
             <if test="process1 != null and process1 != ''"> or process1 = #{process1} </if>
             <if test="process2 != null and process2 != ''"> or process2 = #{process2} </if>
             <if test="process3 != null and process3 != ''"> or process3 = #{process3} </if>
             <if test="process4 != null and process4 != ''"> or process4 = #{process4} </if>
             <if test="process5 != null and process5 != ''"> or process5 = #{process5} </if>
             <if test="processcost != null"> or processcost = #{processcost} </if>
             <if test="processmanid != null and processmanid != ''"> or processmanid = #{processmanid} </if>
             <if test="serialnum != null"> or serialnum = #{serialnum} </if>
             <if test="ts != null and ts != ''"> or ts = #{ts} </if>
             <if test="vbatchcode != null and vbatchcode != ''"> or vbatchcode = #{vbatchcode} </if>
             <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> or vbilltypeu8rm = #{vbilltypeu8rm} </if>
             <if test="vbodynote2 != null and vbodynote2 != ''"> or vbodynote2 = #{vbodynote2} </if>
             <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> or vcorrespondrowno = #{vcorrespondrowno} </if>
             <if test="vfirstbillcode != null and vfirstbillcode != ''"> or vfirstbillcode = #{vfirstbillcode} </if>
             <if test="vfirstrowno != null and vfirstrowno != ''"> or vfirstrowno = #{vfirstrowno} </if>
             <if test="vfree1 != null and vfree1 != ''"> or vfree1 = #{vfree1} </if>
             <if test="vfree10 != null and vfree10 != ''"> or vfree10 = #{vfree10} </if>
             <if test="vfree2 != null and vfree2 != ''"> or vfree2 = #{vfree2} </if>
             <if test="vfree3 != null and vfree3 != ''"> or vfree3 = #{vfree3} </if>
             <if test="vfree4 != null and vfree4 != ''"> or vfree4 = #{vfree4} </if>
             <if test="vfree5 != null and vfree5 != ''"> or vfree5 = #{vfree5} </if>
             <if test="vfree6 != null and vfree6 != ''"> or vfree6 = #{vfree6} </if>
             <if test="vfree7 != null and vfree7 != ''"> or vfree7 = #{vfree7} </if>
             <if test="vfree8 != null and vfree8 != ''"> or vfree8 = #{vfree8} </if>
             <if test="vfree9 != null and vfree9 != ''"> or vfree9 = #{vfree9} </if>
             <if test="vnotebody != null and vnotebody != ''"> or vnotebody = #{vnotebody} </if>
             <if test="vproductbatch != null and vproductbatch != ''"> or vproductbatch = #{vproductbatch} </if>
             <if test="vreceiveaddress != null and vreceiveaddress != ''"> or vreceiveaddress = #{vreceiveaddress} </if>
             <if test="vsignwastcode != null and vsignwastcode != ''"> or vsignwastcode = #{vsignwastcode} </if>
             <if test="vsignwastrowno != null and vsignwastrowno != ''"> or vsignwastrowno = #{vsignwastrowno} </if>
             <if test="vsourcebillcode != null and vsourcebillcode != ''"> or vsourcebillcode = #{vsourcebillcode} </if>
             <if test="vsourcerowno != null and vsourcerowno != ''"> or vsourcerowno = #{vsourcerowno} </if>
             <if test="vsourcewastcode != null and vsourcewastcode != ''"> or vsourcewastcode = #{vsourcewastcode} </if>
             <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> or vsourcewastrowno = #{vsourcewastrowno} </if>
             <if test="vsrc2billcode != null and vsrc2billcode != ''"> or vsrc2billcode = #{vsrc2billcode} </if>
             <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> or vsrc2billrowno = #{vsrc2billrowno} </if>
             <if test="vtransfercode != null and vtransfercode != ''"> or vtransfercode = #{vtransfercode} </if>
             <if test="vuserdef1 != null and vuserdef1 != ''"> or vuserdef1 = #{vuserdef1} </if>
             <if test="vuserdef10 != null and vuserdef10 != ''"> or vuserdef10 = #{vuserdef10} </if>
             <if test="vuserdef11 != null and vuserdef11 != ''"> or vuserdef11 = #{vuserdef11} </if>
             <if test="vuserdef12 != null and vuserdef12 != ''"> or vuserdef12 = #{vuserdef12} </if>
             <if test="vuserdef13 != null and vuserdef13 != ''"> or vuserdef13 = #{vuserdef13} </if>
             <if test="vuserdef14 != null and vuserdef14 != ''"> or vuserdef14 = #{vuserdef14} </if>
             <if test="vuserdef15 != null and vuserdef15 != ''"> or vuserdef15 = #{vuserdef15} </if>
             <if test="vuserdef16 != null and vuserdef16 != ''"> or vuserdef16 = #{vuserdef16} </if>
             <if test="vuserdef17 != null and vuserdef17 != ''"> or vuserdef17 = #{vuserdef17} </if>
             <if test="vuserdef18 != null and vuserdef18 != ''"> or vuserdef18 = #{vuserdef18} </if>
             <if test="vuserdef19 != null and vuserdef19 != ''"> or vuserdef19 = #{vuserdef19} </if>
             <if test="vuserdef2 != null and vuserdef2 != ''"> or vuserdef2 = #{vuserdef2} </if>
             <if test="vuserdef20 != null and vuserdef20 != ''"> or vuserdef20 = #{vuserdef20} </if>
             <if test="vuserdef3 != null and vuserdef3 != ''"> or vuserdef3 = #{vuserdef3} </if>
             <if test="vuserdef4 != null and vuserdef4 != ''"> or vuserdef4 = #{vuserdef4} </if>
             <if test="vuserdef5 != null and vuserdef5 != ''"> or vuserdef5 = #{vuserdef5} </if>
             <if test="vuserdef6 != null and vuserdef6 != ''"> or vuserdef6 = #{vuserdef6} </if>
             <if test="vuserdef7 != null and vuserdef7 != ''"> or vuserdef7 = #{vuserdef7} </if>
             <if test="vuserdef8 != null and vuserdef8 != ''"> or vuserdef8 = #{vuserdef8} </if>
             <if test="vuserdef9 != null and vuserdef9 != ''"> or vuserdef9 = #{vuserdef9} </if>
             <if test="vvehiclecode != null and vvehiclecode != ''"> or vvehiclecode = #{vvehiclecode} </if>
             <if test="writeofftype != null and writeofftype != ''"> or writeofftype = #{writeofftype} </if>
    </trim>
<!--    <if test=" sort == null or sort == ''.toString()  "> order by sorts </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.IcGeneralBEntity" keyProperty="cgeneralbid" useGeneratedKeys="true">
    insert into ic_general_b(
  <trim suffix="" suffixOverrides=",">
       <if test="alrconfincomny != null"> alrconfincomny , </if>
            <if test="alrconfinconum != null"> alrconfinconum , </if>
            <if test="bbarcodeclose != null and bbarcodeclose != ''"> bbarcodeclose , </if>
            <if test="bomversion != null and bomversion != ''"> bomversion , </if>
            <if test="bonroadflag != null and bonroadflag != ''"> bonroadflag , </if>
            <if test="breturnprofit != null and breturnprofit != ''"> breturnprofit , </if>
            <if test="bsafeprice != null and bsafeprice != ''"> bsafeprice , </if>
            <if test="bsourcelargess != null and bsourcelargess != ''"> bsourcelargess , </if>
            <if test="bsupplyflag != null and bsupplyflag != ''"> bsupplyflag , </if>
            <if test="btoinzgflag != null and btoinzgflag != ''"> btoinzgflag , </if>
            <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> btoouttoiaflag , </if>
            <if test="btooutzgflag != null and btooutzgflag != ''"> btooutzgflag , </if>
            <if test="btou8rm != null and btou8rm != ''"> btou8rm , </if>
            <if test="btransasset != null and btransasset != ''"> btransasset , </if>
            <if test="bzgflag != null and bzgflag != ''"> bzgflag , </if>
            <if test="bzgyfflag != null and bzgyfflag != ''"> bzgyfflag , </if>
            <if test="castunitid != null and castunitid != ''"> castunitid , </if>
            <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> cbodybilltypecode , </if>
            <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> cbodywarehouseid , </if>
            <if test="ccheckstateid != null and ccheckstateid != ''"> ccheckstateid , </if>
            <if test="ccorrespondbid != null and ccorrespondbid != ''"> ccorrespondbid , </if>
            <if test="ccorrespondcode != null and ccorrespondcode != ''"> ccorrespondcode , </if>
            <if test="ccorrespondhid != null and ccorrespondhid != ''"> ccorrespondhid , </if>
            <if test="ccorrespondtype != null and ccorrespondtype != ''"> ccorrespondtype , </if>
            <if test="ccostobject != null and ccostobject != ''"> ccostobject , </if>
            <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> ccurrencytypeid , </if>
            <if test="cfirstbillbid != null and cfirstbillbid != ''"> cfirstbillbid , </if>
            <if test="cfirstbillhid != null and cfirstbillhid != ''"> cfirstbillhid , </if>
            <if test="cfirsttype != null and cfirsttype != ''"> cfirsttype , </if>
            <if test="cfreezeid != null and cfreezeid != ''"> cfreezeid , </if>
            <if test="cgeneralbid != null and cgeneralbid != ''"> cgeneralbid , </if>
            <if test="cgeneralhid != null and cgeneralhid != ''"> cgeneralhid , </if>
            <if test="cinvbasid != null and cinvbasid != ''"> cinvbasid , </if>
            <if test="cinventoryid != null and cinventoryid != ''"> cinventoryid , </if>
            <if test="corderBb1id != null and corderBb1id != ''"> corder_bb1id , </if>
            <if test="cparentid != null and cparentid != ''"> cparentid , </if>
            <if test="cprojectid != null and cprojectid != ''"> cprojectid , </if>
            <if test="cprojectphaseid != null and cprojectphaseid != ''"> cprojectphaseid , </if>
            <if test="cquotecurrency != null and cquotecurrency != ''"> cquotecurrency , </if>
            <if test="cquoteunitid != null and cquoteunitid != ''"> cquoteunitid , </if>
            <if test="creceieveid != null and creceieveid != ''"> creceieveid , </if>
            <if test="creceiveareaid != null and creceiveareaid != ''"> creceiveareaid , </if>
            <if test="creceivepointid != null and creceivepointid != ''"> creceivepointid , </if>
            <if test="crowno != null and crowno != ''"> crowno , </if>
            <if test="cselastunitid != null and cselastunitid != ''"> cselastunitid , </if>
            <if test="csignwastbid != null and csignwastbid != ''"> csignwastbid , </if>
            <if test="csignwasthid != null and csignwasthid != ''"> csignwasthid , </if>
            <if test="csignwasttype != null and csignwasttype != ''"> csignwasttype , </if>
            <if test="csourcebillbid != null and csourcebillbid != ''"> csourcebillbid , </if>
            <if test="csourcebillhid != null and csourcebillhid != ''"> csourcebillhid , </if>
            <if test="csourcetype != null and csourcetype != ''"> csourcetype , </if>
            <if test="csourcewastbid != null and csourcewastbid != ''"> csourcewastbid , </if>
            <if test="csourcewasthid != null and csourcewasthid != ''"> csourcewasthid , </if>
            <if test="csourcewasttype != null and csourcewasttype != ''"> csourcewasttype , </if>
            <if test="csrc2billbid != null and csrc2billbid != ''"> csrc2billbid , </if>
            <if test="csrc2billhid != null and csrc2billhid != ''"> csrc2billhid , </if>
            <if test="csrc2billtype != null and csrc2billtype != ''"> csrc2billtype , </if>
            <if test="csumid != null and csumid != ''"> csumid , </if>
            <if test="cvendorid != null and cvendorid != ''"> cvendorid , </if>
            <if test="cworkcenterid != null and cworkcenterid != ''"> cworkcenterid , </if>
            <if test="cworksiteid != null and cworksiteid != ''"> cworksiteid , </if>
            <if test="cwp != null and cwp != ''"> cwp , </if>
            <if test="dbizdate != null and dbizdate != ''"> dbizdate , </if>
            <if test="ddeliverdate != null and ddeliverdate != ''"> ddeliverdate , </if>
            <if test="dfirstbilldate != null and dfirstbilldate != ''"> dfirstbilldate , </if>
            <if test="dr != null"> dr , </if>
            <if test="drequiredate != null and drequiredate != ''"> drequiredate , </if>
            <if test="drequiretime != null and drequiretime != ''"> drequiretime , </if>
            <if test="dstandbydate != null and dstandbydate != ''"> dstandbydate , </if>
            <if test="dvalidate != null and dvalidate != ''"> dvalidate , </if>
            <if test="dzgdate != null and dzgdate != ''"> dzgdate , </if>
            <if test="fassertcardflag != null and fassertcardflag != ''"> fassertcardflag , </if>
            <if test="fbillrowflag != null"> fbillrowflag , </if>
            <if test="fchecked != null"> fchecked , </if>
            <if test="flargess != null and flargess != ''"> flargess , </if>
            <if test="ftoouttransflag != null and ftoouttransflag != ''"> ftoouttransflag , </if>
            <if test="hsl != null"> hsl , </if>
            <if test="idesatype != null"> idesatype , </if>
            <if test="inccontimepoint != null and inccontimepoint != ''"> inccontimepoint , </if>
            <if test="inccontimepointname != null and inccontimepointname != ''"> inccontimepointname , </if>
            <if test="isok != null and isok != ''"> isok , </if>
            <if test="materialcost != null"> materialcost , </if>
            <if test="naccumtonum != null"> naccumtonum , </if>
            <if test="naccumwastnum != null"> naccumwastnum , </if>
            <if test="nbarcodenum != null"> nbarcodenum , </if>
            <if test="ncorrespondastnum != null"> ncorrespondastnum , </if>
            <if test="ncorrespondgrsnum != null"> ncorrespondgrsnum , </if>
            <if test="ncorrespondnum != null"> ncorrespondnum , </if>
            <if test="ncountnum != null"> ncountnum , </if>
            <if test="nfeesettletimes != null"> nfeesettletimes , </if>
            <if test="ninassistnum != null"> ninassistnum , </if>
            <if test="ningrossnum != null"> ningrossnum , </if>
            <if test="ninnum != null"> ninnum , </if>
            <if test="nkdnum != null"> nkdnum , </if>
            <if test="nmny != null"> nmny , </if>
            <if test="nneedinassistnum != null"> nneedinassistnum , </if>
            <if test="noutassistnum != null"> noutassistnum , </if>
            <if test="noutgrossnum != null"> noutgrossnum , </if>
            <if test="noutnum != null"> noutnum , </if>
            <if test="nplannedmny != null"> nplannedmny , </if>
            <if test="nplannedprice != null"> nplannedprice , </if>
            <if test="nprice != null"> nprice , </if>
            <if test="npricesettlebill != null"> npricesettlebill , </if>
            <if test="nquotemny != null"> nquotemny , </if>
            <if test="nquotentmny != null"> nquotentmny , </if>
            <if test="nquotentprice != null"> nquotentprice , </if>
            <if test="nquoteprice != null"> nquoteprice , </if>
            <if test="nquoteunitnum != null"> nquoteunitnum , </if>
            <if test="nquoteunitrate != null"> nquoteunitrate , </if>
            <if test="nreplenishedastnum != null"> nreplenishedastnum , </if>
            <if test="nreplenishednum != null"> nreplenishednum , </if>
            <if test="nretastnum != null"> nretastnum , </if>
            <if test="nretgrossnum != null"> nretgrossnum , </if>
            <if test="nretnum != null"> nretnum , </if>
            <if test="nsalemny != null"> nsalemny , </if>
            <if test="nsaleprice != null"> nsaleprice , </if>
            <if test="nshouldinnum != null"> nshouldinnum , </if>
            <if test="nshouldoutassistnum != null"> nshouldoutassistnum , </if>
            <if test="nshouldoutnum != null"> nshouldoutnum , </if>
            <if test="ntarenum != null"> ntarenum , </if>
            <if test="ntaxmny != null"> ntaxmny , </if>
            <if test="ntaxprice != null"> ntaxprice , </if>
            <if test="ntotalmatchnum != null"> ntotalmatchnum , </if>
            <if test="ntotalreasonwastenum != null"> ntotalreasonwastenum , </if>
            <if test="ntranoutastnum != null"> ntranoutastnum , </if>
            <if test="ntranoutnum != null"> ntranoutnum , </if>
            <if test="pkBodycalbody != null and pkBodycalbody != ''"> pk_bodycalbody , </if>
            <if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>
            <if test="pkCreqwareid != null and pkCreqwareid != ''"> pk_creqwareid , </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> pk_cubasdoc , </if>
            <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> pk_defdoc1 , </if>
            <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> pk_defdoc10 , </if>
            <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> pk_defdoc11 , </if>
            <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> pk_defdoc12 , </if>
            <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> pk_defdoc13 , </if>
            <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> pk_defdoc14 , </if>
            <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> pk_defdoc15 , </if>
            <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> pk_defdoc16 , </if>
            <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> pk_defdoc17 , </if>
            <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> pk_defdoc18 , </if>
            <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> pk_defdoc19 , </if>
            <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> pk_defdoc2 , </if>
            <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> pk_defdoc20 , </if>
            <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> pk_defdoc3 , </if>
            <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> pk_defdoc4 , </if>
            <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> pk_defdoc5 , </if>
            <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> pk_defdoc6 , </if>
            <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> pk_defdoc7 , </if>
            <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> pk_defdoc8 , </if>
            <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> pk_defdoc9 , </if>
            <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> pk_invoicecorp , </if>
            <if test="pkMeasware != null and pkMeasware != ''"> pk_measware , </if>
            <if test="pkPacksort != null and pkPacksort != ''"> pk_packsort , </if>
            <if test="pkReqcorp != null and pkReqcorp != ''"> pk_reqcorp , </if>
            <if test="pkReqstoorg != null and pkReqstoorg != ''"> pk_reqstoorg , </if>
            <if test="pkReturnreason != null and pkReturnreason != ''"> pk_returnreason , </if>
            <if test="process1 != null and process1 != ''"> process1 , </if>
            <if test="process2 != null and process2 != ''"> process2 , </if>
            <if test="process3 != null and process3 != ''"> process3 , </if>
            <if test="process4 != null and process4 != ''"> process4 , </if>
            <if test="process5 != null and process5 != ''"> process5 , </if>
            <if test="processcost != null"> processcost , </if>
            <if test="processmanid != null and processmanid != ''"> processmanid , </if>
            <if test="serialnum != null"> serialnum , </if>
            <if test="ts != null and ts != ''"> ts , </if>
            <if test="vbatchcode != null and vbatchcode != ''"> vbatchcode , </if>
            <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> vbilltypeu8rm , </if>
            <if test="vbodynote2 != null and vbodynote2 != ''"> vbodynote2 , </if>
            <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> vcorrespondrowno , </if>
            <if test="vfirstbillcode != null and vfirstbillcode != ''"> vfirstbillcode , </if>
            <if test="vfirstrowno != null and vfirstrowno != ''"> vfirstrowno , </if>
            <if test="vfree1 != null and vfree1 != ''"> vfree1 , </if>
            <if test="vfree10 != null and vfree10 != ''"> vfree10 , </if>
            <if test="vfree2 != null and vfree2 != ''"> vfree2 , </if>
            <if test="vfree3 != null and vfree3 != ''"> vfree3 , </if>
            <if test="vfree4 != null and vfree4 != ''"> vfree4 , </if>
            <if test="vfree5 != null and vfree5 != ''"> vfree5 , </if>
            <if test="vfree6 != null and vfree6 != ''"> vfree6 , </if>
            <if test="vfree7 != null and vfree7 != ''"> vfree7 , </if>
            <if test="vfree8 != null and vfree8 != ''"> vfree8 , </if>
            <if test="vfree9 != null and vfree9 != ''"> vfree9 , </if>
            <if test="vnotebody != null and vnotebody != ''"> vnotebody , </if>
            <if test="vproductbatch != null and vproductbatch != ''"> vproductbatch , </if>
            <if test="vreceiveaddress != null and vreceiveaddress != ''"> vreceiveaddress , </if>
            <if test="vsignwastcode != null and vsignwastcode != ''"> vsignwastcode , </if>
            <if test="vsignwastrowno != null and vsignwastrowno != ''"> vsignwastrowno , </if>
            <if test="vsourcebillcode != null and vsourcebillcode != ''"> vsourcebillcode , </if>
            <if test="vsourcerowno != null and vsourcerowno != ''"> vsourcerowno , </if>
            <if test="vsourcewastcode != null and vsourcewastcode != ''"> vsourcewastcode , </if>
            <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> vsourcewastrowno , </if>
            <if test="vsrc2billcode != null and vsrc2billcode != ''"> vsrc2billcode , </if>
            <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> vsrc2billrowno , </if>
            <if test="vtransfercode != null and vtransfercode != ''"> vtransfercode , </if>
            <if test="vuserdef1 != null and vuserdef1 != ''"> vuserdef1 , </if>
            <if test="vuserdef10 != null and vuserdef10 != ''"> vuserdef10 , </if>
            <if test="vuserdef11 != null and vuserdef11 != ''"> vuserdef11 , </if>
            <if test="vuserdef12 != null and vuserdef12 != ''"> vuserdef12 , </if>
            <if test="vuserdef13 != null and vuserdef13 != ''"> vuserdef13 , </if>
            <if test="vuserdef14 != null and vuserdef14 != ''"> vuserdef14 , </if>
            <if test="vuserdef15 != null and vuserdef15 != ''"> vuserdef15 , </if>
            <if test="vuserdef16 != null and vuserdef16 != ''"> vuserdef16 , </if>
            <if test="vuserdef17 != null and vuserdef17 != ''"> vuserdef17 , </if>
            <if test="vuserdef18 != null and vuserdef18 != ''"> vuserdef18 , </if>
            <if test="vuserdef19 != null and vuserdef19 != ''"> vuserdef19 , </if>
            <if test="vuserdef2 != null and vuserdef2 != ''"> vuserdef2 , </if>
            <if test="vuserdef20 != null and vuserdef20 != ''"> vuserdef20 , </if>
            <if test="vuserdef3 != null and vuserdef3 != ''"> vuserdef3 , </if>
            <if test="vuserdef4 != null and vuserdef4 != ''"> vuserdef4 , </if>
            <if test="vuserdef5 != null and vuserdef5 != ''"> vuserdef5 , </if>
            <if test="vuserdef6 != null and vuserdef6 != ''"> vuserdef6 , </if>
            <if test="vuserdef7 != null and vuserdef7 != ''"> vuserdef7 , </if>
            <if test="vuserdef8 != null and vuserdef8 != ''"> vuserdef8 , </if>
            <if test="vuserdef9 != null and vuserdef9 != ''"> vuserdef9 , </if>
            <if test="vvehiclecode != null and vvehiclecode != ''"> vvehiclecode , </if>
            <if test="writeofftype != null and writeofftype != ''"> writeofftype , </if>
            <if test="sorts == null ">sorts,</if>
    <if test="sts == null ">sts,</if>
  </trim>
  )values(
 <trim suffix="" suffixOverrides=",">
       <if test="alrconfincomny != null"> #{alrconfincomny} ,</if>
            <if test="alrconfinconum != null"> #{alrconfinconum} ,</if>
            <if test="bbarcodeclose != null and bbarcodeclose != ''"> #{bbarcodeclose} ,</if>
            <if test="bomversion != null and bomversion != ''"> #{bomversion} ,</if>
            <if test="bonroadflag != null and bonroadflag != ''"> #{bonroadflag} ,</if>
            <if test="breturnprofit != null and breturnprofit != ''"> #{breturnprofit} ,</if>
            <if test="bsafeprice != null and bsafeprice != ''"> #{bsafeprice} ,</if>
            <if test="bsourcelargess != null and bsourcelargess != ''"> #{bsourcelargess} ,</if>
            <if test="bsupplyflag != null and bsupplyflag != ''"> #{bsupplyflag} ,</if>
            <if test="btoinzgflag != null and btoinzgflag != ''"> #{btoinzgflag} ,</if>
            <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> #{btoouttoiaflag} ,</if>
            <if test="btooutzgflag != null and btooutzgflag != ''"> #{btooutzgflag} ,</if>
            <if test="btou8rm != null and btou8rm != ''"> #{btou8rm} ,</if>
            <if test="btransasset != null and btransasset != ''"> #{btransasset} ,</if>
            <if test="bzgflag != null and bzgflag != ''"> #{bzgflag} ,</if>
            <if test="bzgyfflag != null and bzgyfflag != ''"> #{bzgyfflag} ,</if>
            <if test="castunitid != null and castunitid != ''"> #{castunitid} ,</if>
            <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> #{cbodybilltypecode} ,</if>
            <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> #{cbodywarehouseid} ,</if>
            <if test="ccheckstateid != null and ccheckstateid != ''"> #{ccheckstateid} ,</if>
            <if test="ccorrespondbid != null and ccorrespondbid != ''"> #{ccorrespondbid} ,</if>
            <if test="ccorrespondcode != null and ccorrespondcode != ''"> #{ccorrespondcode} ,</if>
            <if test="ccorrespondhid != null and ccorrespondhid != ''"> #{ccorrespondhid} ,</if>
            <if test="ccorrespondtype != null and ccorrespondtype != ''"> #{ccorrespondtype} ,</if>
            <if test="ccostobject != null and ccostobject != ''"> #{ccostobject} ,</if>
            <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> #{ccurrencytypeid} ,</if>
            <if test="cfirstbillbid != null and cfirstbillbid != ''"> #{cfirstbillbid} ,</if>
            <if test="cfirstbillhid != null and cfirstbillhid != ''"> #{cfirstbillhid} ,</if>
            <if test="cfirsttype != null and cfirsttype != ''"> #{cfirsttype} ,</if>
            <if test="cfreezeid != null and cfreezeid != ''"> #{cfreezeid} ,</if>
            <if test="cgeneralbid != null and cgeneralbid != ''"> #{cgeneralbid} ,</if>
            <if test="cgeneralhid != null and cgeneralhid != ''"> #{cgeneralhid} ,</if>
            <if test="cinvbasid != null and cinvbasid != ''"> #{cinvbasid} ,</if>
            <if test="cinventoryid != null and cinventoryid != ''"> #{cinventoryid} ,</if>
            <if test="corderBb1id != null and corderBb1id != ''"> #{corderBb1id} ,</if>
            <if test="cparentid != null and cparentid != ''"> #{cparentid} ,</if>
            <if test="cprojectid != null and cprojectid != ''"> #{cprojectid} ,</if>
            <if test="cprojectphaseid != null and cprojectphaseid != ''"> #{cprojectphaseid} ,</if>
            <if test="cquotecurrency != null and cquotecurrency != ''"> #{cquotecurrency} ,</if>
            <if test="cquoteunitid != null and cquoteunitid != ''"> #{cquoteunitid} ,</if>
            <if test="creceieveid != null and creceieveid != ''"> #{creceieveid} ,</if>
            <if test="creceiveareaid != null and creceiveareaid != ''"> #{creceiveareaid} ,</if>
            <if test="creceivepointid != null and creceivepointid != ''"> #{creceivepointid} ,</if>
            <if test="crowno != null and crowno != ''"> #{crowno} ,</if>
            <if test="cselastunitid != null and cselastunitid != ''"> #{cselastunitid} ,</if>
            <if test="csignwastbid != null and csignwastbid != ''"> #{csignwastbid} ,</if>
            <if test="csignwasthid != null and csignwasthid != ''"> #{csignwasthid} ,</if>
            <if test="csignwasttype != null and csignwasttype != ''"> #{csignwasttype} ,</if>
            <if test="csourcebillbid != null and csourcebillbid != ''"> #{csourcebillbid} ,</if>
            <if test="csourcebillhid != null and csourcebillhid != ''"> #{csourcebillhid} ,</if>
            <if test="csourcetype != null and csourcetype != ''"> #{csourcetype} ,</if>
            <if test="csourcewastbid != null and csourcewastbid != ''"> #{csourcewastbid} ,</if>
            <if test="csourcewasthid != null and csourcewasthid != ''"> #{csourcewasthid} ,</if>
            <if test="csourcewasttype != null and csourcewasttype != ''"> #{csourcewasttype} ,</if>
            <if test="csrc2billbid != null and csrc2billbid != ''"> #{csrc2billbid} ,</if>
            <if test="csrc2billhid != null and csrc2billhid != ''"> #{csrc2billhid} ,</if>
            <if test="csrc2billtype != null and csrc2billtype != ''"> #{csrc2billtype} ,</if>
            <if test="csumid != null and csumid != ''"> #{csumid} ,</if>
            <if test="cvendorid != null and cvendorid != ''"> #{cvendorid} ,</if>
            <if test="cworkcenterid != null and cworkcenterid != ''"> #{cworkcenterid} ,</if>
            <if test="cworksiteid != null and cworksiteid != ''"> #{cworksiteid} ,</if>
            <if test="cwp != null and cwp != ''"> #{cwp} ,</if>
            <if test="dbizdate != null and dbizdate != ''"> #{dbizdate} ,</if>
            <if test="ddeliverdate != null and ddeliverdate != ''"> #{ddeliverdate} ,</if>
            <if test="dfirstbilldate != null and dfirstbilldate != ''"> #{dfirstbilldate} ,</if>
            <if test="dr != null"> #{dr} ,</if>
            <if test="drequiredate != null and drequiredate != ''"> #{drequiredate} ,</if>
            <if test="drequiretime != null and drequiretime != ''"> #{drequiretime} ,</if>
            <if test="dstandbydate != null and dstandbydate != ''"> #{dstandbydate} ,</if>
            <if test="dvalidate != null and dvalidate != ''"> #{dvalidate} ,</if>
            <if test="dzgdate != null and dzgdate != ''"> #{dzgdate} ,</if>
            <if test="fassertcardflag != null and fassertcardflag != ''"> #{fassertcardflag} ,</if>
            <if test="fbillrowflag != null"> #{fbillrowflag} ,</if>
            <if test="fchecked != null"> #{fchecked} ,</if>
            <if test="flargess != null and flargess != ''"> #{flargess} ,</if>
            <if test="ftoouttransflag != null and ftoouttransflag != ''"> #{ftoouttransflag} ,</if>
            <if test="hsl != null"> #{hsl} ,</if>
            <if test="idesatype != null"> #{idesatype} ,</if>
            <if test="inccontimepoint != null and inccontimepoint != ''"> #{inccontimepoint} ,</if>
            <if test="inccontimepointname != null and inccontimepointname != ''"> #{inccontimepointname} ,</if>
            <if test="isok != null and isok != ''"> #{isok} ,</if>
            <if test="materialcost != null"> #{materialcost} ,</if>
            <if test="naccumtonum != null"> #{naccumtonum} ,</if>
            <if test="naccumwastnum != null"> #{naccumwastnum} ,</if>
            <if test="nbarcodenum != null"> #{nbarcodenum} ,</if>
            <if test="ncorrespondastnum != null"> #{ncorrespondastnum} ,</if>
            <if test="ncorrespondgrsnum != null"> #{ncorrespondgrsnum} ,</if>
            <if test="ncorrespondnum != null"> #{ncorrespondnum} ,</if>
            <if test="ncountnum != null"> #{ncountnum} ,</if>
            <if test="nfeesettletimes != null"> #{nfeesettletimes} ,</if>
            <if test="ninassistnum != null"> #{ninassistnum} ,</if>
            <if test="ningrossnum != null"> #{ningrossnum} ,</if>
            <if test="ninnum != null"> #{ninnum} ,</if>
            <if test="nkdnum != null"> #{nkdnum} ,</if>
            <if test="nmny != null"> #{nmny} ,</if>
            <if test="nneedinassistnum != null"> #{nneedinassistnum} ,</if>
            <if test="noutassistnum != null"> #{noutassistnum} ,</if>
            <if test="noutgrossnum != null"> #{noutgrossnum} ,</if>
            <if test="noutnum != null"> #{noutnum} ,</if>
            <if test="nplannedmny != null"> #{nplannedmny} ,</if>
            <if test="nplannedprice != null"> #{nplannedprice} ,</if>
            <if test="nprice != null"> #{nprice} ,</if>
            <if test="npricesettlebill != null"> #{npricesettlebill} ,</if>
            <if test="nquotemny != null"> #{nquotemny} ,</if>
            <if test="nquotentmny != null"> #{nquotentmny} ,</if>
            <if test="nquotentprice != null"> #{nquotentprice} ,</if>
            <if test="nquoteprice != null"> #{nquoteprice} ,</if>
            <if test="nquoteunitnum != null"> #{nquoteunitnum} ,</if>
            <if test="nquoteunitrate != null"> #{nquoteunitrate} ,</if>
            <if test="nreplenishedastnum != null"> #{nreplenishedastnum} ,</if>
            <if test="nreplenishednum != null"> #{nreplenishednum} ,</if>
            <if test="nretastnum != null"> #{nretastnum} ,</if>
            <if test="nretgrossnum != null"> #{nretgrossnum} ,</if>
            <if test="nretnum != null"> #{nretnum} ,</if>
            <if test="nsalemny != null"> #{nsalemny} ,</if>
            <if test="nsaleprice != null"> #{nsaleprice} ,</if>
            <if test="nshouldinnum != null"> #{nshouldinnum} ,</if>
            <if test="nshouldoutassistnum != null"> #{nshouldoutassistnum} ,</if>
            <if test="nshouldoutnum != null"> #{nshouldoutnum} ,</if>
            <if test="ntarenum != null"> #{ntarenum} ,</if>
            <if test="ntaxmny != null"> #{ntaxmny} ,</if>
            <if test="ntaxprice != null"> #{ntaxprice} ,</if>
            <if test="ntotalmatchnum != null"> #{ntotalmatchnum} ,</if>
            <if test="ntotalreasonwastenum != null"> #{ntotalreasonwastenum} ,</if>
            <if test="ntranoutastnum != null"> #{ntranoutastnum} ,</if>
            <if test="ntranoutnum != null"> #{ntranoutnum} ,</if>
            <if test="pkBodycalbody != null and pkBodycalbody != ''"> #{pkBodycalbody} ,</if>
            <if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
            <if test="pkCreqwareid != null and pkCreqwareid != ''"> #{pkCreqwareid} ,</if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> #{pkCubasdoc} ,</if>
            <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> #{pkDefdoc1} ,</if>
            <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> #{pkDefdoc10} ,</if>
            <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> #{pkDefdoc11} ,</if>
            <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> #{pkDefdoc12} ,</if>
            <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> #{pkDefdoc13} ,</if>
            <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> #{pkDefdoc14} ,</if>
            <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> #{pkDefdoc15} ,</if>
            <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> #{pkDefdoc16} ,</if>
            <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> #{pkDefdoc17} ,</if>
            <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> #{pkDefdoc18} ,</if>
            <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> #{pkDefdoc19} ,</if>
            <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> #{pkDefdoc2} ,</if>
            <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> #{pkDefdoc20} ,</if>
            <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> #{pkDefdoc3} ,</if>
            <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> #{pkDefdoc4} ,</if>
            <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> #{pkDefdoc5} ,</if>
            <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> #{pkDefdoc6} ,</if>
            <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> #{pkDefdoc7} ,</if>
            <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> #{pkDefdoc8} ,</if>
            <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> #{pkDefdoc9} ,</if>
            <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> #{pkInvoicecorp} ,</if>
            <if test="pkMeasware != null and pkMeasware != ''"> #{pkMeasware} ,</if>
            <if test="pkPacksort != null and pkPacksort != ''"> #{pkPacksort} ,</if>
            <if test="pkReqcorp != null and pkReqcorp != ''"> #{pkReqcorp} ,</if>
            <if test="pkReqstoorg != null and pkReqstoorg != ''"> #{pkReqstoorg} ,</if>
            <if test="pkReturnreason != null and pkReturnreason != ''"> #{pkReturnreason} ,</if>
            <if test="process1 != null and process1 != ''"> #{process1} ,</if>
            <if test="process2 != null and process2 != ''"> #{process2} ,</if>
            <if test="process3 != null and process3 != ''"> #{process3} ,</if>
            <if test="process4 != null and process4 != ''"> #{process4} ,</if>
            <if test="process5 != null and process5 != ''"> #{process5} ,</if>
            <if test="processcost != null"> #{processcost} ,</if>
            <if test="processmanid != null and processmanid != ''"> #{processmanid} ,</if>
            <if test="serialnum != null"> #{serialnum} ,</if>
            <if test="ts != null and ts != ''"> #{ts} ,</if>
            <if test="vbatchcode != null and vbatchcode != ''"> #{vbatchcode} ,</if>
            <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> #{vbilltypeu8rm} ,</if>
            <if test="vbodynote2 != null and vbodynote2 != ''"> #{vbodynote2} ,</if>
            <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> #{vcorrespondrowno} ,</if>
            <if test="vfirstbillcode != null and vfirstbillcode != ''"> #{vfirstbillcode} ,</if>
            <if test="vfirstrowno != null and vfirstrowno != ''"> #{vfirstrowno} ,</if>
            <if test="vfree1 != null and vfree1 != ''"> #{vfree1} ,</if>
            <if test="vfree10 != null and vfree10 != ''"> #{vfree10} ,</if>
            <if test="vfree2 != null and vfree2 != ''"> #{vfree2} ,</if>
            <if test="vfree3 != null and vfree3 != ''"> #{vfree3} ,</if>
            <if test="vfree4 != null and vfree4 != ''"> #{vfree4} ,</if>
            <if test="vfree5 != null and vfree5 != ''"> #{vfree5} ,</if>
            <if test="vfree6 != null and vfree6 != ''"> #{vfree6} ,</if>
            <if test="vfree7 != null and vfree7 != ''"> #{vfree7} ,</if>
            <if test="vfree8 != null and vfree8 != ''"> #{vfree8} ,</if>
            <if test="vfree9 != null and vfree9 != ''"> #{vfree9} ,</if>
            <if test="vnotebody != null and vnotebody != ''"> #{vnotebody} ,</if>
            <if test="vproductbatch != null and vproductbatch != ''"> #{vproductbatch} ,</if>
            <if test="vreceiveaddress != null and vreceiveaddress != ''"> #{vreceiveaddress} ,</if>
            <if test="vsignwastcode != null and vsignwastcode != ''"> #{vsignwastcode} ,</if>
            <if test="vsignwastrowno != null and vsignwastrowno != ''"> #{vsignwastrowno} ,</if>
            <if test="vsourcebillcode != null and vsourcebillcode != ''"> #{vsourcebillcode} ,</if>
            <if test="vsourcerowno != null and vsourcerowno != ''"> #{vsourcerowno} ,</if>
            <if test="vsourcewastcode != null and vsourcewastcode != ''"> #{vsourcewastcode} ,</if>
            <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> #{vsourcewastrowno} ,</if>
            <if test="vsrc2billcode != null and vsrc2billcode != ''"> #{vsrc2billcode} ,</if>
            <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> #{vsrc2billrowno} ,</if>
            <if test="vtransfercode != null and vtransfercode != ''"> #{vtransfercode} ,</if>
            <if test="vuserdef1 != null and vuserdef1 != ''"> #{vuserdef1} ,</if>
            <if test="vuserdef10 != null and vuserdef10 != ''"> #{vuserdef10} ,</if>
            <if test="vuserdef11 != null and vuserdef11 != ''"> #{vuserdef11} ,</if>
            <if test="vuserdef12 != null and vuserdef12 != ''"> #{vuserdef12} ,</if>
            <if test="vuserdef13 != null and vuserdef13 != ''"> #{vuserdef13} ,</if>
            <if test="vuserdef14 != null and vuserdef14 != ''"> #{vuserdef14} ,</if>
            <if test="vuserdef15 != null and vuserdef15 != ''"> #{vuserdef15} ,</if>
            <if test="vuserdef16 != null and vuserdef16 != ''"> #{vuserdef16} ,</if>
            <if test="vuserdef17 != null and vuserdef17 != ''"> #{vuserdef17} ,</if>
            <if test="vuserdef18 != null and vuserdef18 != ''"> #{vuserdef18} ,</if>
            <if test="vuserdef19 != null and vuserdef19 != ''"> #{vuserdef19} ,</if>
            <if test="vuserdef2 != null and vuserdef2 != ''"> #{vuserdef2} ,</if>
            <if test="vuserdef20 != null and vuserdef20 != ''"> #{vuserdef20} ,</if>
            <if test="vuserdef3 != null and vuserdef3 != ''"> #{vuserdef3} ,</if>
            <if test="vuserdef4 != null and vuserdef4 != ''"> #{vuserdef4} ,</if>
            <if test="vuserdef5 != null and vuserdef5 != ''"> #{vuserdef5} ,</if>
            <if test="vuserdef6 != null and vuserdef6 != ''"> #{vuserdef6} ,</if>
            <if test="vuserdef7 != null and vuserdef7 != ''"> #{vuserdef7} ,</if>
            <if test="vuserdef8 != null and vuserdef8 != ''"> #{vuserdef8} ,</if>
            <if test="vuserdef9 != null and vuserdef9 != ''"> #{vuserdef9} ,</if>
            <if test="vvehiclecode != null and vvehiclecode != ''"> #{vvehiclecode} ,</if>
            <if test="writeofftype != null and writeofftype != ''"> #{writeofftype} ,</if>
            <if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from ic_general_b a WHERE a.sts = 'Y' ),</if>
    <if test="sts == null ">'Y',</if>
  </trim>
  )  
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="cgeneralbid" useGeneratedKeys="true">
  insert into ic_general_b(alrconfincomny, alrconfinconum, bbarcodeclose, bomversion, bonroadflag, breturnprofit, bsafeprice, bsourcelargess, bsupplyflag, btoinzgflag, btoouttoiaflag, btooutzgflag, btou8rm, btransasset, bzgflag, bzgyfflag, castunitid, cbodybilltypecode, cbodywarehouseid, ccheckstateid, ccorrespondbid, ccorrespondcode, ccorrespondhid, ccorrespondtype, ccostobject, ccurrencytypeid, cfirstbillbid, cfirstbillhid, cfirsttype, cfreezeid, cgeneralhid, cinvbasid, cinventoryid, corder_bb1id, cparentid, cprojectid, cprojectphaseid, cquotecurrency, cquoteunitid, creceieveid, creceiveareaid, creceivepointid, crowno, cselastunitid, csignwastbid, csignwasthid, csignwasttype, csourcebillbid, csourcebillhid, csourcetype, csourcewastbid, csourcewasthid, csourcewasttype, csrc2billbid, csrc2billhid, csrc2billtype, csumid, cvendorid, cworkcenterid, cworksiteid, cwp, dbizdate, ddeliverdate, dfirstbilldate, dr, drequiredate, drequiretime, dstandbydate, dvalidate, dzgdate, fassertcardflag, fbillrowflag, fchecked, flargess, ftoouttransflag, hsl, idesatype, inccontimepoint, inccontimepointname, isok, materialcost, naccumtonum, naccumwastnum, nbarcodenum, ncorrespondastnum, ncorrespondgrsnum, ncorrespondnum, ncountnum, nfeesettletimes, ninassistnum, ningrossnum, ninnum, nkdnum, nmny, nneedinassistnum, noutassistnum, noutgrossnum, noutnum, nplannedmny, nplannedprice, nprice, npricesettlebill, nquotemny, nquotentmny, nquotentprice, nquoteprice, nquoteunitnum, nquoteunitrate, nreplenishedastnum, nreplenishednum, nretastnum, nretgrossnum, nretnum, nsalemny, nsaleprice, nshouldinnum, nshouldoutassistnum, nshouldoutnum, ntarenum, ntaxmny, ntaxprice, ntotalmatchnum, ntotalreasonwastenum, ntranoutastnum, ntranoutnum, pk_bodycalbody, pk_corp, pk_creqwareid, pk_cubasdoc, pk_defdoc1, pk_defdoc10, pk_defdoc11, pk_defdoc12, pk_defdoc13, pk_defdoc14, pk_defdoc15, pk_defdoc16, pk_defdoc17, pk_defdoc18, pk_defdoc19, pk_defdoc2, pk_defdoc20, pk_defdoc3, pk_defdoc4, pk_defdoc5, pk_defdoc6, pk_defdoc7, pk_defdoc8, pk_defdoc9, pk_invoicecorp, pk_measware, pk_packsort, pk_reqcorp, pk_reqstoorg, pk_returnreason, process1, process2, process3, process4, process5, processcost, processmanid, serialnum, ts, vbatchcode, vbilltypeu8rm, vbodynote2, vcorrespondrowno, vfirstbillcode, vfirstrowno, vfree1, vfree10, vfree2, vfree3, vfree4, vfree5, vfree6, vfree7, vfree8, vfree9, vnotebody, vproductbatch, vreceiveaddress, vsignwastcode, vsignwastrowno, vsourcebillcode, vsourcerowno, vsourcewastcode, vsourcewastrowno, vsrc2billcode, vsrc2billrowno, vtransfercode, vuserdef1, vuserdef10, vuserdef11, vuserdef12, vuserdef13, vuserdef14, vuserdef15, vuserdef16, vuserdef17, vuserdef18, vuserdef19, vuserdef2, vuserdef20, vuserdef3, vuserdef4, vuserdef5, vuserdef6, vuserdef7, vuserdef8, vuserdef9, vvehiclecode, writeofftype,  sts) 
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.alrconfincomny},#{entity.alrconfinconum},#{entity.bbarcodeclose},#{entity.bomversion},#{entity.bonroadflag},#{entity.breturnprofit},#{entity.bsafeprice},#{entity.bsourcelargess},#{entity.bsupplyflag},#{entity.btoinzgflag},#{entity.btoouttoiaflag},#{entity.btooutzgflag},#{entity.btou8rm},#{entity.btransasset},#{entity.bzgflag},#{entity.bzgyfflag},#{entity.castunitid},#{entity.cbodybilltypecode},#{entity.cbodywarehouseid},#{entity.ccheckstateid},#{entity.ccorrespondbid},#{entity.ccorrespondcode},#{entity.ccorrespondhid},#{entity.ccorrespondtype},#{entity.ccostobject},#{entity.ccurrencytypeid},#{entity.cfirstbillbid},#{entity.cfirstbillhid},#{entity.cfirsttype},#{entity.cfreezeid},#{entity.cgeneralhid},#{entity.cinvbasid},#{entity.cinventoryid},#{entity.corderBb1id},#{entity.cparentid},#{entity.cprojectid},#{entity.cprojectphaseid},#{entity.cquotecurrency},#{entity.cquoteunitid},#{entity.creceieveid},#{entity.creceiveareaid},#{entity.creceivepointid},#{entity.crowno},#{entity.cselastunitid},#{entity.csignwastbid},#{entity.csignwasthid},#{entity.csignwasttype},#{entity.csourcebillbid},#{entity.csourcebillhid},#{entity.csourcetype},#{entity.csourcewastbid},#{entity.csourcewasthid},#{entity.csourcewasttype},#{entity.csrc2billbid},#{entity.csrc2billhid},#{entity.csrc2billtype},#{entity.csumid},#{entity.cvendorid},#{entity.cworkcenterid},#{entity.cworksiteid},#{entity.cwp},#{entity.dbizdate},#{entity.ddeliverdate},#{entity.dfirstbilldate},#{entity.dr},#{entity.drequiredate},#{entity.drequiretime},#{entity.dstandbydate},#{entity.dvalidate},#{entity.dzgdate},#{entity.fassertcardflag},#{entity.fbillrowflag},#{entity.fchecked},#{entity.flargess},#{entity.ftoouttransflag},#{entity.hsl},#{entity.idesatype},#{entity.inccontimepoint},#{entity.inccontimepointname},#{entity.isok},#{entity.materialcost},#{entity.naccumtonum},#{entity.naccumwastnum},#{entity.nbarcodenum},#{entity.ncorrespondastnum},#{entity.ncorrespondgrsnum},#{entity.ncorrespondnum},#{entity.ncountnum},#{entity.nfeesettletimes},#{entity.ninassistnum},#{entity.ningrossnum},#{entity.ninnum},#{entity.nkdnum},#{entity.nmny},#{entity.nneedinassistnum},#{entity.noutassistnum},#{entity.noutgrossnum},#{entity.noutnum},#{entity.nplannedmny},#{entity.nplannedprice},#{entity.nprice},#{entity.npricesettlebill},#{entity.nquotemny},#{entity.nquotentmny},#{entity.nquotentprice},#{entity.nquoteprice},#{entity.nquoteunitnum},#{entity.nquoteunitrate},#{entity.nreplenishedastnum},#{entity.nreplenishednum},#{entity.nretastnum},#{entity.nretgrossnum},#{entity.nretnum},#{entity.nsalemny},#{entity.nsaleprice},#{entity.nshouldinnum},#{entity.nshouldoutassistnum},#{entity.nshouldoutnum},#{entity.ntarenum},#{entity.ntaxmny},#{entity.ntaxprice},#{entity.ntotalmatchnum},#{entity.ntotalreasonwastenum},#{entity.ntranoutastnum},#{entity.ntranoutnum},#{entity.pkBodycalbody},#{entity.pkCorp},#{entity.pkCreqwareid},#{entity.pkCubasdoc},#{entity.pkDefdoc1},#{entity.pkDefdoc10},#{entity.pkDefdoc11},#{entity.pkDefdoc12},#{entity.pkDefdoc13},#{entity.pkDefdoc14},#{entity.pkDefdoc15},#{entity.pkDefdoc16},#{entity.pkDefdoc17},#{entity.pkDefdoc18},#{entity.pkDefdoc19},#{entity.pkDefdoc2},#{entity.pkDefdoc20},#{entity.pkDefdoc3},#{entity.pkDefdoc4},#{entity.pkDefdoc5},#{entity.pkDefdoc6},#{entity.pkDefdoc7},#{entity.pkDefdoc8},#{entity.pkDefdoc9},#{entity.pkInvoicecorp},#{entity.pkMeasware},#{entity.pkPacksort},#{entity.pkReqcorp},#{entity.pkReqstoorg},#{entity.pkReturnreason},#{entity.process1},#{entity.process2},#{entity.process3},#{entity.process4},#{entity.process5},#{entity.processcost},#{entity.processmanid},#{entity.serialnum},#{entity.ts},#{entity.vbatchcode},#{entity.vbilltypeu8rm},#{entity.vbodynote2},#{entity.vcorrespondrowno},#{entity.vfirstbillcode},#{entity.vfirstrowno},#{entity.vfree1},#{entity.vfree10},#{entity.vfree2},#{entity.vfree3},#{entity.vfree4},#{entity.vfree5},#{entity.vfree6},#{entity.vfree7},#{entity.vfree8},#{entity.vfree9},#{entity.vnotebody},#{entity.vproductbatch},#{entity.vreceiveaddress},#{entity.vsignwastcode},#{entity.vsignwastrowno},#{entity.vsourcebillcode},#{entity.vsourcerowno},#{entity.vsourcewastcode},#{entity.vsourcewastrowno},#{entity.vsrc2billcode},#{entity.vsrc2billrowno},#{entity.vtransfercode},#{entity.vuserdef1},#{entity.vuserdef10},#{entity.vuserdef11},#{entity.vuserdef12},#{entity.vuserdef13},#{entity.vuserdef14},#{entity.vuserdef15},#{entity.vuserdef16},#{entity.vuserdef17},#{entity.vuserdef18},#{entity.vuserdef19},#{entity.vuserdef2},#{entity.vuserdef20},#{entity.vuserdef3},#{entity.vuserdef4},#{entity.vuserdef5},#{entity.vuserdef6},#{entity.vuserdef7},#{entity.vuserdef8},#{entity.vuserdef9},#{entity.vvehiclecode},#{entity.writeofftype}, 'Y')
    </foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="cgeneralbid" useGeneratedKeys="true">
    insert into ic_general_b(alrconfincomny, alrconfinconum, bbarcodeclose, bomversion, bonroadflag, breturnprofit, bsafeprice, bsourcelargess, bsupplyflag, btoinzgflag, btoouttoiaflag, btooutzgflag, btou8rm, btransasset, bzgflag, bzgyfflag, castunitid, cbodybilltypecode, cbodywarehouseid, ccheckstateid, ccorrespondbid, ccorrespondcode, ccorrespondhid, ccorrespondtype, ccostobject, ccurrencytypeid, cfirstbillbid, cfirstbillhid, cfirsttype, cfreezeid, cgeneralhid, cinvbasid, cinventoryid, corder_bb1id, cparentid, cprojectid, cprojectphaseid, cquotecurrency, cquoteunitid, creceieveid, creceiveareaid, creceivepointid, crowno, cselastunitid, csignwastbid, csignwasthid, csignwasttype, csourcebillbid, csourcebillhid, csourcetype, csourcewastbid, csourcewasthid, csourcewasttype, csrc2billbid, csrc2billhid, csrc2billtype, csumid, cvendorid, cworkcenterid, cworksiteid, cwp, dbizdate, ddeliverdate, dfirstbilldate, dr, drequiredate, drequiretime, dstandbydate, dvalidate, dzgdate, fassertcardflag, fbillrowflag, fchecked, flargess, ftoouttransflag, hsl, idesatype, inccontimepoint, inccontimepointname, isok, materialcost, naccumtonum, naccumwastnum, nbarcodenum, ncorrespondastnum, ncorrespondgrsnum, ncorrespondnum, ncountnum, nfeesettletimes, ninassistnum, ningrossnum, ninnum, nkdnum, nmny, nneedinassistnum, noutassistnum, noutgrossnum, noutnum, nplannedmny, nplannedprice, nprice, npricesettlebill, nquotemny, nquotentmny, nquotentprice, nquoteprice, nquoteunitnum, nquoteunitrate, nreplenishedastnum, nreplenishednum, nretastnum, nretgrossnum, nretnum, nsalemny, nsaleprice, nshouldinnum, nshouldoutassistnum, nshouldoutnum, ntarenum, ntaxmny, ntaxprice, ntotalmatchnum, ntotalreasonwastenum, ntranoutastnum, ntranoutnum, pk_bodycalbody, pk_corp, pk_creqwareid, pk_cubasdoc, pk_defdoc1, pk_defdoc10, pk_defdoc11, pk_defdoc12, pk_defdoc13, pk_defdoc14, pk_defdoc15, pk_defdoc16, pk_defdoc17, pk_defdoc18, pk_defdoc19, pk_defdoc2, pk_defdoc20, pk_defdoc3, pk_defdoc4, pk_defdoc5, pk_defdoc6, pk_defdoc7, pk_defdoc8, pk_defdoc9, pk_invoicecorp, pk_measware, pk_packsort, pk_reqcorp, pk_reqstoorg, pk_returnreason, process1, process2, process3, process4, process5, processcost, processmanid, serialnum, ts, vbatchcode, vbilltypeu8rm, vbodynote2, vcorrespondrowno, vfirstbillcode, vfirstrowno, vfree1, vfree10, vfree2, vfree3, vfree4, vfree5, vfree6, vfree7, vfree8, vfree9, vnotebody, vproductbatch, vreceiveaddress, vsignwastcode, vsignwastrowno, vsourcebillcode, vsourcerowno, vsourcewastcode, vsourcewastrowno, vsrc2billcode, vsrc2billrowno, vtransfercode, vuserdef1, vuserdef10, vuserdef11, vuserdef12, vuserdef13, vuserdef14, vuserdef15, vuserdef16, vuserdef17, vuserdef18, vuserdef19, vuserdef2, vuserdef20, vuserdef3, vuserdef4, vuserdef5, vuserdef6, vuserdef7, vuserdef8, vuserdef9, vvehiclecode, writeofftype)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.alrconfincomny},#{entity.alrconfinconum},#{entity.bbarcodeclose},#{entity.bomversion},#{entity.bonroadflag},#{entity.breturnprofit},#{entity.bsafeprice},#{entity.bsourcelargess},#{entity.bsupplyflag},#{entity.btoinzgflag},#{entity.btoouttoiaflag},#{entity.btooutzgflag},#{entity.btou8rm},#{entity.btransasset},#{entity.bzgflag},#{entity.bzgyfflag},#{entity.castunitid},#{entity.cbodybilltypecode},#{entity.cbodywarehouseid},#{entity.ccheckstateid},#{entity.ccorrespondbid},#{entity.ccorrespondcode},#{entity.ccorrespondhid},#{entity.ccorrespondtype},#{entity.ccostobject},#{entity.ccurrencytypeid},#{entity.cfirstbillbid},#{entity.cfirstbillhid},#{entity.cfirsttype},#{entity.cfreezeid},#{entity.cgeneralhid},#{entity.cinvbasid},#{entity.cinventoryid},#{entity.corderBb1id},#{entity.cparentid},#{entity.cprojectid},#{entity.cprojectphaseid},#{entity.cquotecurrency},#{entity.cquoteunitid},#{entity.creceieveid},#{entity.creceiveareaid},#{entity.creceivepointid},#{entity.crowno},#{entity.cselastunitid},#{entity.csignwastbid},#{entity.csignwasthid},#{entity.csignwasttype},#{entity.csourcebillbid},#{entity.csourcebillhid},#{entity.csourcetype},#{entity.csourcewastbid},#{entity.csourcewasthid},#{entity.csourcewasttype},#{entity.csrc2billbid},#{entity.csrc2billhid},#{entity.csrc2billtype},#{entity.csumid},#{entity.cvendorid},#{entity.cworkcenterid},#{entity.cworksiteid},#{entity.cwp},#{entity.dbizdate},#{entity.ddeliverdate},#{entity.dfirstbilldate},#{entity.dr},#{entity.drequiredate},#{entity.drequiretime},#{entity.dstandbydate},#{entity.dvalidate},#{entity.dzgdate},#{entity.fassertcardflag},#{entity.fbillrowflag},#{entity.fchecked},#{entity.flargess},#{entity.ftoouttransflag},#{entity.hsl},#{entity.idesatype},#{entity.inccontimepoint},#{entity.inccontimepointname},#{entity.isok},#{entity.materialcost},#{entity.naccumtonum},#{entity.naccumwastnum},#{entity.nbarcodenum},#{entity.ncorrespondastnum},#{entity.ncorrespondgrsnum},#{entity.ncorrespondnum},#{entity.ncountnum},#{entity.nfeesettletimes},#{entity.ninassistnum},#{entity.ningrossnum},#{entity.ninnum},#{entity.nkdnum},#{entity.nmny},#{entity.nneedinassistnum},#{entity.noutassistnum},#{entity.noutgrossnum},#{entity.noutnum},#{entity.nplannedmny},#{entity.nplannedprice},#{entity.nprice},#{entity.npricesettlebill},#{entity.nquotemny},#{entity.nquotentmny},#{entity.nquotentprice},#{entity.nquoteprice},#{entity.nquoteunitnum},#{entity.nquoteunitrate},#{entity.nreplenishedastnum},#{entity.nreplenishednum},#{entity.nretastnum},#{entity.nretgrossnum},#{entity.nretnum},#{entity.nsalemny},#{entity.nsaleprice},#{entity.nshouldinnum},#{entity.nshouldoutassistnum},#{entity.nshouldoutnum},#{entity.ntarenum},#{entity.ntaxmny},#{entity.ntaxprice},#{entity.ntotalmatchnum},#{entity.ntotalreasonwastenum},#{entity.ntranoutastnum},#{entity.ntranoutnum},#{entity.pkBodycalbody},#{entity.pkCorp},#{entity.pkCreqwareid},#{entity.pkCubasdoc},#{entity.pkDefdoc1},#{entity.pkDefdoc10},#{entity.pkDefdoc11},#{entity.pkDefdoc12},#{entity.pkDefdoc13},#{entity.pkDefdoc14},#{entity.pkDefdoc15},#{entity.pkDefdoc16},#{entity.pkDefdoc17},#{entity.pkDefdoc18},#{entity.pkDefdoc19},#{entity.pkDefdoc2},#{entity.pkDefdoc20},#{entity.pkDefdoc3},#{entity.pkDefdoc4},#{entity.pkDefdoc5},#{entity.pkDefdoc6},#{entity.pkDefdoc7},#{entity.pkDefdoc8},#{entity.pkDefdoc9},#{entity.pkInvoicecorp},#{entity.pkMeasware},#{entity.pkPacksort},#{entity.pkReqcorp},#{entity.pkReqstoorg},#{entity.pkReturnreason},#{entity.process1},#{entity.process2},#{entity.process3},#{entity.process4},#{entity.process5},#{entity.processcost},#{entity.processmanid},#{entity.serialnum},#{entity.ts},#{entity.vbatchcode},#{entity.vbilltypeu8rm},#{entity.vbodynote2},#{entity.vcorrespondrowno},#{entity.vfirstbillcode},#{entity.vfirstrowno},#{entity.vfree1},#{entity.vfree10},#{entity.vfree2},#{entity.vfree3},#{entity.vfree4},#{entity.vfree5},#{entity.vfree6},#{entity.vfree7},#{entity.vfree8},#{entity.vfree9},#{entity.vnotebody},#{entity.vproductbatch},#{entity.vreceiveaddress},#{entity.vsignwastcode},#{entity.vsignwastrowno},#{entity.vsourcebillcode},#{entity.vsourcerowno},#{entity.vsourcewastcode},#{entity.vsourcewastrowno},#{entity.vsrc2billcode},#{entity.vsrc2billrowno},#{entity.vtransfercode},#{entity.vuserdef1},#{entity.vuserdef10},#{entity.vuserdef11},#{entity.vuserdef12},#{entity.vuserdef13},#{entity.vuserdef14},#{entity.vuserdef15},#{entity.vuserdef16},#{entity.vuserdef17},#{entity.vuserdef18},#{entity.vuserdef19},#{entity.vuserdef2},#{entity.vuserdef20},#{entity.vuserdef3},#{entity.vuserdef4},#{entity.vuserdef5},#{entity.vuserdef6},#{entity.vuserdef7},#{entity.vuserdef8},#{entity.vuserdef9},#{entity.vvehiclecode},#{entity.writeofftype})
    </foreach>
    on duplicate key update
    alrconfincomny = values(alrconfincomny),
    alrconfinconum = values(alrconfinconum),
    bbarcodeclose = values(bbarcodeclose),
    bomversion = values(bomversion),
    bonroadflag = values(bonroadflag),
    breturnprofit = values(breturnprofit),
    bsafeprice = values(bsafeprice),
    bsourcelargess = values(bsourcelargess),
    bsupplyflag = values(bsupplyflag),
    btoinzgflag = values(btoinzgflag),
    btoouttoiaflag = values(btoouttoiaflag),
    btooutzgflag = values(btooutzgflag),
    btou8rm = values(btou8rm),
    btransasset = values(btransasset),
    bzgflag = values(bzgflag),
    bzgyfflag = values(bzgyfflag),
    castunitid = values(castunitid),
    cbodybilltypecode = values(cbodybilltypecode),
    cbodywarehouseid = values(cbodywarehouseid),
    ccheckstateid = values(ccheckstateid),
    ccorrespondbid = values(ccorrespondbid),
    ccorrespondcode = values(ccorrespondcode),
    ccorrespondhid = values(ccorrespondhid),
    ccorrespondtype = values(ccorrespondtype),
    ccostobject = values(ccostobject),
    ccurrencytypeid = values(ccurrencytypeid),
    cfirstbillbid = values(cfirstbillbid),
    cfirstbillhid = values(cfirstbillhid),
    cfirsttype = values(cfirsttype),
    cfreezeid = values(cfreezeid),
    cgeneralhid = values(cgeneralhid),
    cinvbasid = values(cinvbasid),
    cinventoryid = values(cinventoryid),
    corder_bb1id = values(corder_bb1id),
    cparentid = values(cparentid),
    cprojectid = values(cprojectid),
    cprojectphaseid = values(cprojectphaseid),
    cquotecurrency = values(cquotecurrency),
    cquoteunitid = values(cquoteunitid),
    creceieveid = values(creceieveid),
    creceiveareaid = values(creceiveareaid),
    creceivepointid = values(creceivepointid),
    crowno = values(crowno),
    cselastunitid = values(cselastunitid),
    csignwastbid = values(csignwastbid),
    csignwasthid = values(csignwasthid),
    csignwasttype = values(csignwasttype),
    csourcebillbid = values(csourcebillbid),
    csourcebillhid = values(csourcebillhid),
    csourcetype = values(csourcetype),
    csourcewastbid = values(csourcewastbid),
    csourcewasthid = values(csourcewasthid),
    csourcewasttype = values(csourcewasttype),
    csrc2billbid = values(csrc2billbid),
    csrc2billhid = values(csrc2billhid),
    csrc2billtype = values(csrc2billtype),
    csumid = values(csumid),
    cvendorid = values(cvendorid),
    cworkcenterid = values(cworkcenterid),
    cworksiteid = values(cworksiteid),
    cwp = values(cwp),
    dbizdate = values(dbizdate),
    ddeliverdate = values(ddeliverdate),
    dfirstbilldate = values(dfirstbilldate),
    dr = values(dr),
    drequiredate = values(drequiredate),
    drequiretime = values(drequiretime),
    dstandbydate = values(dstandbydate),
    dvalidate = values(dvalidate),
    dzgdate = values(dzgdate),
    fassertcardflag = values(fassertcardflag),
    fbillrowflag = values(fbillrowflag),
    fchecked = values(fchecked),
    flargess = values(flargess),
    ftoouttransflag = values(ftoouttransflag),
    hsl = values(hsl),
    idesatype = values(idesatype),
    inccontimepoint = values(inccontimepoint),
    inccontimepointname = values(inccontimepointname),
    isok = values(isok),
    materialcost = values(materialcost),
    naccumtonum = values(naccumtonum),
    naccumwastnum = values(naccumwastnum),
    nbarcodenum = values(nbarcodenum),
    ncorrespondastnum = values(ncorrespondastnum),
    ncorrespondgrsnum = values(ncorrespondgrsnum),
    ncorrespondnum = values(ncorrespondnum),
    ncountnum = values(ncountnum),
    nfeesettletimes = values(nfeesettletimes),
    ninassistnum = values(ninassistnum),
    ningrossnum = values(ningrossnum),
    ninnum = values(ninnum),
    nkdnum = values(nkdnum),
    nmny = values(nmny),
    nneedinassistnum = values(nneedinassistnum),
    noutassistnum = values(noutassistnum),
    noutgrossnum = values(noutgrossnum),
    noutnum = values(noutnum),
    nplannedmny = values(nplannedmny),
    nplannedprice = values(nplannedprice),
    nprice = values(nprice),
    npricesettlebill = values(npricesettlebill),
    nquotemny = values(nquotemny),
    nquotentmny = values(nquotentmny),
    nquotentprice = values(nquotentprice),
    nquoteprice = values(nquoteprice),
    nquoteunitnum = values(nquoteunitnum),
    nquoteunitrate = values(nquoteunitrate),
    nreplenishedastnum = values(nreplenishedastnum),
    nreplenishednum = values(nreplenishednum),
    nretastnum = values(nretastnum),
    nretgrossnum = values(nretgrossnum),
    nretnum = values(nretnum),
    nsalemny = values(nsalemny),
    nsaleprice = values(nsaleprice),
    nshouldinnum = values(nshouldinnum),
    nshouldoutassistnum = values(nshouldoutassistnum),
    nshouldoutnum = values(nshouldoutnum),
    ntarenum = values(ntarenum),
    ntaxmny = values(ntaxmny),
    ntaxprice = values(ntaxprice),
    ntotalmatchnum = values(ntotalmatchnum),
    ntotalreasonwastenum = values(ntotalreasonwastenum),
    ntranoutastnum = values(ntranoutastnum),
    ntranoutnum = values(ntranoutnum),
    pk_bodycalbody = values(pk_bodycalbody),
    pk_corp = values(pk_corp),
    pk_creqwareid = values(pk_creqwareid),
    pk_cubasdoc = values(pk_cubasdoc),
    pk_defdoc1 = values(pk_defdoc1),
    pk_defdoc10 = values(pk_defdoc10),
    pk_defdoc11 = values(pk_defdoc11),
    pk_defdoc12 = values(pk_defdoc12),
    pk_defdoc13 = values(pk_defdoc13),
    pk_defdoc14 = values(pk_defdoc14),
    pk_defdoc15 = values(pk_defdoc15),
    pk_defdoc16 = values(pk_defdoc16),
    pk_defdoc17 = values(pk_defdoc17),
    pk_defdoc18 = values(pk_defdoc18),
    pk_defdoc19 = values(pk_defdoc19),
    pk_defdoc2 = values(pk_defdoc2),
    pk_defdoc20 = values(pk_defdoc20),
    pk_defdoc3 = values(pk_defdoc3),
    pk_defdoc4 = values(pk_defdoc4),
    pk_defdoc5 = values(pk_defdoc5),
    pk_defdoc6 = values(pk_defdoc6),
    pk_defdoc7 = values(pk_defdoc7),
    pk_defdoc8 = values(pk_defdoc8),
    pk_defdoc9 = values(pk_defdoc9),
    pk_invoicecorp = values(pk_invoicecorp),
    pk_measware = values(pk_measware),
    pk_packsort = values(pk_packsort),
    pk_reqcorp = values(pk_reqcorp),
    pk_reqstoorg = values(pk_reqstoorg),
    pk_returnreason = values(pk_returnreason),
    process1 = values(process1),
    process2 = values(process2),
    process3 = values(process3),
    process4 = values(process4),
    process5 = values(process5),
    processcost = values(processcost),
    processmanid = values(processmanid),
    serialnum = values(serialnum),
    ts = values(ts),
    vbatchcode = values(vbatchcode),
    vbilltypeu8rm = values(vbilltypeu8rm),
    vbodynote2 = values(vbodynote2),
    vcorrespondrowno = values(vcorrespondrowno),
    vfirstbillcode = values(vfirstbillcode),
    vfirstrowno = values(vfirstrowno),
    vfree1 = values(vfree1),
    vfree10 = values(vfree10),
    vfree2 = values(vfree2),
    vfree3 = values(vfree3),
    vfree4 = values(vfree4),
    vfree5 = values(vfree5),
    vfree6 = values(vfree6),
    vfree7 = values(vfree7),
    vfree8 = values(vfree8),
    vfree9 = values(vfree9),
    vnotebody = values(vnotebody),
    vproductbatch = values(vproductbatch),
    vreceiveaddress = values(vreceiveaddress),
    vsignwastcode = values(vsignwastcode),
    vsignwastrowno = values(vsignwastrowno),
    vsourcebillcode = values(vsourcebillcode),
    vsourcerowno = values(vsourcerowno),
    vsourcewastcode = values(vsourcewastcode),
    vsourcewastrowno = values(vsourcewastrowno),
    vsrc2billcode = values(vsrc2billcode),
    vsrc2billrowno = values(vsrc2billrowno),
    vtransfercode = values(vtransfercode),
    vuserdef1 = values(vuserdef1),
    vuserdef10 = values(vuserdef10),
    vuserdef11 = values(vuserdef11),
    vuserdef12 = values(vuserdef12),
    vuserdef13 = values(vuserdef13),
    vuserdef14 = values(vuserdef14),
    vuserdef15 = values(vuserdef15),
    vuserdef16 = values(vuserdef16),
    vuserdef17 = values(vuserdef17),
    vuserdef18 = values(vuserdef18),
    vuserdef19 = values(vuserdef19),
    vuserdef2 = values(vuserdef2),
    vuserdef20 = values(vuserdef20),
    vuserdef3 = values(vuserdef3),
    vuserdef4 = values(vuserdef4),
    vuserdef5 = values(vuserdef5),
    vuserdef6 = values(vuserdef6),
    vuserdef7 = values(vuserdef7),
    vuserdef8 = values(vuserdef8),
    vuserdef9 = values(vuserdef9),
    vvehiclecode = values(vvehiclecode),
    writeofftype = values(writeofftype)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity" >
update ic_general_b  set
<trim suffix="" suffixOverrides=",">
  <if test="alrconfincomny != null"> alrconfincomny = #{alrconfincomny},</if>
  <if test="alrconfinconum != null"> alrconfinconum = #{alrconfinconum},</if>
  <if test="bbarcodeclose != null and bbarcodeclose != ''"> bbarcodeclose = #{bbarcodeclose},</if>
  <if test="bomversion != null and bomversion != ''"> bomversion = #{bomversion},</if>
  <if test="bonroadflag != null and bonroadflag != ''"> bonroadflag = #{bonroadflag},</if>
  <if test="breturnprofit != null and breturnprofit != ''"> breturnprofit = #{breturnprofit},</if>
  <if test="bsafeprice != null and bsafeprice != ''"> bsafeprice = #{bsafeprice},</if>
  <if test="bsourcelargess != null and bsourcelargess != ''"> bsourcelargess = #{bsourcelargess},</if>
  <if test="bsupplyflag != null and bsupplyflag != ''"> bsupplyflag = #{bsupplyflag},</if>
  <if test="btoinzgflag != null and btoinzgflag != ''"> btoinzgflag = #{btoinzgflag},</if>
  <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> btoouttoiaflag = #{btoouttoiaflag},</if>
  <if test="btooutzgflag != null and btooutzgflag != ''"> btooutzgflag = #{btooutzgflag},</if>
  <if test="btou8rm != null and btou8rm != ''"> btou8rm = #{btou8rm},</if>
  <if test="btransasset != null and btransasset != ''"> btransasset = #{btransasset},</if>
  <if test="bzgflag != null and bzgflag != ''"> bzgflag = #{bzgflag},</if>
  <if test="bzgyfflag != null and bzgyfflag != ''"> bzgyfflag = #{bzgyfflag},</if>
  <if test="castunitid != null and castunitid != ''"> castunitid = #{castunitid},</if>
  <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> cbodybilltypecode = #{cbodybilltypecode},</if>
  <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> cbodywarehouseid = #{cbodywarehouseid},</if>
  <if test="ccheckstateid != null and ccheckstateid != ''"> ccheckstateid = #{ccheckstateid},</if>
  <if test="ccorrespondbid != null and ccorrespondbid != ''"> ccorrespondbid = #{ccorrespondbid},</if>
  <if test="ccorrespondcode != null and ccorrespondcode != ''"> ccorrespondcode = #{ccorrespondcode},</if>
  <if test="ccorrespondhid != null and ccorrespondhid != ''"> ccorrespondhid = #{ccorrespondhid},</if>
  <if test="ccorrespondtype != null and ccorrespondtype != ''"> ccorrespondtype = #{ccorrespondtype},</if>
  <if test="ccostobject != null and ccostobject != ''"> ccostobject = #{ccostobject},</if>
  <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> ccurrencytypeid = #{ccurrencytypeid},</if>
  <if test="cfirstbillbid != null and cfirstbillbid != ''"> cfirstbillbid = #{cfirstbillbid},</if>
  <if test="cfirstbillhid != null and cfirstbillhid != ''"> cfirstbillhid = #{cfirstbillhid},</if>
  <if test="cfirsttype != null and cfirsttype != ''"> cfirsttype = #{cfirsttype},</if>
  <if test="cfreezeid != null and cfreezeid != ''"> cfreezeid = #{cfreezeid},</if>
  <if test="cgeneralhid != null and cgeneralhid != ''"> cgeneralhid = #{cgeneralhid},</if>
  <if test="cinvbasid != null and cinvbasid != ''"> cinvbasid = #{cinvbasid},</if>
  <if test="cinventoryid != null and cinventoryid != ''"> cinventoryid = #{cinventoryid},</if>
  <if test="corderBb1id != null and corderBb1id != ''"> corder_bb1id = #{corderBb1id},</if>
  <if test="cparentid != null and cparentid != ''"> cparentid = #{cparentid},</if>
  <if test="cprojectid != null and cprojectid != ''"> cprojectid = #{cprojectid},</if>
  <if test="cprojectphaseid != null and cprojectphaseid != ''"> cprojectphaseid = #{cprojectphaseid},</if>
  <if test="cquotecurrency != null and cquotecurrency != ''"> cquotecurrency = #{cquotecurrency},</if>
  <if test="cquoteunitid != null and cquoteunitid != ''"> cquoteunitid = #{cquoteunitid},</if>
  <if test="creceieveid != null and creceieveid != ''"> creceieveid = #{creceieveid},</if>
  <if test="creceiveareaid != null and creceiveareaid != ''"> creceiveareaid = #{creceiveareaid},</if>
  <if test="creceivepointid != null and creceivepointid != ''"> creceivepointid = #{creceivepointid},</if>
  <if test="crowno != null and crowno != ''"> crowno = #{crowno},</if>
  <if test="cselastunitid != null and cselastunitid != ''"> cselastunitid = #{cselastunitid},</if>
  <if test="csignwastbid != null and csignwastbid != ''"> csignwastbid = #{csignwastbid},</if>
  <if test="csignwasthid != null and csignwasthid != ''"> csignwasthid = #{csignwasthid},</if>
  <if test="csignwasttype != null and csignwasttype != ''"> csignwasttype = #{csignwasttype},</if>
  <if test="csourcebillbid != null and csourcebillbid != ''"> csourcebillbid = #{csourcebillbid},</if>
  <if test="csourcebillhid != null and csourcebillhid != ''"> csourcebillhid = #{csourcebillhid},</if>
  <if test="csourcetype != null and csourcetype != ''"> csourcetype = #{csourcetype},</if>
  <if test="csourcewastbid != null and csourcewastbid != ''"> csourcewastbid = #{csourcewastbid},</if>
  <if test="csourcewasthid != null and csourcewasthid != ''"> csourcewasthid = #{csourcewasthid},</if>
  <if test="csourcewasttype != null and csourcewasttype != ''"> csourcewasttype = #{csourcewasttype},</if>
  <if test="csrc2billbid != null and csrc2billbid != ''"> csrc2billbid = #{csrc2billbid},</if>
  <if test="csrc2billhid != null and csrc2billhid != ''"> csrc2billhid = #{csrc2billhid},</if>
  <if test="csrc2billtype != null and csrc2billtype != ''"> csrc2billtype = #{csrc2billtype},</if>
  <if test="csumid != null and csumid != ''"> csumid = #{csumid},</if>
  <if test="cvendorid != null and cvendorid != ''"> cvendorid = #{cvendorid},</if>
  <if test="cworkcenterid != null and cworkcenterid != ''"> cworkcenterid = #{cworkcenterid},</if>
  <if test="cworksiteid != null and cworksiteid != ''"> cworksiteid = #{cworksiteid},</if>
  <if test="cwp != null and cwp != ''"> cwp = #{cwp},</if>
  <if test="dbizdate != null and dbizdate != ''"> dbizdate = #{dbizdate},</if>
  <if test="ddeliverdate != null and ddeliverdate != ''"> ddeliverdate = #{ddeliverdate},</if>
  <if test="dfirstbilldate != null and dfirstbilldate != ''"> dfirstbilldate = #{dfirstbilldate},</if>
  <if test="dr != null"> dr = #{dr},</if>
  <if test="drequiredate != null and drequiredate != ''"> drequiredate = #{drequiredate},</if>
  <if test="drequiretime != null and drequiretime != ''"> drequiretime = #{drequiretime},</if>
  <if test="dstandbydate != null and dstandbydate != ''"> dstandbydate = #{dstandbydate},</if>
  <if test="dvalidate != null and dvalidate != ''"> dvalidate = #{dvalidate},</if>
  <if test="dzgdate != null and dzgdate != ''"> dzgdate = #{dzgdate},</if>
  <if test="fassertcardflag != null and fassertcardflag != ''"> fassertcardflag = #{fassertcardflag},</if>
  <if test="fbillrowflag != null"> fbillrowflag = #{fbillrowflag},</if>
  <if test="fchecked != null"> fchecked = #{fchecked},</if>
  <if test="flargess != null and flargess != ''"> flargess = #{flargess},</if>
  <if test="ftoouttransflag != null and ftoouttransflag != ''"> ftoouttransflag = #{ftoouttransflag},</if>
  <if test="hsl != null"> hsl = #{hsl},</if>
  <if test="idesatype != null"> idesatype = #{idesatype},</if>
  <if test="inccontimepoint != null and inccontimepoint != ''"> inccontimepoint = #{inccontimepoint},</if>
  <if test="inccontimepointname != null and inccontimepointname != ''"> inccontimepointname = #{inccontimepointname},</if>
  <if test="isok != null and isok != ''"> isok = #{isok},</if>
  <if test="materialcost != null"> materialcost = #{materialcost},</if>
  <if test="naccumtonum != null"> naccumtonum = #{naccumtonum},</if>
  <if test="naccumwastnum != null"> naccumwastnum = #{naccumwastnum},</if>
  <if test="nbarcodenum != null"> nbarcodenum = #{nbarcodenum},</if>
  <if test="ncorrespondastnum != null"> ncorrespondastnum = #{ncorrespondastnum},</if>
  <if test="ncorrespondgrsnum != null"> ncorrespondgrsnum = #{ncorrespondgrsnum},</if>
  <if test="ncorrespondnum != null"> ncorrespondnum = #{ncorrespondnum},</if>
  <if test="ncountnum != null"> ncountnum = #{ncountnum},</if>
  <if test="nfeesettletimes != null"> nfeesettletimes = #{nfeesettletimes},</if>
  <if test="ninassistnum != null"> ninassistnum = #{ninassistnum},</if>
  <if test="ningrossnum != null"> ningrossnum = #{ningrossnum},</if>
  <if test="ninnum != null"> ninnum = #{ninnum},</if>
  <if test="nkdnum != null"> nkdnum = #{nkdnum},</if>
  <if test="nmny != null"> nmny = #{nmny},</if>
  <if test="nneedinassistnum != null"> nneedinassistnum = #{nneedinassistnum},</if>
  <if test="noutassistnum != null"> noutassistnum = #{noutassistnum},</if>
  <if test="noutgrossnum != null"> noutgrossnum = #{noutgrossnum},</if>
  <if test="noutnum != null"> noutnum = #{noutnum},</if>
  <if test="nplannedmny != null"> nplannedmny = #{nplannedmny},</if>
  <if test="nplannedprice != null"> nplannedprice = #{nplannedprice},</if>
  <if test="nprice != null"> nprice = #{nprice},</if>
  <if test="npricesettlebill != null"> npricesettlebill = #{npricesettlebill},</if>
  <if test="nquotemny != null"> nquotemny = #{nquotemny},</if>
  <if test="nquotentmny != null"> nquotentmny = #{nquotentmny},</if>
  <if test="nquotentprice != null"> nquotentprice = #{nquotentprice},</if>
  <if test="nquoteprice != null"> nquoteprice = #{nquoteprice},</if>
  <if test="nquoteunitnum != null"> nquoteunitnum = #{nquoteunitnum},</if>
  <if test="nquoteunitrate != null"> nquoteunitrate = #{nquoteunitrate},</if>
  <if test="nreplenishedastnum != null"> nreplenishedastnum = #{nreplenishedastnum},</if>
  <if test="nreplenishednum != null"> nreplenishednum = #{nreplenishednum},</if>
  <if test="nretastnum != null"> nretastnum = #{nretastnum},</if>
  <if test="nretgrossnum != null"> nretgrossnum = #{nretgrossnum},</if>
  <if test="nretnum != null"> nretnum = #{nretnum},</if>
  <if test="nsalemny != null"> nsalemny = #{nsalemny},</if>
  <if test="nsaleprice != null"> nsaleprice = #{nsaleprice},</if>
  <if test="nshouldinnum != null"> nshouldinnum = #{nshouldinnum},</if>
  <if test="nshouldoutassistnum != null"> nshouldoutassistnum = #{nshouldoutassistnum},</if>
  <if test="nshouldoutnum != null"> nshouldoutnum = #{nshouldoutnum},</if>
  <if test="ntarenum != null"> ntarenum = #{ntarenum},</if>
  <if test="ntaxmny != null"> ntaxmny = #{ntaxmny},</if>
  <if test="ntaxprice != null"> ntaxprice = #{ntaxprice},</if>
  <if test="ntotalmatchnum != null"> ntotalmatchnum = #{ntotalmatchnum},</if>
  <if test="ntotalreasonwastenum != null"> ntotalreasonwastenum = #{ntotalreasonwastenum},</if>
  <if test="ntranoutastnum != null"> ntranoutastnum = #{ntranoutastnum},</if>
  <if test="ntranoutnum != null"> ntranoutnum = #{ntranoutnum},</if>
  <if test="pkBodycalbody != null and pkBodycalbody != ''"> pk_bodycalbody = #{pkBodycalbody},</if>
  <if test="pkCorp != null and pkCorp != ''"> pk_corp = #{pkCorp},</if>
  <if test="pkCreqwareid != null and pkCreqwareid != ''"> pk_creqwareid = #{pkCreqwareid},</if>
  <if test="pkCubasdoc != null and pkCubasdoc != ''"> pk_cubasdoc = #{pkCubasdoc},</if>
  <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> pk_defdoc1 = #{pkDefdoc1},</if>
  <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> pk_defdoc10 = #{pkDefdoc10},</if>
  <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> pk_defdoc11 = #{pkDefdoc11},</if>
  <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> pk_defdoc12 = #{pkDefdoc12},</if>
  <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> pk_defdoc13 = #{pkDefdoc13},</if>
  <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> pk_defdoc14 = #{pkDefdoc14},</if>
  <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> pk_defdoc15 = #{pkDefdoc15},</if>
  <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> pk_defdoc16 = #{pkDefdoc16},</if>
  <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> pk_defdoc17 = #{pkDefdoc17},</if>
  <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> pk_defdoc18 = #{pkDefdoc18},</if>
  <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> pk_defdoc19 = #{pkDefdoc19},</if>
  <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> pk_defdoc2 = #{pkDefdoc2},</if>
  <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> pk_defdoc20 = #{pkDefdoc20},</if>
  <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> pk_defdoc3 = #{pkDefdoc3},</if>
  <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> pk_defdoc4 = #{pkDefdoc4},</if>
  <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> pk_defdoc5 = #{pkDefdoc5},</if>
  <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> pk_defdoc6 = #{pkDefdoc6},</if>
  <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> pk_defdoc7 = #{pkDefdoc7},</if>
  <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> pk_defdoc8 = #{pkDefdoc8},</if>
  <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> pk_defdoc9 = #{pkDefdoc9},</if>
  <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> pk_invoicecorp = #{pkInvoicecorp},</if>
  <if test="pkMeasware != null and pkMeasware != ''"> pk_measware = #{pkMeasware},</if>
  <if test="pkPacksort != null and pkPacksort != ''"> pk_packsort = #{pkPacksort},</if>
  <if test="pkReqcorp != null and pkReqcorp != ''"> pk_reqcorp = #{pkReqcorp},</if>
  <if test="pkReqstoorg != null and pkReqstoorg != ''"> pk_reqstoorg = #{pkReqstoorg},</if>
  <if test="pkReturnreason != null and pkReturnreason != ''"> pk_returnreason = #{pkReturnreason},</if>
  <if test="process1 != null and process1 != ''"> process1 = #{process1},</if>
  <if test="process2 != null and process2 != ''"> process2 = #{process2},</if>
  <if test="process3 != null and process3 != ''"> process3 = #{process3},</if>
  <if test="process4 != null and process4 != ''"> process4 = #{process4},</if>
  <if test="process5 != null and process5 != ''"> process5 = #{process5},</if>
  <if test="processcost != null"> processcost = #{processcost},</if>
  <if test="processmanid != null and processmanid != ''"> processmanid = #{processmanid},</if>
  <if test="serialnum != null"> serialnum = #{serialnum},</if>
  <if test="ts != null and ts != ''"> ts = #{ts},</if>
  <if test="vbatchcode != null and vbatchcode != ''"> vbatchcode = #{vbatchcode},</if>
  <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> vbilltypeu8rm = #{vbilltypeu8rm},</if>
  <if test="vbodynote2 != null and vbodynote2 != ''"> vbodynote2 = #{vbodynote2},</if>
  <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> vcorrespondrowno = #{vcorrespondrowno},</if>
  <if test="vfirstbillcode != null and vfirstbillcode != ''"> vfirstbillcode = #{vfirstbillcode},</if>
  <if test="vfirstrowno != null and vfirstrowno != ''"> vfirstrowno = #{vfirstrowno},</if>
  <if test="vfree1 != null and vfree1 != ''"> vfree1 = #{vfree1},</if>
  <if test="vfree10 != null and vfree10 != ''"> vfree10 = #{vfree10},</if>
  <if test="vfree2 != null and vfree2 != ''"> vfree2 = #{vfree2},</if>
  <if test="vfree3 != null and vfree3 != ''"> vfree3 = #{vfree3},</if>
  <if test="vfree4 != null and vfree4 != ''"> vfree4 = #{vfree4},</if>
  <if test="vfree5 != null and vfree5 != ''"> vfree5 = #{vfree5},</if>
  <if test="vfree6 != null and vfree6 != ''"> vfree6 = #{vfree6},</if>
  <if test="vfree7 != null and vfree7 != ''"> vfree7 = #{vfree7},</if>
  <if test="vfree8 != null and vfree8 != ''"> vfree8 = #{vfree8},</if>
  <if test="vfree9 != null and vfree9 != ''"> vfree9 = #{vfree9},</if>
  <if test="vnotebody != null and vnotebody != ''"> vnotebody = #{vnotebody},</if>
  <if test="vproductbatch != null and vproductbatch != ''"> vproductbatch = #{vproductbatch},</if>
  <if test="vreceiveaddress != null and vreceiveaddress != ''"> vreceiveaddress = #{vreceiveaddress},</if>
  <if test="vsignwastcode != null and vsignwastcode != ''"> vsignwastcode = #{vsignwastcode},</if>
  <if test="vsignwastrowno != null and vsignwastrowno != ''"> vsignwastrowno = #{vsignwastrowno},</if>
  <if test="vsourcebillcode != null and vsourcebillcode != ''"> vsourcebillcode = #{vsourcebillcode},</if>
  <if test="vsourcerowno != null and vsourcerowno != ''"> vsourcerowno = #{vsourcerowno},</if>
  <if test="vsourcewastcode != null and vsourcewastcode != ''"> vsourcewastcode = #{vsourcewastcode},</if>
  <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> vsourcewastrowno = #{vsourcewastrowno},</if>
  <if test="vsrc2billcode != null and vsrc2billcode != ''"> vsrc2billcode = #{vsrc2billcode},</if>
  <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> vsrc2billrowno = #{vsrc2billrowno},</if>
  <if test="vtransfercode != null and vtransfercode != ''"> vtransfercode = #{vtransfercode},</if>
  <if test="vuserdef1 != null and vuserdef1 != ''"> vuserdef1 = #{vuserdef1},</if>
  <if test="vuserdef10 != null and vuserdef10 != ''"> vuserdef10 = #{vuserdef10},</if>
  <if test="vuserdef11 != null and vuserdef11 != ''"> vuserdef11 = #{vuserdef11},</if>
  <if test="vuserdef12 != null and vuserdef12 != ''"> vuserdef12 = #{vuserdef12},</if>
  <if test="vuserdef13 != null and vuserdef13 != ''"> vuserdef13 = #{vuserdef13},</if>
  <if test="vuserdef14 != null and vuserdef14 != ''"> vuserdef14 = #{vuserdef14},</if>
  <if test="vuserdef15 != null and vuserdef15 != ''"> vuserdef15 = #{vuserdef15},</if>
  <if test="vuserdef16 != null and vuserdef16 != ''"> vuserdef16 = #{vuserdef16},</if>
  <if test="vuserdef17 != null and vuserdef17 != ''"> vuserdef17 = #{vuserdef17},</if>
  <if test="vuserdef18 != null and vuserdef18 != ''"> vuserdef18 = #{vuserdef18},</if>
  <if test="vuserdef19 != null and vuserdef19 != ''"> vuserdef19 = #{vuserdef19},</if>
  <if test="vuserdef2 != null and vuserdef2 != ''"> vuserdef2 = #{vuserdef2},</if>
  <if test="vuserdef20 != null and vuserdef20 != ''"> vuserdef20 = #{vuserdef20},</if>
  <if test="vuserdef3 != null and vuserdef3 != ''"> vuserdef3 = #{vuserdef3},</if>
  <if test="vuserdef4 != null and vuserdef4 != ''"> vuserdef4 = #{vuserdef4},</if>
  <if test="vuserdef5 != null and vuserdef5 != ''"> vuserdef5 = #{vuserdef5},</if>
  <if test="vuserdef6 != null and vuserdef6 != ''"> vuserdef6 = #{vuserdef6},</if>
  <if test="vuserdef7 != null and vuserdef7 != ''"> vuserdef7 = #{vuserdef7},</if>
  <if test="vuserdef8 != null and vuserdef8 != ''"> vuserdef8 = #{vuserdef8},</if>
  <if test="vuserdef9 != null and vuserdef9 != ''"> vuserdef9 = #{vuserdef9},</if>
  <if test="vvehiclecode != null and vvehiclecode != ''"> vvehiclecode = #{vvehiclecode},</if>
  <if test="writeofftype != null and writeofftype != ''"> writeofftype = #{writeofftype},</if>
</trim>
where cgeneralbid = #{cgeneralbid}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity" >
update ic_general_b  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where cgeneralbid = #{cgeneralbid}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.IcGeneralBEntity" >
update ic_general_b  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
 <trim prefix="where" prefixOverrides="and"> 
        <if test="alrconfincomny != null"> and alrconfincomny = #{alrconfincomny} </if>
            <if test="alrconfinconum != null"> and alrconfinconum = #{alrconfinconum} </if>
            <if test="bbarcodeclose != null and bbarcodeclose != ''"> and bbarcodeclose = #{bbarcodeclose} </if>
            <if test="bomversion != null and bomversion != ''"> and bomversion = #{bomversion} </if>
            <if test="bonroadflag != null and bonroadflag != ''"> and bonroadflag = #{bonroadflag} </if>
            <if test="breturnprofit != null and breturnprofit != ''"> and breturnprofit = #{breturnprofit} </if>
            <if test="bsafeprice != null and bsafeprice != ''"> and bsafeprice = #{bsafeprice} </if>
            <if test="bsourcelargess != null and bsourcelargess != ''"> and bsourcelargess = #{bsourcelargess} </if>
            <if test="bsupplyflag != null and bsupplyflag != ''"> and bsupplyflag = #{bsupplyflag} </if>
            <if test="btoinzgflag != null and btoinzgflag != ''"> and btoinzgflag = #{btoinzgflag} </if>
            <if test="btoouttoiaflag != null and btoouttoiaflag != ''"> and btoouttoiaflag = #{btoouttoiaflag} </if>
            <if test="btooutzgflag != null and btooutzgflag != ''"> and btooutzgflag = #{btooutzgflag} </if>
            <if test="btou8rm != null and btou8rm != ''"> and btou8rm = #{btou8rm} </if>
            <if test="btransasset != null and btransasset != ''"> and btransasset = #{btransasset} </if>
            <if test="bzgflag != null and bzgflag != ''"> and bzgflag = #{bzgflag} </if>
            <if test="bzgyfflag != null and bzgyfflag != ''"> and bzgyfflag = #{bzgyfflag} </if>
            <if test="castunitid != null and castunitid != ''"> and castunitid = #{castunitid} </if>
            <if test="cbodybilltypecode != null and cbodybilltypecode != ''"> and cbodybilltypecode = #{cbodybilltypecode} </if>
            <if test="cbodywarehouseid != null and cbodywarehouseid != ''"> and cbodywarehouseid = #{cbodywarehouseid} </if>
            <if test="ccheckstateid != null and ccheckstateid != ''"> and ccheckstateid = #{ccheckstateid} </if>
            <if test="ccorrespondbid != null and ccorrespondbid != ''"> and ccorrespondbid = #{ccorrespondbid} </if>
            <if test="ccorrespondcode != null and ccorrespondcode != ''"> and ccorrespondcode = #{ccorrespondcode} </if>
            <if test="ccorrespondhid != null and ccorrespondhid != ''"> and ccorrespondhid = #{ccorrespondhid} </if>
            <if test="ccorrespondtype != null and ccorrespondtype != ''"> and ccorrespondtype = #{ccorrespondtype} </if>
            <if test="ccostobject != null and ccostobject != ''"> and ccostobject = #{ccostobject} </if>
            <if test="ccurrencytypeid != null and ccurrencytypeid != ''"> and ccurrencytypeid = #{ccurrencytypeid} </if>
            <if test="cfirstbillbid != null and cfirstbillbid != ''"> and cfirstbillbid = #{cfirstbillbid} </if>
            <if test="cfirstbillhid != null and cfirstbillhid != ''"> and cfirstbillhid = #{cfirstbillhid} </if>
            <if test="cfirsttype != null and cfirsttype != ''"> and cfirsttype = #{cfirsttype} </if>
            <if test="cfreezeid != null and cfreezeid != ''"> and cfreezeid = #{cfreezeid} </if>
            <if test="cgeneralbid != null and cgeneralbid != ''"> and cgeneralbid = #{cgeneralbid} </if>
            <if test="cgeneralhid != null and cgeneralhid != ''"> and cgeneralhid = #{cgeneralhid} </if>
            <if test="cinvbasid != null and cinvbasid != ''"> and cinvbasid = #{cinvbasid} </if>
            <if test="cinventoryid != null and cinventoryid != ''"> and cinventoryid = #{cinventoryid} </if>
            <if test="corderBb1id != null and corderBb1id != ''"> and corder_bb1id = #{corderBb1id} </if>
            <if test="cparentid != null and cparentid != ''"> and cparentid = #{cparentid} </if>
            <if test="cprojectid != null and cprojectid != ''"> and cprojectid = #{cprojectid} </if>
            <if test="cprojectphaseid != null and cprojectphaseid != ''"> and cprojectphaseid = #{cprojectphaseid} </if>
            <if test="cquotecurrency != null and cquotecurrency != ''"> and cquotecurrency = #{cquotecurrency} </if>
            <if test="cquoteunitid != null and cquoteunitid != ''"> and cquoteunitid = #{cquoteunitid} </if>
            <if test="creceieveid != null and creceieveid != ''"> and creceieveid = #{creceieveid} </if>
            <if test="creceiveareaid != null and creceiveareaid != ''"> and creceiveareaid = #{creceiveareaid} </if>
            <if test="creceivepointid != null and creceivepointid != ''"> and creceivepointid = #{creceivepointid} </if>
            <if test="crowno != null and crowno != ''"> and crowno = #{crowno} </if>
            <if test="cselastunitid != null and cselastunitid != ''"> and cselastunitid = #{cselastunitid} </if>
            <if test="csignwastbid != null and csignwastbid != ''"> and csignwastbid = #{csignwastbid} </if>
            <if test="csignwasthid != null and csignwasthid != ''"> and csignwasthid = #{csignwasthid} </if>
            <if test="csignwasttype != null and csignwasttype != ''"> and csignwasttype = #{csignwasttype} </if>
            <if test="csourcebillbid != null and csourcebillbid != ''"> and csourcebillbid = #{csourcebillbid} </if>
            <if test="csourcebillhid != null and csourcebillhid != ''"> and csourcebillhid = #{csourcebillhid} </if>
            <if test="csourcetype != null and csourcetype != ''"> and csourcetype = #{csourcetype} </if>
            <if test="csourcewastbid != null and csourcewastbid != ''"> and csourcewastbid = #{csourcewastbid} </if>
            <if test="csourcewasthid != null and csourcewasthid != ''"> and csourcewasthid = #{csourcewasthid} </if>
            <if test="csourcewasttype != null and csourcewasttype != ''"> and csourcewasttype = #{csourcewasttype} </if>
            <if test="csrc2billbid != null and csrc2billbid != ''"> and csrc2billbid = #{csrc2billbid} </if>
            <if test="csrc2billhid != null and csrc2billhid != ''"> and csrc2billhid = #{csrc2billhid} </if>
            <if test="csrc2billtype != null and csrc2billtype != ''"> and csrc2billtype = #{csrc2billtype} </if>
            <if test="csumid != null and csumid != ''"> and csumid = #{csumid} </if>
            <if test="cvendorid != null and cvendorid != ''"> and cvendorid = #{cvendorid} </if>
            <if test="cworkcenterid != null and cworkcenterid != ''"> and cworkcenterid = #{cworkcenterid} </if>
            <if test="cworksiteid != null and cworksiteid != ''"> and cworksiteid = #{cworksiteid} </if>
            <if test="cwp != null and cwp != ''"> and cwp = #{cwp} </if>
            <if test="dbizdate != null and dbizdate != ''"> and dbizdate = #{dbizdate} </if>
            <if test="ddeliverdate != null and ddeliverdate != ''"> and ddeliverdate = #{ddeliverdate} </if>
            <if test="dfirstbilldate != null and dfirstbilldate != ''"> and dfirstbilldate = #{dfirstbilldate} </if>
            <if test="dr != null"> and dr = #{dr} </if>
            <if test="drequiredate != null and drequiredate != ''"> and drequiredate = #{drequiredate} </if>
            <if test="drequiretime != null and drequiretime != ''"> and drequiretime = #{drequiretime} </if>
            <if test="dstandbydate != null and dstandbydate != ''"> and dstandbydate = #{dstandbydate} </if>
            <if test="dvalidate != null and dvalidate != ''"> and dvalidate = #{dvalidate} </if>
            <if test="dzgdate != null and dzgdate != ''"> and dzgdate = #{dzgdate} </if>
            <if test="fassertcardflag != null and fassertcardflag != ''"> and fassertcardflag = #{fassertcardflag} </if>
            <if test="fbillrowflag != null"> and fbillrowflag = #{fbillrowflag} </if>
            <if test="fchecked != null"> and fchecked = #{fchecked} </if>
            <if test="flargess != null and flargess != ''"> and flargess = #{flargess} </if>
            <if test="ftoouttransflag != null and ftoouttransflag != ''"> and ftoouttransflag = #{ftoouttransflag} </if>
            <if test="hsl != null"> and hsl = #{hsl} </if>
            <if test="idesatype != null"> and idesatype = #{idesatype} </if>
            <if test="inccontimepoint != null and inccontimepoint != ''"> and inccontimepoint = #{inccontimepoint} </if>
            <if test="inccontimepointname != null and inccontimepointname != ''"> and inccontimepointname = #{inccontimepointname} </if>
            <if test="isok != null and isok != ''"> and isok = #{isok} </if>
            <if test="materialcost != null"> and materialcost = #{materialcost} </if>
            <if test="naccumtonum != null"> and naccumtonum = #{naccumtonum} </if>
            <if test="naccumwastnum != null"> and naccumwastnum = #{naccumwastnum} </if>
            <if test="nbarcodenum != null"> and nbarcodenum = #{nbarcodenum} </if>
            <if test="ncorrespondastnum != null"> and ncorrespondastnum = #{ncorrespondastnum} </if>
            <if test="ncorrespondgrsnum != null"> and ncorrespondgrsnum = #{ncorrespondgrsnum} </if>
            <if test="ncorrespondnum != null"> and ncorrespondnum = #{ncorrespondnum} </if>
            <if test="ncountnum != null"> and ncountnum = #{ncountnum} </if>
            <if test="nfeesettletimes != null"> and nfeesettletimes = #{nfeesettletimes} </if>
            <if test="ninassistnum != null"> and ninassistnum = #{ninassistnum} </if>
            <if test="ningrossnum != null"> and ningrossnum = #{ningrossnum} </if>
            <if test="ninnum != null"> and ninnum = #{ninnum} </if>
            <if test="nkdnum != null"> and nkdnum = #{nkdnum} </if>
            <if test="nmny != null"> and nmny = #{nmny} </if>
            <if test="nneedinassistnum != null"> and nneedinassistnum = #{nneedinassistnum} </if>
            <if test="noutassistnum != null"> and noutassistnum = #{noutassistnum} </if>
            <if test="noutgrossnum != null"> and noutgrossnum = #{noutgrossnum} </if>
            <if test="noutnum != null"> and noutnum = #{noutnum} </if>
            <if test="nplannedmny != null"> and nplannedmny = #{nplannedmny} </if>
            <if test="nplannedprice != null"> and nplannedprice = #{nplannedprice} </if>
            <if test="nprice != null"> and nprice = #{nprice} </if>
            <if test="npricesettlebill != null"> and npricesettlebill = #{npricesettlebill} </if>
            <if test="nquotemny != null"> and nquotemny = #{nquotemny} </if>
            <if test="nquotentmny != null"> and nquotentmny = #{nquotentmny} </if>
            <if test="nquotentprice != null"> and nquotentprice = #{nquotentprice} </if>
            <if test="nquoteprice != null"> and nquoteprice = #{nquoteprice} </if>
            <if test="nquoteunitnum != null"> and nquoteunitnum = #{nquoteunitnum} </if>
            <if test="nquoteunitrate != null"> and nquoteunitrate = #{nquoteunitrate} </if>
            <if test="nreplenishedastnum != null"> and nreplenishedastnum = #{nreplenishedastnum} </if>
            <if test="nreplenishednum != null"> and nreplenishednum = #{nreplenishednum} </if>
            <if test="nretastnum != null"> and nretastnum = #{nretastnum} </if>
            <if test="nretgrossnum != null"> and nretgrossnum = #{nretgrossnum} </if>
            <if test="nretnum != null"> and nretnum = #{nretnum} </if>
            <if test="nsalemny != null"> and nsalemny = #{nsalemny} </if>
            <if test="nsaleprice != null"> and nsaleprice = #{nsaleprice} </if>
            <if test="nshouldinnum != null"> and nshouldinnum = #{nshouldinnum} </if>
            <if test="nshouldoutassistnum != null"> and nshouldoutassistnum = #{nshouldoutassistnum} </if>
            <if test="nshouldoutnum != null"> and nshouldoutnum = #{nshouldoutnum} </if>
            <if test="ntarenum != null"> and ntarenum = #{ntarenum} </if>
            <if test="ntaxmny != null"> and ntaxmny = #{ntaxmny} </if>
            <if test="ntaxprice != null"> and ntaxprice = #{ntaxprice} </if>
            <if test="ntotalmatchnum != null"> and ntotalmatchnum = #{ntotalmatchnum} </if>
            <if test="ntotalreasonwastenum != null"> and ntotalreasonwastenum = #{ntotalreasonwastenum} </if>
            <if test="ntranoutastnum != null"> and ntranoutastnum = #{ntranoutastnum} </if>
            <if test="ntranoutnum != null"> and ntranoutnum = #{ntranoutnum} </if>
            <if test="pkBodycalbody != null and pkBodycalbody != ''"> and pk_bodycalbody = #{pkBodycalbody} </if>
            <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
            <if test="pkCreqwareid != null and pkCreqwareid != ''"> and pk_creqwareid = #{pkCreqwareid} </if>
            <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
            <if test="pkDefdoc1 != null and pkDefdoc1 != ''"> and pk_defdoc1 = #{pkDefdoc1} </if>
            <if test="pkDefdoc10 != null and pkDefdoc10 != ''"> and pk_defdoc10 = #{pkDefdoc10} </if>
            <if test="pkDefdoc11 != null and pkDefdoc11 != ''"> and pk_defdoc11 = #{pkDefdoc11} </if>
            <if test="pkDefdoc12 != null and pkDefdoc12 != ''"> and pk_defdoc12 = #{pkDefdoc12} </if>
            <if test="pkDefdoc13 != null and pkDefdoc13 != ''"> and pk_defdoc13 = #{pkDefdoc13} </if>
            <if test="pkDefdoc14 != null and pkDefdoc14 != ''"> and pk_defdoc14 = #{pkDefdoc14} </if>
            <if test="pkDefdoc15 != null and pkDefdoc15 != ''"> and pk_defdoc15 = #{pkDefdoc15} </if>
            <if test="pkDefdoc16 != null and pkDefdoc16 != ''"> and pk_defdoc16 = #{pkDefdoc16} </if>
            <if test="pkDefdoc17 != null and pkDefdoc17 != ''"> and pk_defdoc17 = #{pkDefdoc17} </if>
            <if test="pkDefdoc18 != null and pkDefdoc18 != ''"> and pk_defdoc18 = #{pkDefdoc18} </if>
            <if test="pkDefdoc19 != null and pkDefdoc19 != ''"> and pk_defdoc19 = #{pkDefdoc19} </if>
            <if test="pkDefdoc2 != null and pkDefdoc2 != ''"> and pk_defdoc2 = #{pkDefdoc2} </if>
            <if test="pkDefdoc20 != null and pkDefdoc20 != ''"> and pk_defdoc20 = #{pkDefdoc20} </if>
            <if test="pkDefdoc3 != null and pkDefdoc3 != ''"> and pk_defdoc3 = #{pkDefdoc3} </if>
            <if test="pkDefdoc4 != null and pkDefdoc4 != ''"> and pk_defdoc4 = #{pkDefdoc4} </if>
            <if test="pkDefdoc5 != null and pkDefdoc5 != ''"> and pk_defdoc5 = #{pkDefdoc5} </if>
            <if test="pkDefdoc6 != null and pkDefdoc6 != ''"> and pk_defdoc6 = #{pkDefdoc6} </if>
            <if test="pkDefdoc7 != null and pkDefdoc7 != ''"> and pk_defdoc7 = #{pkDefdoc7} </if>
            <if test="pkDefdoc8 != null and pkDefdoc8 != ''"> and pk_defdoc8 = #{pkDefdoc8} </if>
            <if test="pkDefdoc9 != null and pkDefdoc9 != ''"> and pk_defdoc9 = #{pkDefdoc9} </if>
            <if test="pkInvoicecorp != null and pkInvoicecorp != ''"> and pk_invoicecorp = #{pkInvoicecorp} </if>
            <if test="pkMeasware != null and pkMeasware != ''"> and pk_measware = #{pkMeasware} </if>
            <if test="pkPacksort != null and pkPacksort != ''"> and pk_packsort = #{pkPacksort} </if>
            <if test="pkReqcorp != null and pkReqcorp != ''"> and pk_reqcorp = #{pkReqcorp} </if>
            <if test="pkReqstoorg != null and pkReqstoorg != ''"> and pk_reqstoorg = #{pkReqstoorg} </if>
            <if test="pkReturnreason != null and pkReturnreason != ''"> and pk_returnreason = #{pkReturnreason} </if>
            <if test="process1 != null and process1 != ''"> and process1 = #{process1} </if>
            <if test="process2 != null and process2 != ''"> and process2 = #{process2} </if>
            <if test="process3 != null and process3 != ''"> and process3 = #{process3} </if>
            <if test="process4 != null and process4 != ''"> and process4 = #{process4} </if>
            <if test="process5 != null and process5 != ''"> and process5 = #{process5} </if>
            <if test="processcost != null"> and processcost = #{processcost} </if>
            <if test="processmanid != null and processmanid != ''"> and processmanid = #{processmanid} </if>
            <if test="serialnum != null"> and serialnum = #{serialnum} </if>
            <if test="ts != null and ts != ''"> and ts = #{ts} </if>
            <if test="vbatchcode != null and vbatchcode != ''"> and vbatchcode = #{vbatchcode} </if>
            <if test="vbilltypeu8rm != null and vbilltypeu8rm != ''"> and vbilltypeu8rm = #{vbilltypeu8rm} </if>
            <if test="vbodynote2 != null and vbodynote2 != ''"> and vbodynote2 = #{vbodynote2} </if>
            <if test="vcorrespondrowno != null and vcorrespondrowno != ''"> and vcorrespondrowno = #{vcorrespondrowno} </if>
            <if test="vfirstbillcode != null and vfirstbillcode != ''"> and vfirstbillcode = #{vfirstbillcode} </if>
            <if test="vfirstrowno != null and vfirstrowno != ''"> and vfirstrowno = #{vfirstrowno} </if>
            <if test="vfree1 != null and vfree1 != ''"> and vfree1 = #{vfree1} </if>
            <if test="vfree10 != null and vfree10 != ''"> and vfree10 = #{vfree10} </if>
            <if test="vfree2 != null and vfree2 != ''"> and vfree2 = #{vfree2} </if>
            <if test="vfree3 != null and vfree3 != ''"> and vfree3 = #{vfree3} </if>
            <if test="vfree4 != null and vfree4 != ''"> and vfree4 = #{vfree4} </if>
            <if test="vfree5 != null and vfree5 != ''"> and vfree5 = #{vfree5} </if>
            <if test="vfree6 != null and vfree6 != ''"> and vfree6 = #{vfree6} </if>
            <if test="vfree7 != null and vfree7 != ''"> and vfree7 = #{vfree7} </if>
            <if test="vfree8 != null and vfree8 != ''"> and vfree8 = #{vfree8} </if>
            <if test="vfree9 != null and vfree9 != ''"> and vfree9 = #{vfree9} </if>
            <if test="vnotebody != null and vnotebody != ''"> and vnotebody = #{vnotebody} </if>
            <if test="vproductbatch != null and vproductbatch != ''"> and vproductbatch = #{vproductbatch} </if>
            <if test="vreceiveaddress != null and vreceiveaddress != ''"> and vreceiveaddress = #{vreceiveaddress} </if>
            <if test="vsignwastcode != null and vsignwastcode != ''"> and vsignwastcode = #{vsignwastcode} </if>
            <if test="vsignwastrowno != null and vsignwastrowno != ''"> and vsignwastrowno = #{vsignwastrowno} </if>
            <if test="vsourcebillcode != null and vsourcebillcode != ''"> and vsourcebillcode = #{vsourcebillcode} </if>
            <if test="vsourcerowno != null and vsourcerowno != ''"> and vsourcerowno = #{vsourcerowno} </if>
            <if test="vsourcewastcode != null and vsourcewastcode != ''"> and vsourcewastcode = #{vsourcewastcode} </if>
            <if test="vsourcewastrowno != null and vsourcewastrowno != ''"> and vsourcewastrowno = #{vsourcewastrowno} </if>
            <if test="vsrc2billcode != null and vsrc2billcode != ''"> and vsrc2billcode = #{vsrc2billcode} </if>
            <if test="vsrc2billrowno != null and vsrc2billrowno != ''"> and vsrc2billrowno = #{vsrc2billrowno} </if>
            <if test="vtransfercode != null and vtransfercode != ''"> and vtransfercode = #{vtransfercode} </if>
            <if test="vuserdef1 != null and vuserdef1 != ''"> and vuserdef1 = #{vuserdef1} </if>
            <if test="vuserdef10 != null and vuserdef10 != ''"> and vuserdef10 = #{vuserdef10} </if>
            <if test="vuserdef11 != null and vuserdef11 != ''"> and vuserdef11 = #{vuserdef11} </if>
            <if test="vuserdef12 != null and vuserdef12 != ''"> and vuserdef12 = #{vuserdef12} </if>
            <if test="vuserdef13 != null and vuserdef13 != ''"> and vuserdef13 = #{vuserdef13} </if>
            <if test="vuserdef14 != null and vuserdef14 != ''"> and vuserdef14 = #{vuserdef14} </if>
            <if test="vuserdef15 != null and vuserdef15 != ''"> and vuserdef15 = #{vuserdef15} </if>
            <if test="vuserdef16 != null and vuserdef16 != ''"> and vuserdef16 = #{vuserdef16} </if>
            <if test="vuserdef17 != null and vuserdef17 != ''"> and vuserdef17 = #{vuserdef17} </if>
            <if test="vuserdef18 != null and vuserdef18 != ''"> and vuserdef18 = #{vuserdef18} </if>
            <if test="vuserdef19 != null and vuserdef19 != ''"> and vuserdef19 = #{vuserdef19} </if>
            <if test="vuserdef2 != null and vuserdef2 != ''"> and vuserdef2 = #{vuserdef2} </if>
            <if test="vuserdef20 != null and vuserdef20 != ''"> and vuserdef20 = #{vuserdef20} </if>
            <if test="vuserdef3 != null and vuserdef3 != ''"> and vuserdef3 = #{vuserdef3} </if>
            <if test="vuserdef4 != null and vuserdef4 != ''"> and vuserdef4 = #{vuserdef4} </if>
            <if test="vuserdef5 != null and vuserdef5 != ''"> and vuserdef5 = #{vuserdef5} </if>
            <if test="vuserdef6 != null and vuserdef6 != ''"> and vuserdef6 = #{vuserdef6} </if>
            <if test="vuserdef7 != null and vuserdef7 != ''"> and vuserdef7 = #{vuserdef7} </if>
            <if test="vuserdef8 != null and vuserdef8 != ''"> and vuserdef8 = #{vuserdef8} </if>
            <if test="vuserdef9 != null and vuserdef9 != ''"> and vuserdef9 = #{vuserdef9} </if>
            <if test="vvehiclecode != null and vvehiclecode != ''"> and vvehiclecode = #{vvehiclecode} </if>
            <if test="writeofftype != null and writeofftype != ''"> and writeofftype = #{writeofftype} </if>
            and sts='Y'
    </trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
    delete from ic_general_b where cgeneralbid = #{cgeneralbid}
</delete>

</mapper>

