<?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.grpU8.nxproof.glZtcs.dao.impl.SenderGlZtcsDaoImpl">

    <resultMap id="get-SenderGlZtcsEntity-result" type="com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity" >
       <result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
           <result property="ztbh" column="ztbh" jdbcType="VARCHAR"/>
           <result property="ztmc" column="ztmc" jdbcType="VARCHAR"/>
           <result property="ztmce" column="ztmce" jdbcType="VARCHAR"/>
           <result property="ztlb" column="ztlb" jdbcType="VARCHAR"/>
           <result property="hsdwdm" column="hsdwdm" jdbcType="VARCHAR"/>
           <result property="hsdwmc" column="hsdwmc" jdbcType="VARCHAR"/>
           <result property="bwbdm" column="bwbdm" jdbcType="VARCHAR"/>
           <result property="bwbmc" column="bwbmc" jdbcType="VARCHAR"/>
           <result property="yzkm" column="YZKM" jdbcType="VARCHAR"/>
           <result property="sjsj" column="SJSJ" jdbcType="INTEGER"/>
           <result property="bwbbf" column="bwbbf" jdbcType="VARCHAR"/>
           <result property="bwbdw" column="bwbdw" jdbcType="VARCHAR"/>
           <result property="bwbjd" column="bwbjd" jdbcType="INTEGER"/>
           <result property="cwzg" column="cwzg" jdbcType="VARCHAR"/>
           <result property="kjqjs" column="kjqjs" jdbcType="INTEGER"/>
           <result property="qykjqj" column="qykjqj" jdbcType="VARCHAR"/>
           <result property="wbhs" column="wbhs" jdbcType="VARCHAR"/>
           <result property="hllx" column="hllx" jdbcType="VARCHAR"/>
           <result property="sfyjz" column="sfyjz" jdbcType="VARCHAR"/>
           <result property="ztkz" column="ztkz" jdbcType="VARCHAR"/>
           <result property="yskz" column="yskz" jdbcType="VARCHAR"/>
           <result property="pzygkz" column="pzygkz" jdbcType="VARCHAR"/>
           <result property="yspzkz" column="yspzkz" jdbcType="VARCHAR"/>
           <result property="slxsws" column="slxsws" jdbcType="INTEGER"/>
           <result property="djxsws" column="djxsws" jdbcType="INTEGER"/>
           <result property="anyibz" column="anyibz" jdbcType="VARCHAR"/>
           <result property="kmbmfa" column="kmbmfa" jdbcType="VARCHAR"/>
           <result property="kmzbmfa" column="kmzbmfa" jdbcType="VARCHAR"/>
           <result property="bmbmfa" column="bmbmfa" jdbcType="VARCHAR"/>
           <result property="xmbmfa" column="xmbmfa" jdbcType="VARCHAR"/>
           <result property="dqbmfa" column="dqbmfa" jdbcType="VARCHAR"/>
           <result property="dwbmfa" column="dwbmfa" jdbcType="VARCHAR"/>
           <result property="xjbmfa" column="xjbmfa" jdbcType="VARCHAR"/>
           <result property="gsbmfa" column="gsbmfa" jdbcType="VARCHAR"/>
           <result property="bbpath" column="bbpath" jdbcType="VARCHAR"/>
           <result property="bkdtd" column="BKDTD" jdbcType="VARCHAR"/>
           <result property="bzdw" column="BZDW" jdbcType="VARCHAR"/>
           <result property="zbqyrq" column="ZBQYRQ" jdbcType="VARCHAR"/>
           <result property="gkjzzf" column="Gkjzzf" jdbcType="VARCHAR"/>
           <result property="zbkzmb" column="ZBKZMB" jdbcType="VARCHAR"/>
           <result property="kzfs" column="KZFS" jdbcType="VARCHAR"/>
           <result property="kzqj" column="KZQJ" jdbcType="VARCHAR"/>
           <result property="kzyj" column="KZYJ" jdbcType="VARCHAR"/>
           <result property="ybksy" column="YBKSY" jdbcType="VARCHAR"/>
           <result property="ybjsy" column="YBJSY" jdbcType="VARCHAR"/>
           <result property="zfpzbh" column="Zfpzbh" jdbcType="VARCHAR"/>
           <result property="bkdbh" column="Bkdbh" jdbcType="VARCHAR"/>
           <result property="bkpzlx" column="BKPZLX" jdbcType="VARCHAR"/>
           <result property="bkhskm" column="BKHSKM" jdbcType="VARCHAR"/>
           <result property="bkyhkmyz" column="BKYHKMYZ" jdbcType="VARCHAR"/>
           <result property="zfscbkd" column="ZFSCBKD" jdbcType="VARCHAR"/>
           <result property="bkdscpz" column="BKDSCPZ" jdbcType="VARCHAR"/>
           <result property="szqxkz" column="SZQXKZ" jdbcType="VARCHAR"/>
           <result property="djxg" column="DJXG" jdbcType="VARCHAR"/>
           <result property="djsh" column="DJSH" jdbcType="VARCHAR"/>
           <result property="dybz" column="DYBZ" jdbcType="VARCHAR"/>
           <result property="jhsh" column="JHSH" jdbcType="VARCHAR"/>
           <result property="zpscbk" column="Zpscbk" jdbcType="VARCHAR"/>
           <result property="zphs" column="ZPHS" jdbcType="VARCHAR"/>
           <result property="dzkdm" column="DZKDM" jdbcType="VARCHAR"/>
           <result property="headbkdh" column="HeadBKDH" jdbcType="VARCHAR"/>
           <result property="bkdfs" column="Bkdfs" jdbcType="VARCHAR"/>
           <result property="lrzy" column="Lrzy" jdbcType="VARCHAR"/>
           <result property="mjxsxsws" column="mjxsxsws" jdbcType="INTEGER"/>
           <result property="wjsjlj" column="wjsjlj" jdbcType="VARCHAR"/>
           <result property="sjkzbz" column="sjkzbz" jdbcType="VARCHAR"/>
           <result property="needjfzb" column="NeedJfzb" jdbcType="VARCHAR"/>
           <result property="zdyfzyslbdm" column="ZDYFZYSLBDM" jdbcType="VARCHAR"/>
           <result property="zdyfzyskzcs" column="ZDYFZYSKZCS" jdbcType="VARCHAR"/>
           <result property="needyskm" column="NeedYskm" jdbcType="VARCHAR"/>
           <result property="gkksbmfa" column="GKKSBMFA" jdbcType="VARCHAR"/>
           <result property="pzbtdf" column="pzbtdf" jdbcType="VARCHAR"/>
           <result property="ykjhyskm" column="ykjhyskm" jdbcType="VARCHAR"/>
           <result property="bkdxssjkm" column="BKDXSSJKM" jdbcType="VARCHAR"/>
           <result property="pzfjpath" column="PZFJPath" jdbcType="VARCHAR"/>
           <result property="bkdxyfscz" column="BKDXYFSCZ" jdbcType="VARCHAR"/>
           <result property="delmaxdh" column="DELMAXDH" jdbcType="VARCHAR"/>
           <result property="bkddataqxqy" column="BKDDataQXQY" jdbcType="VARCHAR"/>
           <result property="ykjhcs" column="YKJHCS" jdbcType="VARCHAR"/>
           <result property="ykjhfs" column="YKJHFS" jdbcType="VARCHAR"/>
           <result property="cnqzkm" column="CNQZKM" jdbcType="VARCHAR"/>
           <result property="ztsx" column="ZTSX" jdbcType="VARCHAR"/>
           <result property="tsxkz" column="TSXKZ" jdbcType="VARCHAR"/>
           <result property="zbkz" column="ZBKZ" jdbcType="VARCHAR"/>
           <result property="wjz" column="WJZ" jdbcType="VARCHAR"/>
           <result property="bkdxszhmc" column="BKDXSZHMC" jdbcType="VARCHAR"/>
           <result property="maxzdycount" column="Maxzdycount" jdbcType="INTEGER"/>
           <result property="sjly" column="SJLY" jdbcType="VARCHAR"/>
           <result property="flowcontrol" column="FlowControl" jdbcType="VARCHAR"/>
           <result property="cs1" column="CS1" jdbcType="VARCHAR"/>
           <result property="cs2" column="CS2" jdbcType="VARCHAR"/>
           <result property="cs3" column="CS3" jdbcType="VARCHAR"/>
           <result property="cs4" column="CS4" jdbcType="VARCHAR"/>
           <result property="cs5" column="CS5" jdbcType="VARCHAR"/>
           <result property="czyjkm" column="CZYJKM" jdbcType="VARCHAR"/>
           <result property="kjyslbdm" column="kjyslbdm" jdbcType="VARCHAR"/>
           <result property="wbxsws" column="wbxsws" jdbcType="VARCHAR"/>
           <result property="hlxsws" column="hlxsws" jdbcType="VARCHAR"/>
           <result property="sfpxjz" column="sfpxjz" jdbcType="VARCHAR"/>
           <result property="qyxbzw" column="qyxbzw" jdbcType="VARCHAR"/>
           <result property="pxjzfs" column="pxjzfs" jdbcType="VARCHAR"/>
           <result property="yzxjll" column="yzxjll" jdbcType="VARCHAR"/>
           <result property="nsrlx" column="nsrlx" jdbcType="VARCHAR"/>
           <result property="dzgd" column="dzgd" jdbcType="VARCHAR"/>
           <result property="dzgdzttb" column="dzgdzttb" jdbcType="VARCHAR"/>
        </resultMap>
    <!-- 查询的字段-->
    <sql id = "SenderGlZtcsEntity_Base_Column_List">
        kjnd
       ,ztbh 
        ,ztmc 
        ,ztmce 
        ,ztlb 
        ,hsdwdm 
        ,hsdwmc 
        ,bwbdm 
        ,bwbmc 
        ,YZKM 
        ,SJSJ 
        ,bwbbf 
        ,bwbdw 
        ,bwbjd 
        ,cwzg 
        ,kjqjs 
        ,qykjqj 
        ,wbhs 
        ,hllx 
        ,sfyjz 
        ,ztkz 
        ,yskz 
        ,pzygkz 
        ,yspzkz 
        ,slxsws 
        ,djxsws 
        ,anyibz 
        ,kmbmfa 
        ,kmzbmfa 
        ,bmbmfa 
        ,xmbmfa 
        ,dqbmfa 
        ,dwbmfa 
        ,xjbmfa 
        ,gsbmfa 
        ,bbpath 
        ,BKDTD 
        ,BZDW 
        ,ZBQYRQ 
        ,Gkjzzf 
        ,ZBKZMB 
        ,KZFS 
        ,KZQJ 
        ,KZYJ 
        ,YBKSY 
        ,YBJSY 
        ,Zfpzbh 
        ,Bkdbh 
        ,BKPZLX 
        ,BKHSKM 
        ,BKYHKMYZ 
        ,ZFSCBKD 
        ,BKDSCPZ 
        ,SZQXKZ 
        ,DJXG 
        ,DJSH 
        ,DYBZ 
        ,JHSH 
        ,Zpscbk 
        ,ZPHS 
        ,DZKDM 
        ,HeadBKDH 
        ,Bkdfs 
        ,Lrzy 
        ,mjxsxsws 
        ,wjsjlj 
        ,sjkzbz 
        ,NeedJfzb 
        ,ZDYFZYSLBDM 
        ,ZDYFZYSKZCS 
        ,NeedYskm 
        ,GKKSBMFA 
        ,pzbtdf 
        ,ykjhyskm 
        ,BKDXSSJKM 
        ,PZFJPath 
        ,BKDXYFSCZ 
        ,DELMAXDH 
        ,BKDDataQXQY 
        ,YKJHCS 
        ,YKJHFS 
        ,CNQZKM 
        ,ZTSX 
        ,TSXKZ 
        ,ZBKZ 
        ,WJZ 
        ,BKDXSZHMC 
        ,Maxzdycount 
        ,SJLY 
        ,FlowControl 
        ,CS1 
        ,CS2 
        ,CS3 
        ,CS4 
        ,CS5 
        ,CZYJKM
        ,kjyslbdm
        ,wbxsws
        ,hlxsws
        ,sfpxjz
        ,qyxbzw
        ,pxjzfs
        ,yzxjll
        ,nsrlx
        ,dzgd
        ,dzgdzttb
     </sql>
 <!-- 查询 采用==查询 -->
 <select id="entity_list_base" resultMap="get-SenderGlZtcsEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity">
    select
    <include refid="SenderGlZtcsEntity_Base_Column_List" />
    from gl_ztcs
    <trim prefix="where" prefixOverrides="and"> 
        <if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
            <if test="ztbh != null and ztbh != ''"> and ztbh = #{ztbh} </if>
            <if test="ztmc != null and ztmc != ''"> and ztmc = #{ztmc} </if>
            <if test="ztmce != null and ztmce != ''"> and ztmce = #{ztmce} </if>
            <if test="ztlb != null and ztlb != ''"> and ztlb = #{ztlb} </if>
            <if test="hsdwdm != null and hsdwdm != ''"> and hsdwdm = #{hsdwdm} </if>
            <if test="hsdwmc != null and hsdwmc != ''"> and hsdwmc = #{hsdwmc} </if>
            <if test="bwbdm != null and bwbdm != ''"> and bwbdm = #{bwbdm} </if>
            <if test="bwbmc != null and bwbmc != ''"> and bwbmc = #{bwbmc} </if>
            <if test="yzkm != null and yzkm != ''"> and YZKM = #{yzkm} </if>
            <if test="sjsj != null"> and SJSJ = #{sjsj} </if>
            <if test="bwbbf != null and bwbbf != ''"> and bwbbf = #{bwbbf} </if>
            <if test="bwbdw != null and bwbdw != ''"> and bwbdw = #{bwbdw} </if>
            <if test="bwbjd != null"> and bwbjd = #{bwbjd} </if>
            <if test="cwzg != null and cwzg != ''"> and cwzg = #{cwzg} </if>
            <if test="kjqjs != null"> and kjqjs = #{kjqjs} </if>
            <if test="qykjqj != null and qykjqj != ''"> and qykjqj = #{qykjqj} </if>
            <if test="wbhs != null and wbhs != ''"> and wbhs = #{wbhs} </if>
            <if test="hllx != null and hllx != ''"> and hllx = #{hllx} </if>
            <if test="sfyjz != null and sfyjz != ''"> and sfyjz = #{sfyjz} </if>
            <if test="ztkz != null and ztkz != ''"> and ztkz = #{ztkz} </if>
            <if test="yskz != null and yskz != ''"> and yskz = #{yskz} </if>
            <if test="pzygkz != null and pzygkz != ''"> and pzygkz = #{pzygkz} </if>
            <if test="yspzkz != null and yspzkz != ''"> and yspzkz = #{yspzkz} </if>
            <if test="slxsws != null"> and slxsws = #{slxsws} </if>
            <if test="djxsws != null"> and djxsws = #{djxsws} </if>
            <if test="anyibz != null and anyibz != ''"> and anyibz = #{anyibz} </if>
            <if test="kmbmfa != null and kmbmfa != ''"> and kmbmfa = #{kmbmfa} </if>
            <if test="kmzbmfa != null and kmzbmfa != ''"> and kmzbmfa = #{kmzbmfa} </if>
            <if test="bmbmfa != null and bmbmfa != ''"> and bmbmfa = #{bmbmfa} </if>
            <if test="xmbmfa != null and xmbmfa != ''"> and xmbmfa = #{xmbmfa} </if>
            <if test="dqbmfa != null and dqbmfa != ''"> and dqbmfa = #{dqbmfa} </if>
            <if test="dwbmfa != null and dwbmfa != ''"> and dwbmfa = #{dwbmfa} </if>
            <if test="xjbmfa != null and xjbmfa != ''"> and xjbmfa = #{xjbmfa} </if>
            <if test="gsbmfa != null and gsbmfa != ''"> and gsbmfa = #{gsbmfa} </if>
            <if test="bbpath != null and bbpath != ''"> and bbpath = #{bbpath} </if>
            <if test="bkdtd != null and bkdtd != ''"> and BKDTD = #{bkdtd} </if>
            <if test="bzdw != null and bzdw != ''"> and BZDW = #{bzdw} </if>
            <if test="zbqyrq != null and zbqyrq != ''"> and ZBQYRQ = #{zbqyrq} </if>
            <if test="gkjzzf != null and gkjzzf != ''"> and Gkjzzf = #{gkjzzf} </if>
            <if test="zbkzmb != null and zbkzmb != ''"> and ZBKZMB = #{zbkzmb} </if>
            <if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
            <if test="kzqj != null and kzqj != ''"> and KZQJ = #{kzqj} </if>
            <if test="kzyj != null and kzyj != ''"> and KZYJ = #{kzyj} </if>
            <if test="ybksy != null and ybksy != ''"> and YBKSY = #{ybksy} </if>
            <if test="ybjsy != null and ybjsy != ''"> and YBJSY = #{ybjsy} </if>
            <if test="zfpzbh != null and zfpzbh != ''"> and Zfpzbh = #{zfpzbh} </if>
            <if test="bkdbh != null and bkdbh != ''"> and Bkdbh = #{bkdbh} </if>
            <if test="bkpzlx != null and bkpzlx != ''"> and BKPZLX = #{bkpzlx} </if>
            <if test="bkhskm != null and bkhskm != ''"> and BKHSKM = #{bkhskm} </if>
            <if test="bkyhkmyz != null and bkyhkmyz != ''"> and BKYHKMYZ = #{bkyhkmyz} </if>
            <if test="zfscbkd != null and zfscbkd != ''"> and ZFSCBKD = #{zfscbkd} </if>
            <if test="bkdscpz != null and bkdscpz != ''"> and BKDSCPZ = #{bkdscpz} </if>
            <if test="szqxkz != null and szqxkz != ''"> and SZQXKZ = #{szqxkz} </if>
            <if test="djxg != null and djxg != ''"> and DJXG = #{djxg} </if>
            <if test="djsh != null and djsh != ''"> and DJSH = #{djsh} </if>
            <if test="dybz != null and dybz != ''"> and DYBZ = #{dybz} </if>
            <if test="jhsh != null and jhsh != ''"> and JHSH = #{jhsh} </if>
            <if test="zpscbk != null and zpscbk != ''"> and Zpscbk = #{zpscbk} </if>
            <if test="zphs != null and zphs != ''"> and ZPHS = #{zphs} </if>
            <if test="dzkdm != null and dzkdm != ''"> and DZKDM = #{dzkdm} </if>
            <if test="headbkdh != null and headbkdh != ''"> and HeadBKDH = #{headbkdh} </if>
            <if test="bkdfs != null and bkdfs != ''"> and Bkdfs = #{bkdfs} </if>
            <if test="lrzy != null and lrzy != ''"> and Lrzy = #{lrzy} </if>
            <if test="mjxsxsws != null"> and mjxsxsws = #{mjxsxsws} </if>
            <if test="wjsjlj != null and wjsjlj != ''"> and wjsjlj = #{wjsjlj} </if>
            <if test="sjkzbz != null and sjkzbz != ''"> and sjkzbz = #{sjkzbz} </if>
            <if test="needjfzb != null and needjfzb != ''"> and NeedJfzb = #{needjfzb} </if>
            <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> and ZDYFZYSLBDM = #{zdyfzyslbdm} </if>
            <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> and ZDYFZYSKZCS = #{zdyfzyskzcs} </if>
            <if test="needyskm != null and needyskm != ''"> and NeedYskm = #{needyskm} </if>
            <if test="gkksbmfa != null and gkksbmfa != ''"> and GKKSBMFA = #{gkksbmfa} </if>
            <if test="pzbtdf != null and pzbtdf != ''"> and pzbtdf = #{pzbtdf} </if>
            <if test="ykjhyskm != null and ykjhyskm != ''"> and ykjhyskm = #{ykjhyskm} </if>
            <if test="bkdxssjkm != null and bkdxssjkm != ''"> and BKDXSSJKM = #{bkdxssjkm} </if>
            <if test="pzfjpath != null and pzfjpath != ''"> and PZFJPath = #{pzfjpath} </if>
            <if test="bkdxyfscz != null and bkdxyfscz != ''"> and BKDXYFSCZ = #{bkdxyfscz} </if>
            <if test="delmaxdh != null and delmaxdh != ''"> and DELMAXDH = #{delmaxdh} </if>
            <if test="bkddataqxqy != null and bkddataqxqy != ''"> and BKDDataQXQY = #{bkddataqxqy} </if>
            <if test="ykjhcs != null and ykjhcs != ''"> and YKJHCS = #{ykjhcs} </if>
            <if test="ykjhfs != null and ykjhfs != ''"> and YKJHFS = #{ykjhfs} </if>
            <if test="cnqzkm != null and cnqzkm != ''"> and CNQZKM = #{cnqzkm} </if>
            <if test="ztsx != null and ztsx != ''"> and ZTSX = #{ztsx} </if>
            <if test="tsxkz != null and tsxkz != ''"> and TSXKZ = #{tsxkz} </if>
            <if test="zbkz != null and zbkz != ''"> and ZBKZ = #{zbkz} </if>
            <if test="wjz != null and wjz != ''"> and WJZ = #{wjz} </if>
            <if test="bkdxszhmc != null and bkdxszhmc != ''"> and BKDXSZHMC = #{bkdxszhmc} </if>
            <if test="maxzdycount != null"> and Maxzdycount = #{maxzdycount} </if>
            <if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
            <if test="flowcontrol != null and flowcontrol != ''"> and FlowControl = #{flowcontrol} </if>
            <if test="cs1 != null and cs1 != ''"> and CS1 = #{cs1} </if>
            <if test="cs2 != null and cs2 != ''"> and CS2 = #{cs2} </if>
            <if test="cs3 != null and cs3 != ''"> and CS3 = #{cs3} </if>
            <if test="cs4 != null and cs4 != ''"> and CS4 = #{cs4} </if>
            <if test="cs5 != null and cs5 != ''"> and CS5 = #{cs5} </if>
            <if test="czyjkm != null and czyjkm != ''"> and CZYJKM = #{czyjkm} </if>
            <if test="kjyslbdm != null and kjyslbdm != ''"> and kjyslbdm = #{kjyslbdm} </if>
            <if test="wbxsws != null and wbxsws != ''"> and wbxsws = #{wbxsws} </if>
            <if test="czyjkm != null and hlxsws != ''"> and hlxsws = #{hlxsws} </if>
            <if test="sfpxjz != null and sfpxjz != ''"> and sfpxjz = #{sfpxjz} </if>
            <if test="qyxbzw != null and qyxbzw != ''"> and qyxbzw = #{qyxbzw </if>
            <if test="pxjzfs != null and pxjzfs != ''"> and pxjzfs = #{pxjzfs} </if>
            <if test="yzxjll != null and yzxjll != ''"> and yzxjll = #{yzxjll} </if>
            <if test="nsrlx != null and nsrlx != ''"> and nsrlx = #{nsrlx} </if>
            <if test="dzgd != null and dzgd != ''"> and dzgd = #{dzgd} </if>
            <if test="dzgdzttb != null and dzgdzttb != ''"> and dzgdzttb = #{dzgdzttb} </if>
      --  and ztbh in('004','005','009','010','011','012','014')
    </trim>
</select>
    
<!-- 查询符合条件的数量 -->
<select id="SenderGlZtcsEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity">
        select  count(1)   from gl_ztcs
    <trim prefix="where" prefixOverrides="and"> 
        <if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
            <if test="ztbh != null and ztbh != ''"> and ztbh = #{ztbh} </if>
            <if test="ztmc != null and ztmc != ''"> and ztmc = #{ztmc} </if>
            <if test="ztmce != null and ztmce != ''"> and ztmce = #{ztmce} </if>
            <if test="ztlb != null and ztlb != ''"> and ztlb = #{ztlb} </if>
            <if test="hsdwdm != null and hsdwdm != ''"> and hsdwdm = #{hsdwdm} </if>
            <if test="hsdwmc != null and hsdwmc != ''"> and hsdwmc = #{hsdwmc} </if>
            <if test="bwbdm != null and bwbdm != ''"> and bwbdm = #{bwbdm} </if>
            <if test="bwbmc != null and bwbmc != ''"> and bwbmc = #{bwbmc} </if>
            <if test="yzkm != null and yzkm != ''"> and YZKM = #{yzkm} </if>
            <if test="sjsj != null"> and SJSJ = #{sjsj} </if>
            <if test="bwbbf != null and bwbbf != ''"> and bwbbf = #{bwbbf} </if>
            <if test="bwbdw != null and bwbdw != ''"> and bwbdw = #{bwbdw} </if>
            <if test="bwbjd != null"> and bwbjd = #{bwbjd} </if>
            <if test="cwzg != null and cwzg != ''"> and cwzg = #{cwzg} </if>
            <if test="kjqjs != null"> and kjqjs = #{kjqjs} </if>
            <if test="qykjqj != null and qykjqj != ''"> and qykjqj = #{qykjqj} </if>
            <if test="wbhs != null and wbhs != ''"> and wbhs = #{wbhs} </if>
            <if test="hllx != null and hllx != ''"> and hllx = #{hllx} </if>
            <if test="sfyjz != null and sfyjz != ''"> and sfyjz = #{sfyjz} </if>
            <if test="ztkz != null and ztkz != ''"> and ztkz = #{ztkz} </if>
            <if test="yskz != null and yskz != ''"> and yskz = #{yskz} </if>
            <if test="pzygkz != null and pzygkz != ''"> and pzygkz = #{pzygkz} </if>
            <if test="yspzkz != null and yspzkz != ''"> and yspzkz = #{yspzkz} </if>
            <if test="slxsws != null"> and slxsws = #{slxsws} </if>
            <if test="djxsws != null"> and djxsws = #{djxsws} </if>
            <if test="anyibz != null and anyibz != ''"> and anyibz = #{anyibz} </if>
            <if test="kmbmfa != null and kmbmfa != ''"> and kmbmfa = #{kmbmfa} </if>
            <if test="kmzbmfa != null and kmzbmfa != ''"> and kmzbmfa = #{kmzbmfa} </if>
            <if test="bmbmfa != null and bmbmfa != ''"> and bmbmfa = #{bmbmfa} </if>
            <if test="xmbmfa != null and xmbmfa != ''"> and xmbmfa = #{xmbmfa} </if>
            <if test="dqbmfa != null and dqbmfa != ''"> and dqbmfa = #{dqbmfa} </if>
            <if test="dwbmfa != null and dwbmfa != ''"> and dwbmfa = #{dwbmfa} </if>
            <if test="xjbmfa != null and xjbmfa != ''"> and xjbmfa = #{xjbmfa} </if>
            <if test="gsbmfa != null and gsbmfa != ''"> and gsbmfa = #{gsbmfa} </if>
            <if test="bbpath != null and bbpath != ''"> and bbpath = #{bbpath} </if>
            <if test="bkdtd != null and bkdtd != ''"> and BKDTD = #{bkdtd} </if>
            <if test="bzdw != null and bzdw != ''"> and BZDW = #{bzdw} </if>
            <if test="zbqyrq != null and zbqyrq != ''"> and ZBQYRQ = #{zbqyrq} </if>
            <if test="gkjzzf != null and gkjzzf != ''"> and Gkjzzf = #{gkjzzf} </if>
            <if test="zbkzmb != null and zbkzmb != ''"> and ZBKZMB = #{zbkzmb} </if>
            <if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
            <if test="kzqj != null and kzqj != ''"> and KZQJ = #{kzqj} </if>
            <if test="kzyj != null and kzyj != ''"> and KZYJ = #{kzyj} </if>
            <if test="ybksy != null and ybksy != ''"> and YBKSY = #{ybksy} </if>
            <if test="ybjsy != null and ybjsy != ''"> and YBJSY = #{ybjsy} </if>
            <if test="zfpzbh != null and zfpzbh != ''"> and Zfpzbh = #{zfpzbh} </if>
            <if test="bkdbh != null and bkdbh != ''"> and Bkdbh = #{bkdbh} </if>
            <if test="bkpzlx != null and bkpzlx != ''"> and BKPZLX = #{bkpzlx} </if>
            <if test="bkhskm != null and bkhskm != ''"> and BKHSKM = #{bkhskm} </if>
            <if test="bkyhkmyz != null and bkyhkmyz != ''"> and BKYHKMYZ = #{bkyhkmyz} </if>
            <if test="zfscbkd != null and zfscbkd != ''"> and ZFSCBKD = #{zfscbkd} </if>
            <if test="bkdscpz != null and bkdscpz != ''"> and BKDSCPZ = #{bkdscpz} </if>
            <if test="szqxkz != null and szqxkz != ''"> and SZQXKZ = #{szqxkz} </if>
            <if test="djxg != null and djxg != ''"> and DJXG = #{djxg} </if>
            <if test="djsh != null and djsh != ''"> and DJSH = #{djsh} </if>
            <if test="dybz != null and dybz != ''"> and DYBZ = #{dybz} </if>
            <if test="jhsh != null and jhsh != ''"> and JHSH = #{jhsh} </if>
            <if test="zpscbk != null and zpscbk != ''"> and Zpscbk = #{zpscbk} </if>
            <if test="zphs != null and zphs != ''"> and ZPHS = #{zphs} </if>
            <if test="dzkdm != null and dzkdm != ''"> and DZKDM = #{dzkdm} </if>
            <if test="headbkdh != null and headbkdh != ''"> and HeadBKDH = #{headbkdh} </if>
            <if test="bkdfs != null and bkdfs != ''"> and Bkdfs = #{bkdfs} </if>
            <if test="lrzy != null and lrzy != ''"> and Lrzy = #{lrzy} </if>
            <if test="mjxsxsws != null"> and mjxsxsws = #{mjxsxsws} </if>
            <if test="wjsjlj != null and wjsjlj != ''"> and wjsjlj = #{wjsjlj} </if>
            <if test="sjkzbz != null and sjkzbz != ''"> and sjkzbz = #{sjkzbz} </if>
            <if test="needjfzb != null and needjfzb != ''"> and NeedJfzb = #{needjfzb} </if>
            <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> and ZDYFZYSLBDM = #{zdyfzyslbdm} </if>
            <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> and ZDYFZYSKZCS = #{zdyfzyskzcs} </if>
            <if test="needyskm != null and needyskm != ''"> and NeedYskm = #{needyskm} </if>
            <if test="gkksbmfa != null and gkksbmfa != ''"> and GKKSBMFA = #{gkksbmfa} </if>
            <if test="pzbtdf != null and pzbtdf != ''"> and pzbtdf = #{pzbtdf} </if>
            <if test="ykjhyskm != null and ykjhyskm != ''"> and ykjhyskm = #{ykjhyskm} </if>
            <if test="bkdxssjkm != null and bkdxssjkm != ''"> and BKDXSSJKM = #{bkdxssjkm} </if>
            <if test="pzfjpath != null and pzfjpath != ''"> and PZFJPath = #{pzfjpath} </if>
            <if test="bkdxyfscz != null and bkdxyfscz != ''"> and BKDXYFSCZ = #{bkdxyfscz} </if>
            <if test="delmaxdh != null and delmaxdh != ''"> and DELMAXDH = #{delmaxdh} </if>
            <if test="bkddataqxqy != null and bkddataqxqy != ''"> and BKDDataQXQY = #{bkddataqxqy} </if>
            <if test="ykjhcs != null and ykjhcs != ''"> and YKJHCS = #{ykjhcs} </if>
            <if test="ykjhfs != null and ykjhfs != ''"> and YKJHFS = #{ykjhfs} </if>
            <if test="cnqzkm != null and cnqzkm != ''"> and CNQZKM = #{cnqzkm} </if>
            <if test="ztsx != null and ztsx != ''"> and ZTSX = #{ztsx} </if>
            <if test="tsxkz != null and tsxkz != ''"> and TSXKZ = #{tsxkz} </if>
            <if test="zbkz != null and zbkz != ''"> and ZBKZ = #{zbkz} </if>
            <if test="wjz != null and wjz != ''"> and WJZ = #{wjz} </if>
            <if test="bkdxszhmc != null and bkdxszhmc != ''"> and BKDXSZHMC = #{bkdxszhmc} </if>
            <if test="maxzdycount != null"> and Maxzdycount = #{maxzdycount} </if>
            <if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
            <if test="flowcontrol != null and flowcontrol != ''"> and FlowControl = #{flowcontrol} </if>
            <if test="cs1 != null and cs1 != ''"> and CS1 = #{cs1} </if>
            <if test="cs2 != null and cs2 != ''"> and CS2 = #{cs2} </if>
            <if test="cs3 != null and cs3 != ''"> and CS3 = #{cs3} </if>
            <if test="cs4 != null and cs4 != ''"> and CS4 = #{cs4} </if>
            <if test="cs5 != null and cs5 != ''"> and CS5 = #{cs5} </if>
            <if test="czyjkm != null and czyjkm != ''"> and CZYJKM = #{czyjkm} </if>
    </trim>
    </select>

    <!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-SenderGlZtcsEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity">
    select
    <include refid="SenderGlZtcsEntity_Base_Column_List" />
    from gl_ztcs
    <trim prefix="where" prefixOverrides="and"> 
        <if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
            <if test="ztbh != null and ztbh != ''"> and ztbh like concat('%',#{ztbh},'%') </if>
            <if test="ztmc != null and ztmc != ''"> and ztmc like concat('%',#{ztmc},'%') </if>
            <if test="ztmce != null and ztmce != ''"> and ztmce like concat('%',#{ztmce},'%') </if>
            <if test="ztlb != null and ztlb != ''"> and ztlb like concat('%',#{ztlb},'%') </if>
            <if test="hsdwdm != null and hsdwdm != ''"> and hsdwdm like concat('%',#{hsdwdm},'%') </if>
            <if test="hsdwmc != null and hsdwmc != ''"> and hsdwmc like concat('%',#{hsdwmc},'%') </if>
            <if test="bwbdm != null and bwbdm != ''"> and bwbdm like concat('%',#{bwbdm},'%') </if>
            <if test="bwbmc != null and bwbmc != ''"> and bwbmc like concat('%',#{bwbmc},'%') </if>
            <if test="yzkm != null and yzkm != ''"> and YZKM like concat('%',#{yzkm},'%') </if>
            <if test="sjsj != null"> and SJSJ like concat('%',#{sjsj},'%') </if>
            <if test="bwbbf != null and bwbbf != ''"> and bwbbf like concat('%',#{bwbbf},'%') </if>
            <if test="bwbdw != null and bwbdw != ''"> and bwbdw like concat('%',#{bwbdw},'%') </if>
            <if test="bwbjd != null"> and bwbjd like concat('%',#{bwbjd},'%') </if>
            <if test="cwzg != null and cwzg != ''"> and cwzg like concat('%',#{cwzg},'%') </if>
            <if test="kjqjs != null"> and kjqjs like concat('%',#{kjqjs},'%') </if>
            <if test="qykjqj != null and qykjqj != ''"> and qykjqj like concat('%',#{qykjqj},'%') </if>
            <if test="wbhs != null and wbhs != ''"> and wbhs like concat('%',#{wbhs},'%') </if>
            <if test="hllx != null and hllx != ''"> and hllx like concat('%',#{hllx},'%') </if>
            <if test="sfyjz != null and sfyjz != ''"> and sfyjz like concat('%',#{sfyjz},'%') </if>
            <if test="ztkz != null and ztkz != ''"> and ztkz like concat('%',#{ztkz},'%') </if>
            <if test="yskz != null and yskz != ''"> and yskz like concat('%',#{yskz},'%') </if>
            <if test="pzygkz != null and pzygkz != ''"> and pzygkz like concat('%',#{pzygkz},'%') </if>
            <if test="yspzkz != null and yspzkz != ''"> and yspzkz like concat('%',#{yspzkz},'%') </if>
            <if test="slxsws != null"> and slxsws like concat('%',#{slxsws},'%') </if>
            <if test="djxsws != null"> and djxsws like concat('%',#{djxsws},'%') </if>
            <if test="anyibz != null and anyibz != ''"> and anyibz like concat('%',#{anyibz},'%') </if>
            <if test="kmbmfa != null and kmbmfa != ''"> and kmbmfa like concat('%',#{kmbmfa},'%') </if>
            <if test="kmzbmfa != null and kmzbmfa != ''"> and kmzbmfa like concat('%',#{kmzbmfa},'%') </if>
            <if test="bmbmfa != null and bmbmfa != ''"> and bmbmfa like concat('%',#{bmbmfa},'%') </if>
            <if test="xmbmfa != null and xmbmfa != ''"> and xmbmfa like concat('%',#{xmbmfa},'%') </if>
            <if test="dqbmfa != null and dqbmfa != ''"> and dqbmfa like concat('%',#{dqbmfa},'%') </if>
            <if test="dwbmfa != null and dwbmfa != ''"> and dwbmfa like concat('%',#{dwbmfa},'%') </if>
            <if test="xjbmfa != null and xjbmfa != ''"> and xjbmfa like concat('%',#{xjbmfa},'%') </if>
            <if test="gsbmfa != null and gsbmfa != ''"> and gsbmfa like concat('%',#{gsbmfa},'%') </if>
            <if test="bbpath != null and bbpath != ''"> and bbpath like concat('%',#{bbpath},'%') </if>
            <if test="bkdtd != null and bkdtd != ''"> and BKDTD like concat('%',#{bkdtd},'%') </if>
            <if test="bzdw != null and bzdw != ''"> and BZDW like concat('%',#{bzdw},'%') </if>
            <if test="zbqyrq != null and zbqyrq != ''"> and ZBQYRQ like concat('%',#{zbqyrq},'%') </if>
            <if test="gkjzzf != null and gkjzzf != ''"> and Gkjzzf like concat('%',#{gkjzzf},'%') </if>
            <if test="zbkzmb != null and zbkzmb != ''"> and ZBKZMB like concat('%',#{zbkzmb},'%') </if>
            <if test="kzfs != null and kzfs != ''"> and KZFS like concat('%',#{kzfs},'%') </if>
            <if test="kzqj != null and kzqj != ''"> and KZQJ like concat('%',#{kzqj},'%') </if>
            <if test="kzyj != null and kzyj != ''"> and KZYJ like concat('%',#{kzyj},'%') </if>
            <if test="ybksy != null and ybksy != ''"> and YBKSY like concat('%',#{ybksy},'%') </if>
            <if test="ybjsy != null and ybjsy != ''"> and YBJSY like concat('%',#{ybjsy},'%') </if>
            <if test="zfpzbh != null and zfpzbh != ''"> and Zfpzbh like concat('%',#{zfpzbh},'%') </if>
            <if test="bkdbh != null and bkdbh != ''"> and Bkdbh like concat('%',#{bkdbh},'%') </if>
            <if test="bkpzlx != null and bkpzlx != ''"> and BKPZLX like concat('%',#{bkpzlx},'%') </if>
            <if test="bkhskm != null and bkhskm != ''"> and BKHSKM like concat('%',#{bkhskm},'%') </if>
            <if test="bkyhkmyz != null and bkyhkmyz != ''"> and BKYHKMYZ like concat('%',#{bkyhkmyz},'%') </if>
            <if test="zfscbkd != null and zfscbkd != ''"> and ZFSCBKD like concat('%',#{zfscbkd},'%') </if>
            <if test="bkdscpz != null and bkdscpz != ''"> and BKDSCPZ like concat('%',#{bkdscpz},'%') </if>
            <if test="szqxkz != null and szqxkz != ''"> and SZQXKZ like concat('%',#{szqxkz},'%') </if>
            <if test="djxg != null and djxg != ''"> and DJXG like concat('%',#{djxg},'%') </if>
            <if test="djsh != null and djsh != ''"> and DJSH like concat('%',#{djsh},'%') </if>
            <if test="dybz != null and dybz != ''"> and DYBZ like concat('%',#{dybz},'%') </if>
            <if test="jhsh != null and jhsh != ''"> and JHSH like concat('%',#{jhsh},'%') </if>
            <if test="zpscbk != null and zpscbk != ''"> and Zpscbk like concat('%',#{zpscbk},'%') </if>
            <if test="zphs != null and zphs != ''"> and ZPHS like concat('%',#{zphs},'%') </if>
            <if test="dzkdm != null and dzkdm != ''"> and DZKDM like concat('%',#{dzkdm},'%') </if>
            <if test="headbkdh != null and headbkdh != ''"> and HeadBKDH like concat('%',#{headbkdh},'%') </if>
            <if test="bkdfs != null and bkdfs != ''"> and Bkdfs like concat('%',#{bkdfs},'%') </if>
            <if test="lrzy != null and lrzy != ''"> and Lrzy like concat('%',#{lrzy},'%') </if>
            <if test="mjxsxsws != null"> and mjxsxsws like concat('%',#{mjxsxsws},'%') </if>
            <if test="wjsjlj != null and wjsjlj != ''"> and wjsjlj like concat('%',#{wjsjlj},'%') </if>
            <if test="sjkzbz != null and sjkzbz != ''"> and sjkzbz like concat('%',#{sjkzbz},'%') </if>
            <if test="needjfzb != null and needjfzb != ''"> and NeedJfzb like concat('%',#{needjfzb},'%') </if>
            <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> and ZDYFZYSLBDM like concat('%',#{zdyfzyslbdm},'%') </if>
            <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> and ZDYFZYSKZCS like concat('%',#{zdyfzyskzcs},'%') </if>
            <if test="needyskm != null and needyskm != ''"> and NeedYskm like concat('%',#{needyskm},'%') </if>
            <if test="gkksbmfa != null and gkksbmfa != ''"> and GKKSBMFA like concat('%',#{gkksbmfa},'%') </if>
            <if test="pzbtdf != null and pzbtdf != ''"> and pzbtdf like concat('%',#{pzbtdf},'%') </if>
            <if test="ykjhyskm != null and ykjhyskm != ''"> and ykjhyskm like concat('%',#{ykjhyskm},'%') </if>
            <if test="bkdxssjkm != null and bkdxssjkm != ''"> and BKDXSSJKM like concat('%',#{bkdxssjkm},'%') </if>
            <if test="pzfjpath != null and pzfjpath != ''"> and PZFJPath like concat('%',#{pzfjpath},'%') </if>
            <if test="bkdxyfscz != null and bkdxyfscz != ''"> and BKDXYFSCZ like concat('%',#{bkdxyfscz},'%') </if>
            <if test="delmaxdh != null and delmaxdh != ''"> and DELMAXDH like concat('%',#{delmaxdh},'%') </if>
            <if test="bkddataqxqy != null and bkddataqxqy != ''"> and BKDDataQXQY like concat('%',#{bkddataqxqy},'%') </if>
            <if test="ykjhcs != null and ykjhcs != ''"> and YKJHCS like concat('%',#{ykjhcs},'%') </if>
            <if test="ykjhfs != null and ykjhfs != ''"> and YKJHFS like concat('%',#{ykjhfs},'%') </if>
            <if test="cnqzkm != null and cnqzkm != ''"> and CNQZKM like concat('%',#{cnqzkm},'%') </if>
            <if test="ztsx != null and ztsx != ''"> and ZTSX like concat('%',#{ztsx},'%') </if>
            <if test="tsxkz != null and tsxkz != ''"> and TSXKZ like concat('%',#{tsxkz},'%') </if>
            <if test="zbkz != null and zbkz != ''"> and ZBKZ like concat('%',#{zbkz},'%') </if>
            <if test="wjz != null and wjz != ''"> and WJZ like concat('%',#{wjz},'%') </if>
            <if test="bkdxszhmc != null and bkdxszhmc != ''"> and BKDXSZHMC like concat('%',#{bkdxszhmc},'%') </if>
            <if test="maxzdycount != null"> and Maxzdycount like concat('%',#{maxzdycount},'%') </if>
            <if test="sjly != null and sjly != ''"> and SJLY like concat('%',#{sjly},'%') </if>
            <if test="flowcontrol != null and flowcontrol != ''"> and FlowControl like concat('%',#{flowcontrol},'%') </if>
            <if test="cs1 != null and cs1 != ''"> and CS1 like concat('%',#{cs1},'%') </if>
            <if test="cs2 != null and cs2 != ''"> and CS2 like concat('%',#{cs2},'%') </if>
            <if test="cs3 != null and cs3 != ''"> and CS3 like concat('%',#{cs3},'%') </if>
            <if test="cs4 != null and cs4 != ''"> and CS4 like concat('%',#{cs4},'%') </if>
            <if test="cs5 != null and cs5 != ''"> and CS5 like concat('%',#{cs5},'%') </if>
            <if test="czyjkm != null and czyjkm != ''"> and CZYJKM like concat('%',#{czyjkm},'%') </if>
    </trim>
</select>

<!-- 查询列表 字段采用or格式 -->
<select id="SenderGlZtcsEntity_list_or" resultMap="get-SenderGlZtcsEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity">
    select
    <include refid="SenderGlZtcsEntity_Base_Column_List" />
    from gl_ztcs
    <trim prefix="where" prefixOverrides="and"> 
         <if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
             <if test="ztbh != null and ztbh != ''"> or ztbh = #{ztbh} </if>
             <if test="ztmc != null and ztmc != ''"> or ztmc = #{ztmc} </if>
             <if test="ztmce != null and ztmce != ''"> or ztmce = #{ztmce} </if>
             <if test="ztlb != null and ztlb != ''"> or ztlb = #{ztlb} </if>
             <if test="hsdwdm != null and hsdwdm != ''"> or hsdwdm = #{hsdwdm} </if>
             <if test="hsdwmc != null and hsdwmc != ''"> or hsdwmc = #{hsdwmc} </if>
             <if test="bwbdm != null and bwbdm != ''"> or bwbdm = #{bwbdm} </if>
             <if test="bwbmc != null and bwbmc != ''"> or bwbmc = #{bwbmc} </if>
             <if test="yzkm != null and yzkm != ''"> or YZKM = #{yzkm} </if>
             <if test="sjsj != null"> or SJSJ = #{sjsj} </if>
             <if test="bwbbf != null and bwbbf != ''"> or bwbbf = #{bwbbf} </if>
             <if test="bwbdw != null and bwbdw != ''"> or bwbdw = #{bwbdw} </if>
             <if test="bwbjd != null"> or bwbjd = #{bwbjd} </if>
             <if test="cwzg != null and cwzg != ''"> or cwzg = #{cwzg} </if>
             <if test="kjqjs != null"> or kjqjs = #{kjqjs} </if>
             <if test="qykjqj != null and qykjqj != ''"> or qykjqj = #{qykjqj} </if>
             <if test="wbhs != null and wbhs != ''"> or wbhs = #{wbhs} </if>
             <if test="hllx != null and hllx != ''"> or hllx = #{hllx} </if>
             <if test="sfyjz != null and sfyjz != ''"> or sfyjz = #{sfyjz} </if>
             <if test="ztkz != null and ztkz != ''"> or ztkz = #{ztkz} </if>
             <if test="yskz != null and yskz != ''"> or yskz = #{yskz} </if>
             <if test="pzygkz != null and pzygkz != ''"> or pzygkz = #{pzygkz} </if>
             <if test="yspzkz != null and yspzkz != ''"> or yspzkz = #{yspzkz} </if>
             <if test="slxsws != null"> or slxsws = #{slxsws} </if>
             <if test="djxsws != null"> or djxsws = #{djxsws} </if>
             <if test="anyibz != null and anyibz != ''"> or anyibz = #{anyibz} </if>
             <if test="kmbmfa != null and kmbmfa != ''"> or kmbmfa = #{kmbmfa} </if>
             <if test="kmzbmfa != null and kmzbmfa != ''"> or kmzbmfa = #{kmzbmfa} </if>
             <if test="bmbmfa != null and bmbmfa != ''"> or bmbmfa = #{bmbmfa} </if>
             <if test="xmbmfa != null and xmbmfa != ''"> or xmbmfa = #{xmbmfa} </if>
             <if test="dqbmfa != null and dqbmfa != ''"> or dqbmfa = #{dqbmfa} </if>
             <if test="dwbmfa != null and dwbmfa != ''"> or dwbmfa = #{dwbmfa} </if>
             <if test="xjbmfa != null and xjbmfa != ''"> or xjbmfa = #{xjbmfa} </if>
             <if test="gsbmfa != null and gsbmfa != ''"> or gsbmfa = #{gsbmfa} </if>
             <if test="bbpath != null and bbpath != ''"> or bbpath = #{bbpath} </if>
             <if test="bkdtd != null and bkdtd != ''"> or BKDTD = #{bkdtd} </if>
             <if test="bzdw != null and bzdw != ''"> or BZDW = #{bzdw} </if>
             <if test="zbqyrq != null and zbqyrq != ''"> or ZBQYRQ = #{zbqyrq} </if>
             <if test="gkjzzf != null and gkjzzf != ''"> or Gkjzzf = #{gkjzzf} </if>
             <if test="zbkzmb != null and zbkzmb != ''"> or ZBKZMB = #{zbkzmb} </if>
             <if test="kzfs != null and kzfs != ''"> or KZFS = #{kzfs} </if>
             <if test="kzqj != null and kzqj != ''"> or KZQJ = #{kzqj} </if>
             <if test="kzyj != null and kzyj != ''"> or KZYJ = #{kzyj} </if>
             <if test="ybksy != null and ybksy != ''"> or YBKSY = #{ybksy} </if>
             <if test="ybjsy != null and ybjsy != ''"> or YBJSY = #{ybjsy} </if>
             <if test="zfpzbh != null and zfpzbh != ''"> or Zfpzbh = #{zfpzbh} </if>
             <if test="bkdbh != null and bkdbh != ''"> or Bkdbh = #{bkdbh} </if>
             <if test="bkpzlx != null and bkpzlx != ''"> or BKPZLX = #{bkpzlx} </if>
             <if test="bkhskm != null and bkhskm != ''"> or BKHSKM = #{bkhskm} </if>
             <if test="bkyhkmyz != null and bkyhkmyz != ''"> or BKYHKMYZ = #{bkyhkmyz} </if>
             <if test="zfscbkd != null and zfscbkd != ''"> or ZFSCBKD = #{zfscbkd} </if>
             <if test="bkdscpz != null and bkdscpz != ''"> or BKDSCPZ = #{bkdscpz} </if>
             <if test="szqxkz != null and szqxkz != ''"> or SZQXKZ = #{szqxkz} </if>
             <if test="djxg != null and djxg != ''"> or DJXG = #{djxg} </if>
             <if test="djsh != null and djsh != ''"> or DJSH = #{djsh} </if>
             <if test="dybz != null and dybz != ''"> or DYBZ = #{dybz} </if>
             <if test="jhsh != null and jhsh != ''"> or JHSH = #{jhsh} </if>
             <if test="zpscbk != null and zpscbk != ''"> or Zpscbk = #{zpscbk} </if>
             <if test="zphs != null and zphs != ''"> or ZPHS = #{zphs} </if>
             <if test="dzkdm != null and dzkdm != ''"> or DZKDM = #{dzkdm} </if>
             <if test="headbkdh != null and headbkdh != ''"> or HeadBKDH = #{headbkdh} </if>
             <if test="bkdfs != null and bkdfs != ''"> or Bkdfs = #{bkdfs} </if>
             <if test="lrzy != null and lrzy != ''"> or Lrzy = #{lrzy} </if>
             <if test="mjxsxsws != null"> or mjxsxsws = #{mjxsxsws} </if>
             <if test="wjsjlj != null and wjsjlj != ''"> or wjsjlj = #{wjsjlj} </if>
             <if test="sjkzbz != null and sjkzbz != ''"> or sjkzbz = #{sjkzbz} </if>
             <if test="needjfzb != null and needjfzb != ''"> or NeedJfzb = #{needjfzb} </if>
             <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> or ZDYFZYSLBDM = #{zdyfzyslbdm} </if>
             <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> or ZDYFZYSKZCS = #{zdyfzyskzcs} </if>
             <if test="needyskm != null and needyskm != ''"> or NeedYskm = #{needyskm} </if>
             <if test="gkksbmfa != null and gkksbmfa != ''"> or GKKSBMFA = #{gkksbmfa} </if>
             <if test="pzbtdf != null and pzbtdf != ''"> or pzbtdf = #{pzbtdf} </if>
             <if test="ykjhyskm != null and ykjhyskm != ''"> or ykjhyskm = #{ykjhyskm} </if>
             <if test="bkdxssjkm != null and bkdxssjkm != ''"> or BKDXSSJKM = #{bkdxssjkm} </if>
             <if test="pzfjpath != null and pzfjpath != ''"> or PZFJPath = #{pzfjpath} </if>
             <if test="bkdxyfscz != null and bkdxyfscz != ''"> or BKDXYFSCZ = #{bkdxyfscz} </if>
             <if test="delmaxdh != null and delmaxdh != ''"> or DELMAXDH = #{delmaxdh} </if>
             <if test="bkddataqxqy != null and bkddataqxqy != ''"> or BKDDataQXQY = #{bkddataqxqy} </if>
             <if test="ykjhcs != null and ykjhcs != ''"> or YKJHCS = #{ykjhcs} </if>
             <if test="ykjhfs != null and ykjhfs != ''"> or YKJHFS = #{ykjhfs} </if>
             <if test="cnqzkm != null and cnqzkm != ''"> or CNQZKM = #{cnqzkm} </if>
             <if test="ztsx != null and ztsx != ''"> or ZTSX = #{ztsx} </if>
             <if test="tsxkz != null and tsxkz != ''"> or TSXKZ = #{tsxkz} </if>
             <if test="zbkz != null and zbkz != ''"> or ZBKZ = #{zbkz} </if>
             <if test="wjz != null and wjz != ''"> or WJZ = #{wjz} </if>
             <if test="bkdxszhmc != null and bkdxszhmc != ''"> or BKDXSZHMC = #{bkdxszhmc} </if>
             <if test="maxzdycount != null"> or Maxzdycount = #{maxzdycount} </if>
             <if test="sjly != null and sjly != ''"> or SJLY = #{sjly} </if>
             <if test="flowcontrol != null and flowcontrol != ''"> or FlowControl = #{flowcontrol} </if>
             <if test="cs1 != null and cs1 != ''"> or CS1 = #{cs1} </if>
             <if test="cs2 != null and cs2 != ''"> or CS2 = #{cs2} </if>
             <if test="cs3 != null and cs3 != ''"> or CS3 = #{cs3} </if>
             <if test="cs4 != null and cs4 != ''"> or CS4 = #{cs4} </if>
             <if test="cs5 != null and cs5 != ''"> or CS5 = #{cs5} </if>
             <if test="czyjkm != null and czyjkm != ''"> or CZYJKM = #{czyjkm} </if>
    </trim>
</select>

<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity" keyProperty="" useGeneratedKeys="true">
    insert into gl_ztcs(
    <trim suffix="" suffixOverrides=",">
        <if test="ztbh != null and ztbh != ''"> ztbh , </if>
        <if test="ztmc != null and ztmc != ''"> ztmc , </if>
        <if test="ztmce != null and ztmce != ''"> ztmce , </if>
        <if test="ztlb != null and ztlb != ''"> ztlb , </if>
        <if test="hsdwdm != null and hsdwdm != ''"> hsdwdm , </if>
        <if test="hsdwmc != null and hsdwmc != ''"> hsdwmc , </if>
        <if test="bwbdm != null and bwbdm != ''"> bwbdm , </if>
        <if test="bwbmc != null and bwbmc != ''"> bwbmc , </if>
        <if test="yzkm != null and yzkm != ''"> YZKM , </if>
        <if test="sjsj != null"> SJSJ , </if>
        <if test="bwbbf != null and bwbbf != ''"> bwbbf , </if>
        <if test="bwbdw != null and bwbdw != ''"> bwbdw , </if>
        <if test="bwbjd != null"> bwbjd , </if>
        <if test="cwzg != null and cwzg != ''"> cwzg , </if>
        <if test="kjqjs != null"> kjqjs , </if>
        <if test="qykjqj != null and qykjqj != ''"> qykjqj , </if>
        <if test="wbhs != null and wbhs != ''"> wbhs , </if>
        <if test="hllx != null and hllx != ''"> hllx , </if>
        <if test="sfyjz != null and sfyjz != ''"> sfyjz , </if>
        <if test="ztkz != null and ztkz != ''"> ztkz , </if>
        <if test="yskz != null and yskz != ''"> yskz , </if>
        <if test="pzygkz != null and pzygkz != ''"> pzygkz , </if>
        <if test="yspzkz != null and yspzkz != ''"> yspzkz , </if>
        <if test="slxsws != null"> slxsws , </if>
        <if test="djxsws != null"> djxsws , </if>
        <if test="anyibz != null and anyibz != ''"> anyibz , </if>
        <if test="kmbmfa != null and kmbmfa != ''"> kmbmfa , </if>
        <if test="kmzbmfa != null and kmzbmfa != ''"> kmzbmfa , </if>
        <if test="bmbmfa != null and bmbmfa != ''"> bmbmfa , </if>
        <if test="xmbmfa != null and xmbmfa != ''"> xmbmfa , </if>
        <if test="dqbmfa != null and dqbmfa != ''"> dqbmfa , </if>
        <if test="dwbmfa != null and dwbmfa != ''"> dwbmfa , </if>
        <if test="xjbmfa != null and xjbmfa != ''"> xjbmfa , </if>
        <if test="gsbmfa != null and gsbmfa != ''"> gsbmfa , </if>
        <if test="bbpath != null and bbpath != ''"> bbpath , </if>
        <if test="bkdtd != null and bkdtd != ''"> BKDTD , </if>
        <if test="bzdw != null and bzdw != ''"> BZDW , </if>
        <if test="zbqyrq != null and zbqyrq != ''"> ZBQYRQ , </if>
        <if test="gkjzzf != null and gkjzzf != ''"> Gkjzzf , </if>
        <if test="zbkzmb != null and zbkzmb != ''"> ZBKZMB , </if>
        <if test="kzfs != null and kzfs != ''"> KZFS , </if>
        <if test="kzqj != null and kzqj != ''"> KZQJ , </if>
        <if test="kzyj != null and kzyj != ''"> KZYJ , </if>
        <if test="ybksy != null and ybksy != ''"> YBKSY , </if>
        <if test="ybjsy != null and ybjsy != ''"> YBJSY , </if>
        <if test="zfpzbh != null and zfpzbh != ''"> Zfpzbh , </if>
        <if test="bkdbh != null and bkdbh != ''"> Bkdbh , </if>
        <if test="bkpzlx != null and bkpzlx != ''"> BKPZLX , </if>
        <if test="bkhskm != null and bkhskm != ''"> BKHSKM , </if>
        <if test="bkyhkmyz != null and bkyhkmyz != ''"> BKYHKMYZ , </if>
        <if test="zfscbkd != null and zfscbkd != ''"> ZFSCBKD , </if>
        <if test="bkdscpz != null and bkdscpz != ''"> BKDSCPZ , </if>
        <if test="szqxkz != null and szqxkz != ''"> SZQXKZ , </if>
        <if test="djxg != null and djxg != ''"> DJXG , </if>
        <if test="djsh != null and djsh != ''"> DJSH , </if>
        <if test="dybz != null and dybz != ''"> DYBZ , </if>
        <if test="jhsh != null and jhsh != ''"> JHSH , </if>
        <if test="zpscbk != null and zpscbk != ''"> Zpscbk , </if>
        <if test="zphs != null and zphs != ''"> ZPHS , </if>
        <if test="dzkdm != null and dzkdm != ''"> DZKDM , </if>
        <if test="headbkdh != null and headbkdh != ''"> HeadBKDH , </if>
        <if test="bkdfs != null and bkdfs != ''"> Bkdfs , </if>
        <if test="lrzy != null and lrzy != ''"> Lrzy , </if>
        <if test="mjxsxsws != null"> mjxsxsws , </if>
        <if test="wjsjlj != null and wjsjlj != ''"> wjsjlj , </if>
        <if test="sjkzbz != null and sjkzbz != ''"> sjkzbz , </if>
        <if test="needjfzb != null and needjfzb != ''"> NeedJfzb , </if>
        <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> ZDYFZYSLBDM , </if>
        <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> ZDYFZYSKZCS , </if>
        <if test="needyskm != null and needyskm != ''"> NeedYskm , </if>
        <if test="gkksbmfa != null and gkksbmfa != ''"> GKKSBMFA , </if>
        <if test="pzbtdf != null and pzbtdf != ''"> pzbtdf , </if>
        <if test="ykjhyskm != null and ykjhyskm != ''"> ykjhyskm , </if>
        <if test="bkdxssjkm != null and bkdxssjkm != ''"> BKDXSSJKM , </if>
        <if test="pzfjpath != null and pzfjpath != ''"> PZFJPath , </if>
        <if test="bkdxyfscz != null and bkdxyfscz != ''"> BKDXYFSCZ , </if>
        <if test="delmaxdh != null and delmaxdh != ''"> DELMAXDH , </if>
        <if test="bkddataqxqy != null and bkddataqxqy != ''"> BKDDataQXQY , </if>
        <if test="ykjhcs != null and ykjhcs != ''"> YKJHCS , </if>
        <if test="ykjhfs != null and ykjhfs != ''"> YKJHFS , </if>
        <if test="cnqzkm != null and cnqzkm != ''"> CNQZKM , </if>
        <if test="ztsx != null and ztsx != ''"> ZTSX , </if>
        <if test="tsxkz != null and tsxkz != ''"> TSXKZ , </if>
        <if test="zbkz != null and zbkz != ''"> ZBKZ , </if>
        <if test="wjz != null and wjz != ''"> WJZ , </if>
        <if test="bkdxszhmc != null and bkdxszhmc != ''"> BKDXSZHMC , </if>
        <if test="maxzdycount != null"> Maxzdycount , </if>
        <if test="sjly != null and sjly != ''"> SJLY , </if>
        <if test="flowcontrol != null and flowcontrol != ''"> FlowControl , </if>
        <if test="cs1 != null and cs1 != ''"> CS1 , </if>
        <if test="cs2 != null and cs2 != ''"> CS2 , </if>
        <if test="cs3 != null and cs3 != ''"> CS3 , </if>
        <if test="cs4 != null and cs4 != ''"> CS4 , </if>
        <if test="cs5 != null and cs5 != ''"> CS5 , </if>
        <if test="czyjkm != null and czyjkm != ''"> CZYJKM , </if>
        <if test="kjyslbdm != null and kjyslbdm != ''"> kjyslbdm,  </if>
        <if test="wbxsws != null and wbxsws != ''"> wbxsws,  </if>
        <if test="hlxsws != null and hlxsws != ''"> hlxsws,  </if>
        <if test="sfpxjz != null and sfpxjz != ''"> sfpxjz,  </if>
        <if test="qyxbzw != null and qyxbzw != ''"> qyxbzw,  </if>
        <if test="pxjzfs != null and pxjzfs != ''"> pxjzfs,  </if>
        <if test="yzxjll != null and yzxjll != ''"> yzxjll,  </if>
        <if test="nsrlx != null and nsrlx != ''"> nsrlx,  </if>
        <if test="dzgd != null and dzgd != ''"> dzgd,  </if>
        <if test="dzgdzttb != null and dzgdzttb != ''"> dzgdzttb,  </if>
        <if test="kjnd != null and kjnd != ''"> kjnd  </if>
    </trim>
    )values(
    <trim suffix="" suffixOverrides=",">
        <if test="ztbh != null and ztbh != ''"> #{ztbh} ,</if>
        <if test="ztmc != null and ztmc != ''"> #{ztmc} ,</if>
        <if test="ztmce != null and ztmce != ''"> #{ztmce} ,</if>
        <if test="ztlb != null and ztlb != ''"> #{ztlb} ,</if>
        <if test="hsdwdm != null and hsdwdm != ''"> #{hsdwdm} ,</if>
        <if test="hsdwmc != null and hsdwmc != ''"> #{hsdwmc} ,</if>
        <if test="bwbdm != null and bwbdm != ''"> #{bwbdm} ,</if>
        <if test="bwbmc != null and bwbmc != ''"> #{bwbmc} ,</if>
        <if test="yzkm != null and yzkm != ''"> #{yzkm} ,</if>
        <if test="sjsj != null"> #{sjsj} ,</if>
        <if test="bwbbf != null and bwbbf != ''"> #{bwbbf} ,</if>
        <if test="bwbdw != null and bwbdw != ''"> #{bwbdw} ,</if>
        <if test="bwbjd != null"> #{bwbjd} ,</if>
        <if test="cwzg != null and cwzg != ''"> #{cwzg} ,</if>
        <if test="kjqjs != null"> #{kjqjs} ,</if>
        <if test="qykjqj != null and qykjqj != ''"> #{qykjqj} ,</if>
        <if test="wbhs != null and wbhs != ''"> #{wbhs} ,</if>
        <if test="hllx != null and hllx != ''"> #{hllx} ,</if>
        <if test="sfyjz != null and sfyjz != ''"> #{sfyjz} ,</if>
        <if test="ztkz != null and ztkz != ''"> #{ztkz} ,</if>
        <if test="yskz != null and yskz != ''"> #{yskz} ,</if>
        <if test="pzygkz != null and pzygkz != ''"> #{pzygkz} ,</if>
        <if test="yspzkz != null and yspzkz != ''"> #{yspzkz} ,</if>
        <if test="slxsws != null"> #{slxsws} ,</if>
        <if test="djxsws != null"> #{djxsws} ,</if>
        <if test="anyibz != null and anyibz != ''"> #{anyibz} ,</if>
        <if test="kmbmfa != null and kmbmfa != ''"> #{kmbmfa} ,</if>
        <if test="kmzbmfa != null and kmzbmfa != ''"> #{kmzbmfa} ,</if>
        <if test="bmbmfa != null and bmbmfa != ''"> #{bmbmfa} ,</if>
        <if test="xmbmfa != null and xmbmfa != ''"> #{xmbmfa} ,</if>
        <if test="dqbmfa != null and dqbmfa != ''"> #{dqbmfa} ,</if>
        <if test="dwbmfa != null and dwbmfa != ''"> #{dwbmfa} ,</if>
        <if test="xjbmfa != null and xjbmfa != ''"> #{xjbmfa} ,</if>
        <if test="gsbmfa != null and gsbmfa != ''"> #{gsbmfa} ,</if>
        <if test="bbpath != null and bbpath != ''"> #{bbpath} ,</if>
        <if test="bkdtd != null and bkdtd != ''"> #{bkdtd} ,</if>
        <if test="bzdw != null and bzdw != ''"> #{bzdw} ,</if>
        <if test="zbqyrq != null and zbqyrq != ''"> #{zbqyrq} ,</if>
        <if test="gkjzzf != null and gkjzzf != ''"> #{gkjzzf} ,</if>
        <if test="zbkzmb != null and zbkzmb != ''"> #{zbkzmb} ,</if>
        <if test="kzfs != null and kzfs != ''"> #{kzfs} ,</if>
        <if test="kzqj != null and kzqj != ''"> #{kzqj} ,</if>
        <if test="kzyj != null and kzyj != ''"> #{kzyj} ,</if>
        <if test="ybksy != null and ybksy != ''"> #{ybksy} ,</if>
        <if test="ybjsy != null and ybjsy != ''"> #{ybjsy} ,</if>
        <if test="zfpzbh != null and zfpzbh != ''"> #{zfpzbh} ,</if>
        <if test="bkdbh != null and bkdbh != ''"> #{bkdbh} ,</if>
        <if test="bkpzlx != null and bkpzlx != ''"> #{bkpzlx} ,</if>
        <if test="bkhskm != null and bkhskm != ''"> #{bkhskm} ,</if>
        <if test="bkyhkmyz != null and bkyhkmyz != ''"> #{bkyhkmyz} ,</if>
        <if test="zfscbkd != null and zfscbkd != ''"> #{zfscbkd} ,</if>
        <if test="bkdscpz != null and bkdscpz != ''"> #{bkdscpz} ,</if>
        <if test="szqxkz != null and szqxkz != ''"> #{szqxkz} ,</if>
        <if test="djxg != null and djxg != ''"> #{djxg} ,</if>
        <if test="djsh != null and djsh != ''"> #{djsh} ,</if>
        <if test="dybz != null and dybz != ''"> #{dybz} ,</if>
        <if test="jhsh != null and jhsh != ''"> #{jhsh} ,</if>
        <if test="zpscbk != null and zpscbk != ''"> #{zpscbk} ,</if>
        <if test="zphs != null and zphs != ''"> #{zphs} ,</if>
        <if test="dzkdm != null and dzkdm != ''"> #{dzkdm} ,</if>
        <if test="headbkdh != null and headbkdh != ''"> #{headbkdh} ,</if>
        <if test="bkdfs != null and bkdfs != ''"> #{bkdfs} ,</if>
        <if test="lrzy != null and lrzy != ''"> #{lrzy} ,</if>
        <if test="mjxsxsws != null"> #{mjxsxsws} ,</if>
        <if test="wjsjlj != null and wjsjlj != ''"> #{wjsjlj} ,</if>
        <if test="sjkzbz != null and sjkzbz != ''"> #{sjkzbz} ,</if>
        <if test="needjfzb != null and needjfzb != ''"> #{needjfzb} ,</if>
        <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> #{zdyfzyslbdm} ,</if>
        <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> #{zdyfzyskzcs} ,</if>
        <if test="needyskm != null and needyskm != ''"> #{needyskm} ,</if>
        <if test="gkksbmfa != null and gkksbmfa != ''"> #{gkksbmfa} ,</if>
        <if test="pzbtdf != null and pzbtdf != ''"> #{pzbtdf} ,</if>
        <if test="ykjhyskm != null and ykjhyskm != ''"> #{ykjhyskm} ,</if>
        <if test="bkdxssjkm != null and bkdxssjkm != ''"> #{bkdxssjkm} ,</if>
        <if test="pzfjpath != null and pzfjpath != ''"> #{pzfjpath} ,</if>
        <if test="bkdxyfscz != null and bkdxyfscz != ''"> #{bkdxyfscz} ,</if>
        <if test="delmaxdh != null and delmaxdh != ''"> #{delmaxdh} ,</if>
        <if test="bkddataqxqy != null and bkddataqxqy != ''"> #{bkddataqxqy} ,</if>
        <if test="ykjhcs != null and ykjhcs != ''"> #{ykjhcs} ,</if>
        <if test="ykjhfs != null and ykjhfs != ''"> #{ykjhfs} ,</if>
        <if test="cnqzkm != null and cnqzkm != ''"> #{cnqzkm} ,</if>
        <if test="ztsx != null and ztsx != ''"> #{ztsx} ,</if>
        <if test="tsxkz != null and tsxkz != ''"> #{tsxkz} ,</if>
        <if test="zbkz != null and zbkz != ''"> #{zbkz} ,</if>
        <if test="wjz != null and wjz != ''"> #{wjz} ,</if>
        <if test="bkdxszhmc != null and bkdxszhmc != ''"> #{bkdxszhmc} ,</if>
        <if test="maxzdycount != null"> #{maxzdycount} ,</if>
        <if test="sjly != null and sjly != ''"> #{sjly} ,</if>
        <if test="flowcontrol != null and flowcontrol != ''"> #{flowcontrol} ,</if>
        <if test="cs1 != null and cs1 != ''"> #{cs1} ,</if>
        <if test="cs2 != null and cs2 != ''"> #{cs2} ,</if>
        <if test="cs3 != null and cs3 != ''"> #{cs3} ,</if>
        <if test="cs4 != null and cs4 != ''"> #{cs4} ,</if>
        <if test="cs5 != null and cs5 != ''"> #{cs5} ,</if>
        <if test="czyjkm != null and czyjkm != ''"> #{czyjkm} ,</if>
        <if test="kjyslbdm != null and kjyslbdm != ''"> #{kjyslbdm}, </if>
        <if test="wbxsws != null and wbxsws != ''"> #{wbxsws}, </if>
        <if test="hlxsws != null and hlxsws != ''"> #{hlxsws}, </if>
        <if test="sfpxjz != null and sfpxjz != ''"> #{sfpxjz}, </if>
        <if test="qyxbzw != null and qyxbzw != ''"> #{qyxbzw}, </if>
        <if test="pxjzfs != null and pxjzfs != ''"> #{pxjzfs}, </if>
        <if test="yzxjll != null and yzxjll != ''"> #{yzxjll}, </if>
        <if test="nsrlx != null and nsrlx != ''"> #{nsrlx}, </if>
        <if test="dzgd != null and dzgd != ''"> #{dzgd}, </if>
        <if test="dzgdzttb != null and dzgdzttb != ''"> #{dzgdzttb}, </if>
        <if test="kjnd != null and kjnd != ''"> #{kjnd} </if>
    </trim>
    )
</insert>


<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
  insert into gl_ztcs(id,kjnd, ztbh, ztmc, ztmce, ztlb, hsdwdm, hsdwmc, bwbdm, bwbmc, YZKM, SJSJ, bwbbf, bwbdw, bwbjd, cwzg, kjqjs, qykjqj, wbhs, hllx, sfyjz, ztkz, yskz, pzygkz, yspzkz, slxsws, djxsws, anyibz, kmbmfa, kmzbmfa, bmbmfa, xmbmfa, dqbmfa, dwbmfa, xjbmfa, gsbmfa, bbpath, BKDTD, BZDW, ZBQYRQ, Gkjzzf, ZBKZMB, KZFS, KZQJ, KZYJ, YBKSY, YBJSY, Zfpzbh, Bkdbh, BKPZLX, BKHSKM, BKYHKMYZ, ZFSCBKD, BKDSCPZ, SZQXKZ, DJXG, DJSH, DYBZ, JHSH, Zpscbk, ZPHS, DZKDM, HeadBKDH, Bkdfs, Lrzy, mjxsxsws, wjsjlj, sjkzbz, NeedJfzb, ZDYFZYSLBDM, ZDYFZYSKZCS, NeedYskm, GKKSBMFA, pzbtdf, ykjhyskm, BKDXSSJKM, PZFJPath, BKDXYFSCZ, DELMAXDH, BKDDataQXQY, YKJHCS, YKJHFS, CNQZKM, ZTSX, TSXKZ, ZBKZ, WJZ, BKDXSZHMC, Maxzdycount, SJLY, FlowControl, CS1, CS2, CS3, CS4, CS5, CZYJKM)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.id},#{entity.kjnd},#{entity.ztbh},#{entity.ztmc},#{entity.ztmce},#{entity.ztlb},#{entity.hsdwdm},#{entity.hsdwmc},#{entity.bwbdm},#{entity.bwbmc},#{entity.yzkm},#{entity.sjsj},#{entity.bwbbf},#{entity.bwbdw},#{entity.bwbjd},#{entity.cwzg},#{entity.kjqjs},#{entity.qykjqj},#{entity.wbhs},#{entity.hllx},#{entity.sfyjz},#{entity.ztkz},#{entity.yskz},#{entity.pzygkz},#{entity.yspzkz},#{entity.slxsws},#{entity.djxsws},#{entity.anyibz},#{entity.kmbmfa},#{entity.kmzbmfa},#{entity.bmbmfa},#{entity.xmbmfa},#{entity.dqbmfa},#{entity.dwbmfa},#{entity.xjbmfa},#{entity.gsbmfa},#{entity.bbpath},#{entity.bkdtd},#{entity.bzdw},#{entity.zbqyrq},#{entity.gkjzzf},#{entity.zbkzmb},#{entity.kzfs},#{entity.kzqj},#{entity.kzyj},#{entity.ybksy},#{entity.ybjsy},#{entity.zfpzbh},#{entity.bkdbh},#{entity.bkpzlx},#{entity.bkhskm},#{entity.bkyhkmyz},#{entity.zfscbkd},#{entity.bkdscpz},#{entity.szqxkz},#{entity.djxg},#{entity.djsh},#{entity.dybz},#{entity.jhsh},#{entity.zpscbk},#{entity.zphs},#{entity.dzkdm},#{entity.headbkdh},#{entity.bkdfs},#{entity.lrzy},#{entity.mjxsxsws},#{entity.wjsjlj},#{entity.sjkzbz},#{entity.needjfzb},#{entity.zdyfzyslbdm},#{entity.zdyfzyskzcs},#{entity.needyskm},#{entity.gkksbmfa},#{entity.pzbtdf},#{entity.ykjhyskm},#{entity.bkdxssjkm},#{entity.pzfjpath},#{entity.bkdxyfscz},#{entity.delmaxdh},#{entity.bkddataqxqy},#{entity.ykjhcs},#{entity.ykjhfs},#{entity.cnqzkm},#{entity.ztsx},#{entity.tsxkz},#{entity.zbkz},#{entity.wjz},#{entity.bkdxszhmc},#{entity.maxzdycount},#{entity.sjly},#{entity.flowcontrol},#{entity.cs1},#{entity.cs2},#{entity.cs3},#{entity.cs4},#{entity.cs5},#{entity.czyjkm})
    </foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
    insert into gl_ztcs(id,kjnd, ztbh, ztmc, ztmce, ztlb, hsdwdm, hsdwmc, bwbdm, bwbmc, YZKM, SJSJ, bwbbf, bwbdw, bwbjd, cwzg, kjqjs, qykjqj, wbhs, hllx, sfyjz, ztkz, yskz, pzygkz, yspzkz, slxsws, djxsws, anyibz, kmbmfa, kmzbmfa, bmbmfa, xmbmfa, dqbmfa, dwbmfa, xjbmfa, gsbmfa, bbpath, BKDTD, BZDW, ZBQYRQ, Gkjzzf, ZBKZMB, KZFS, KZQJ, KZYJ, YBKSY, YBJSY, Zfpzbh, Bkdbh, BKPZLX, BKHSKM, BKYHKMYZ, ZFSCBKD, BKDSCPZ, SZQXKZ, DJXG, DJSH, DYBZ, JHSH, Zpscbk, ZPHS, DZKDM, HeadBKDH, Bkdfs, Lrzy, mjxsxsws, wjsjlj, sjkzbz, NeedJfzb, ZDYFZYSLBDM, ZDYFZYSKZCS, NeedYskm, GKKSBMFA, pzbtdf, ykjhyskm, BKDXSSJKM, PZFJPath, BKDXYFSCZ, DELMAXDH, BKDDataQXQY, YKJHCS, YKJHFS, CNQZKM, ZTSX, TSXKZ, ZBKZ, WJZ, BKDXSZHMC, Maxzdycount, SJLY, FlowControl, CS1, CS2, CS3, CS4, CS5, CZYJKM)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.id},#{entity.kjnd},#{entity.ztbh},#{entity.ztmc},#{entity.ztmce},#{entity.ztlb},#{entity.hsdwdm},#{entity.hsdwmc},#{entity.bwbdm},#{entity.bwbmc},#{entity.yzkm},#{entity.sjsj},#{entity.bwbbf},#{entity.bwbdw},#{entity.bwbjd},#{entity.cwzg},#{entity.kjqjs},#{entity.qykjqj},#{entity.wbhs},#{entity.hllx},#{entity.sfyjz},#{entity.ztkz},#{entity.yskz},#{entity.pzygkz},#{entity.yspzkz},#{entity.slxsws},#{entity.djxsws},#{entity.anyibz},#{entity.kmbmfa},#{entity.kmzbmfa},#{entity.bmbmfa},#{entity.xmbmfa},#{entity.dqbmfa},#{entity.dwbmfa},#{entity.xjbmfa},#{entity.gsbmfa},#{entity.bbpath},#{entity.bkdtd},#{entity.bzdw},#{entity.zbqyrq},#{entity.gkjzzf},#{entity.zbkzmb},#{entity.kzfs},#{entity.kzqj},#{entity.kzyj},#{entity.ybksy},#{entity.ybjsy},#{entity.zfpzbh},#{entity.bkdbh},#{entity.bkpzlx},#{entity.bkhskm},#{entity.bkyhkmyz},#{entity.zfscbkd},#{entity.bkdscpz},#{entity.szqxkz},#{entity.djxg},#{entity.djsh},#{entity.dybz},#{entity.jhsh},#{entity.zpscbk},#{entity.zphs},#{entity.dzkdm},#{entity.headbkdh},#{entity.bkdfs},#{entity.lrzy},#{entity.mjxsxsws},#{entity.wjsjlj},#{entity.sjkzbz},#{entity.needjfzb},#{entity.zdyfzyslbdm},#{entity.zdyfzyskzcs},#{entity.needyskm},#{entity.gkksbmfa},#{entity.pzbtdf},#{entity.ykjhyskm},#{entity.bkdxssjkm},#{entity.pzfjpath},#{entity.bkdxyfscz},#{entity.delmaxdh},#{entity.bkddataqxqy},#{entity.ykjhcs},#{entity.ykjhfs},#{entity.cnqzkm},#{entity.ztsx},#{entity.tsxkz},#{entity.zbkz},#{entity.wjz},#{entity.bkdxszhmc},#{entity.maxzdycount},#{entity.sjly},#{entity.flowcontrol},#{entity.cs1},#{entity.cs2},#{entity.cs3},#{entity.cs4},#{entity.cs5},#{entity.czyjkm})
    </foreach>
    on duplicate key update
    kjnd = values(kjnd),
    ztbh = values(ztbh),
    ztmc = values(ztmc),
    ztmce = values(ztmce),
    ztlb = values(ztlb),
    hsdwdm = values(hsdwdm),
    hsdwmc = values(hsdwmc),
    bwbdm = values(bwbdm),
    bwbmc = values(bwbmc),
    YZKM = values(YZKM),
    SJSJ = values(SJSJ),
    bwbbf = values(bwbbf),
    bwbdw = values(bwbdw),
    bwbjd = values(bwbjd),
    cwzg = values(cwzg),
    kjqjs = values(kjqjs),
    qykjqj = values(qykjqj),
    wbhs = values(wbhs),
    hllx = values(hllx),
    sfyjz = values(sfyjz),
    ztkz = values(ztkz),
    yskz = values(yskz),
    pzygkz = values(pzygkz),
    yspzkz = values(yspzkz),
    slxsws = values(slxsws),
    djxsws = values(djxsws),
    anyibz = values(anyibz),
    kmbmfa = values(kmbmfa),
    kmzbmfa = values(kmzbmfa),
    bmbmfa = values(bmbmfa),
    xmbmfa = values(xmbmfa),
    dqbmfa = values(dqbmfa),
    dwbmfa = values(dwbmfa),
    xjbmfa = values(xjbmfa),
    gsbmfa = values(gsbmfa),
    bbpath = values(bbpath),
    BKDTD = values(BKDTD),
    BZDW = values(BZDW),
    ZBQYRQ = values(ZBQYRQ),
    Gkjzzf = values(Gkjzzf),
    ZBKZMB = values(ZBKZMB),
    KZFS = values(KZFS),
    KZQJ = values(KZQJ),
    KZYJ = values(KZYJ),
    YBKSY = values(YBKSY),
    YBJSY = values(YBJSY),
    Zfpzbh = values(Zfpzbh),
    Bkdbh = values(Bkdbh),
    BKPZLX = values(BKPZLX),
    BKHSKM = values(BKHSKM),
    BKYHKMYZ = values(BKYHKMYZ),
    ZFSCBKD = values(ZFSCBKD),
    BKDSCPZ = values(BKDSCPZ),
    SZQXKZ = values(SZQXKZ),
    DJXG = values(DJXG),
    DJSH = values(DJSH),
    DYBZ = values(DYBZ),
    JHSH = values(JHSH),
    Zpscbk = values(Zpscbk),
    ZPHS = values(ZPHS),
    DZKDM = values(DZKDM),
    HeadBKDH = values(HeadBKDH),
    Bkdfs = values(Bkdfs),
    Lrzy = values(Lrzy),
    mjxsxsws = values(mjxsxsws),
    wjsjlj = values(wjsjlj),
    sjkzbz = values(sjkzbz),
    NeedJfzb = values(NeedJfzb),
    ZDYFZYSLBDM = values(ZDYFZYSLBDM),
    ZDYFZYSKZCS = values(ZDYFZYSKZCS),
    NeedYskm = values(NeedYskm),
    GKKSBMFA = values(GKKSBMFA),
    pzbtdf = values(pzbtdf),
    ykjhyskm = values(ykjhyskm),
    BKDXSSJKM = values(BKDXSSJKM),
    PZFJPath = values(PZFJPath),
    BKDXYFSCZ = values(BKDXYFSCZ),
    DELMAXDH = values(DELMAXDH),
    BKDDataQXQY = values(BKDDataQXQY),
    YKJHCS = values(YKJHCS),
    YKJHFS = values(YKJHFS),
    CNQZKM = values(CNQZKM),
    ZTSX = values(ZTSX),
    TSXKZ = values(TSXKZ),
    ZBKZ = values(ZBKZ),
    WJZ = values(WJZ),
    BKDXSZHMC = values(BKDXSZHMC),
    Maxzdycount = values(Maxzdycount),
    SJLY = values(SJLY),
    FlowControl = values(FlowControl),
    CS1 = values(CS1),
    CS2 = values(CS2),
    CS3 = values(CS3),
    CS4 = values(CS4),
    CS5 = values(CS5),
    CZYJKM = values(CZYJKM)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity" >
    update gl_ztcs  set
    <trim suffix="" suffixOverrides=",">
        <if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
        <if test="ztbh != null and ztbh != ''"> ztbh = #{ztbh},</if>
        <if test="ztmc != null and ztmc != ''"> ztmc = #{ztmc},</if>
        <if test="ztmce != null and ztmce != ''"> ztmce = #{ztmce},</if>
        <if test="ztlb != null and ztlb != ''"> ztlb = #{ztlb},</if>
        <if test="hsdwdm != null and hsdwdm != ''"> hsdwdm = #{hsdwdm},</if>
        <if test="hsdwmc != null and hsdwmc != ''"> hsdwmc = #{hsdwmc},</if>
        <if test="bwbdm != null and bwbdm != ''"> bwbdm = #{bwbdm},</if>
        <if test="bwbmc != null and bwbmc != ''"> bwbmc = #{bwbmc},</if>
        <if test="yzkm != null and yzkm != ''"> YZKM = #{yzkm},</if>
        <if test="sjsj != null"> SJSJ = #{sjsj},</if>
        <if test="bwbbf != null and bwbbf != ''"> bwbbf = #{bwbbf},</if>
        <if test="bwbdw != null and bwbdw != ''"> bwbdw = #{bwbdw},</if>
        <if test="bwbjd != null"> bwbjd = #{bwbjd},</if>
        <if test="cwzg != null and cwzg != ''"> cwzg = #{cwzg},</if>
        <if test="kjqjs != null"> kjqjs = #{kjqjs},</if>
        <if test="qykjqj != null and qykjqj != ''"> qykjqj = #{qykjqj},</if>
        <if test="wbhs != null and wbhs != ''"> wbhs = #{wbhs},</if>
        <if test="hllx != null and hllx != ''"> hllx = #{hllx},</if>
        <if test="sfyjz != null and sfyjz != ''"> sfyjz = #{sfyjz},</if>
        <if test="ztkz != null and ztkz != ''"> ztkz = #{ztkz},</if>
        <if test="yskz != null and yskz != ''"> yskz = #{yskz},</if>
        <if test="pzygkz != null and pzygkz != ''"> pzygkz = #{pzygkz},</if>
        <if test="yspzkz != null and yspzkz != ''"> yspzkz = #{yspzkz},</if>
        <if test="slxsws != null"> slxsws = #{slxsws},</if>
        <if test="djxsws != null"> djxsws = #{djxsws},</if>
        <if test="anyibz != null and anyibz != ''"> anyibz = #{anyibz},</if>
        <if test="kmbmfa != null and kmbmfa != ''"> kmbmfa = #{kmbmfa},</if>
        <if test="kmzbmfa != null and kmzbmfa != ''"> kmzbmfa = #{kmzbmfa},</if>
        <if test="bmbmfa != null and bmbmfa != ''"> bmbmfa = #{bmbmfa},</if>
        <if test="xmbmfa != null and xmbmfa != ''"> xmbmfa = #{xmbmfa},</if>
        <if test="dqbmfa != null and dqbmfa != ''"> dqbmfa = #{dqbmfa},</if>
        <if test="dwbmfa != null and dwbmfa != ''"> dwbmfa = #{dwbmfa},</if>
        <if test="xjbmfa != null and xjbmfa != ''"> xjbmfa = #{xjbmfa},</if>
        <if test="gsbmfa != null and gsbmfa != ''"> gsbmfa = #{gsbmfa},</if>
        <if test="bbpath != null and bbpath != ''"> bbpath = #{bbpath},</if>
        <if test="bkdtd != null and bkdtd != ''"> BKDTD = #{bkdtd},</if>
        <if test="bzdw != null and bzdw != ''"> BZDW = #{bzdw},</if>
        <if test="zbqyrq != null and zbqyrq != ''"> ZBQYRQ = #{zbqyrq},</if>
        <if test="gkjzzf != null and gkjzzf != ''"> Gkjzzf = #{gkjzzf},</if>
        <if test="zbkzmb != null and zbkzmb != ''"> ZBKZMB = #{zbkzmb},</if>
        <if test="kzfs != null and kzfs != ''"> KZFS = #{kzfs},</if>
        <if test="kzqj != null and kzqj != ''"> KZQJ = #{kzqj},</if>
        <if test="kzyj != null and kzyj != ''"> KZYJ = #{kzyj},</if>
        <if test="ybksy != null and ybksy != ''"> YBKSY = #{ybksy},</if>
        <if test="ybjsy != null and ybjsy != ''"> YBJSY = #{ybjsy},</if>
        <if test="zfpzbh != null and zfpzbh != ''"> Zfpzbh = #{zfpzbh},</if>
        <if test="bkdbh != null and bkdbh != ''"> Bkdbh = #{bkdbh},</if>
        <if test="bkpzlx != null and bkpzlx != ''"> BKPZLX = #{bkpzlx},</if>
        <if test="bkhskm != null and bkhskm != ''"> BKHSKM = #{bkhskm},</if>
        <if test="bkyhkmyz != null and bkyhkmyz != ''"> BKYHKMYZ = #{bkyhkmyz},</if>
        <if test="zfscbkd != null and zfscbkd != ''"> ZFSCBKD = #{zfscbkd},</if>
        <if test="bkdscpz != null and bkdscpz != ''"> BKDSCPZ = #{bkdscpz},</if>
        <if test="szqxkz != null and szqxkz != ''"> SZQXKZ = #{szqxkz},</if>
        <if test="djxg != null and djxg != ''"> DJXG = #{djxg},</if>
        <if test="djsh != null and djsh != ''"> DJSH = #{djsh},</if>
        <if test="dybz != null and dybz != ''"> DYBZ = #{dybz},</if>
        <if test="jhsh != null and jhsh != ''"> JHSH = #{jhsh},</if>
        <if test="zpscbk != null and zpscbk != ''"> Zpscbk = #{zpscbk},</if>
        <if test="zphs != null and zphs != ''"> ZPHS = #{zphs},</if>
        <if test="dzkdm != null and dzkdm != ''"> DZKDM = #{dzkdm},</if>
        <if test="headbkdh != null and headbkdh != ''"> HeadBKDH = #{headbkdh},</if>
        <if test="bkdfs != null and bkdfs != ''"> Bkdfs = #{bkdfs},</if>
        <if test="lrzy != null and lrzy != ''"> Lrzy = #{lrzy},</if>
        <if test="mjxsxsws != null"> mjxsxsws = #{mjxsxsws},</if>
        <if test="wjsjlj != null and wjsjlj != ''"> wjsjlj = #{wjsjlj},</if>
        <if test="sjkzbz != null and sjkzbz != ''"> sjkzbz = #{sjkzbz},</if>
        <if test="needjfzb != null and needjfzb != ''"> NeedJfzb = #{needjfzb},</if>
        <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> ZDYFZYSLBDM = #{zdyfzyslbdm},</if>
        <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> ZDYFZYSKZCS = #{zdyfzyskzcs},</if>
        <if test="needyskm != null and needyskm != ''"> NeedYskm = #{needyskm},</if>
        <if test="gkksbmfa != null and gkksbmfa != ''"> GKKSBMFA = #{gkksbmfa},</if>
        <if test="pzbtdf != null and pzbtdf != ''"> pzbtdf = #{pzbtdf},</if>
        <if test="ykjhyskm != null and ykjhyskm != ''"> ykjhyskm = #{ykjhyskm},</if>
        <if test="bkdxssjkm != null and bkdxssjkm != ''"> BKDXSSJKM = #{bkdxssjkm},</if>
        <if test="pzfjpath != null and pzfjpath != ''"> PZFJPath = #{pzfjpath},</if>
        <if test="bkdxyfscz != null and bkdxyfscz != ''"> BKDXYFSCZ = #{bkdxyfscz},</if>
        <if test="delmaxdh != null and delmaxdh != ''"> DELMAXDH = #{delmaxdh},</if>
        <if test="bkddataqxqy != null and bkddataqxqy != ''"> BKDDataQXQY = #{bkddataqxqy},</if>
        <if test="ykjhcs != null and ykjhcs != ''"> YKJHCS = #{ykjhcs},</if>
        <if test="ykjhfs != null and ykjhfs != ''"> YKJHFS = #{ykjhfs},</if>
        <if test="cnqzkm != null and cnqzkm != ''"> CNQZKM = #{cnqzkm},</if>
        <if test="ztsx != null and ztsx != ''"> ZTSX = #{ztsx},</if>
        <if test="tsxkz != null and tsxkz != ''"> TSXKZ = #{tsxkz},</if>
        <if test="zbkz != null and zbkz != ''"> ZBKZ = #{zbkz},</if>
        <if test="wjz != null and wjz != ''"> WJZ = #{wjz},</if>
        <if test="bkdxszhmc != null and bkdxszhmc != ''"> BKDXSZHMC = #{bkdxszhmc},</if>
        <if test="maxzdycount != null"> Maxzdycount = #{maxzdycount},</if>
        <if test="sjly != null and sjly != ''"> SJLY = #{sjly},</if>
        <if test="flowcontrol != null and flowcontrol != ''"> FlowControl = #{flowcontrol},</if>
        <if test="cs1 != null and cs1 != ''"> CS1 = #{cs1},</if>
        <if test="cs2 != null and cs2 != ''"> CS2 = #{cs2},</if>
        <if test="cs3 != null and cs3 != ''"> CS3 = #{cs3},</if>
        <if test="cs4 != null and cs4 != ''"> CS4 = #{cs4},</if>
        <if test="cs5 != null and cs5 != ''"> CS5 = #{cs5},</if>
        <if test="czyjkm != null and czyjkm != ''"> CZYJKM = #{czyjkm},</if>
        <if test="kjyslbdm != null and kjyslbdm != ''"> kjyslbdm = #{kjyslbdm},</if>
        <if test="wbxsws != null and wbxsws != ''"> wbxsws = #{wbxsws},</if>
        <if test="hlxsws != null and hlxsws != ''"> hlxsws = #{hlxsws},</if>
        <if test="sfpxjz != null and sfpxjz != ''"> sfpxjz = #{sfpxjz},</if>
        <if test="qyxbzw != null and qyxbzw != ''"> qyxbzw = #{qyxbzw},</if>
        <if test="pxjzfs != null and pxjzfs != ''"> pxjzfs = #{pxjzfs},</if>
        <if test="yzxjll != null and yzxjll != ''"> yzxjll = #{yzxjll},</if>
        <if test="nsrlx != null and nsrlx != ''"> nsrlx = #{nsrlx},</if>
        <if test="dzgd != null and dzgd != ''"> dzgd = #{dzgd},</if>
        <if test="dzgdzttb != null and dzgdzttb != ''"> dzgdzttb = #{dzgdzttb}</if>
    </trim>
    where  kjnd= #{kjnd} and ztbh=#{ztbh} and hsdwdm=#{hsdwdm}
</update>



<!-- 逻辑删除 -->
<update id="SenderGlZtcsEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity" >
update gl_ztcs  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where  id= #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="SenderGlZtcsEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.glZtcs.entity.SenderGlZtcsEntity" >
update gl_ztcs  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
 <trim prefix="where" prefixOverrides="and"> 
        <if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
            <if test="ztbh != null and ztbh != ''"> and ztbh = #{ztbh} </if>
            <if test="ztmc != null and ztmc != ''"> and ztmc = #{ztmc} </if>
            <if test="ztmce != null and ztmce != ''"> and ztmce = #{ztmce} </if>
            <if test="ztlb != null and ztlb != ''"> and ztlb = #{ztlb} </if>
            <if test="hsdwdm != null and hsdwdm != ''"> and hsdwdm = #{hsdwdm} </if>
            <if test="hsdwmc != null and hsdwmc != ''"> and hsdwmc = #{hsdwmc} </if>
            <if test="bwbdm != null and bwbdm != ''"> and bwbdm = #{bwbdm} </if>
            <if test="bwbmc != null and bwbmc != ''"> and bwbmc = #{bwbmc} </if>
            <if test="yzkm != null and yzkm != ''"> and YZKM = #{yzkm} </if>
            <if test="sjsj != null"> and SJSJ = #{sjsj} </if>
            <if test="bwbbf != null and bwbbf != ''"> and bwbbf = #{bwbbf} </if>
            <if test="bwbdw != null and bwbdw != ''"> and bwbdw = #{bwbdw} </if>
            <if test="bwbjd != null"> and bwbjd = #{bwbjd} </if>
            <if test="cwzg != null and cwzg != ''"> and cwzg = #{cwzg} </if>
            <if test="kjqjs != null"> and kjqjs = #{kjqjs} </if>
            <if test="qykjqj != null and qykjqj != ''"> and qykjqj = #{qykjqj} </if>
            <if test="wbhs != null and wbhs != ''"> and wbhs = #{wbhs} </if>
            <if test="hllx != null and hllx != ''"> and hllx = #{hllx} </if>
            <if test="sfyjz != null and sfyjz != ''"> and sfyjz = #{sfyjz} </if>
            <if test="ztkz != null and ztkz != ''"> and ztkz = #{ztkz} </if>
            <if test="yskz != null and yskz != ''"> and yskz = #{yskz} </if>
            <if test="pzygkz != null and pzygkz != ''"> and pzygkz = #{pzygkz} </if>
            <if test="yspzkz != null and yspzkz != ''"> and yspzkz = #{yspzkz} </if>
            <if test="slxsws != null"> and slxsws = #{slxsws} </if>
            <if test="djxsws != null"> and djxsws = #{djxsws} </if>
            <if test="anyibz != null and anyibz != ''"> and anyibz = #{anyibz} </if>
            <if test="kmbmfa != null and kmbmfa != ''"> and kmbmfa = #{kmbmfa} </if>
            <if test="kmzbmfa != null and kmzbmfa != ''"> and kmzbmfa = #{kmzbmfa} </if>
            <if test="bmbmfa != null and bmbmfa != ''"> and bmbmfa = #{bmbmfa} </if>
            <if test="xmbmfa != null and xmbmfa != ''"> and xmbmfa = #{xmbmfa} </if>
            <if test="dqbmfa != null and dqbmfa != ''"> and dqbmfa = #{dqbmfa} </if>
            <if test="dwbmfa != null and dwbmfa != ''"> and dwbmfa = #{dwbmfa} </if>
            <if test="xjbmfa != null and xjbmfa != ''"> and xjbmfa = #{xjbmfa} </if>
            <if test="gsbmfa != null and gsbmfa != ''"> and gsbmfa = #{gsbmfa} </if>
            <if test="bbpath != null and bbpath != ''"> and bbpath = #{bbpath} </if>
            <if test="bkdtd != null and bkdtd != ''"> and BKDTD = #{bkdtd} </if>
            <if test="bzdw != null and bzdw != ''"> and BZDW = #{bzdw} </if>
            <if test="zbqyrq != null and zbqyrq != ''"> and ZBQYRQ = #{zbqyrq} </if>
            <if test="gkjzzf != null and gkjzzf != ''"> and Gkjzzf = #{gkjzzf} </if>
            <if test="zbkzmb != null and zbkzmb != ''"> and ZBKZMB = #{zbkzmb} </if>
            <if test="kzfs != null and kzfs != ''"> and KZFS = #{kzfs} </if>
            <if test="kzqj != null and kzqj != ''"> and KZQJ = #{kzqj} </if>
            <if test="kzyj != null and kzyj != ''"> and KZYJ = #{kzyj} </if>
            <if test="ybksy != null and ybksy != ''"> and YBKSY = #{ybksy} </if>
            <if test="ybjsy != null and ybjsy != ''"> and YBJSY = #{ybjsy} </if>
            <if test="zfpzbh != null and zfpzbh != ''"> and Zfpzbh = #{zfpzbh} </if>
            <if test="bkdbh != null and bkdbh != ''"> and Bkdbh = #{bkdbh} </if>
            <if test="bkpzlx != null and bkpzlx != ''"> and BKPZLX = #{bkpzlx} </if>
            <if test="bkhskm != null and bkhskm != ''"> and BKHSKM = #{bkhskm} </if>
            <if test="bkyhkmyz != null and bkyhkmyz != ''"> and BKYHKMYZ = #{bkyhkmyz} </if>
            <if test="zfscbkd != null and zfscbkd != ''"> and ZFSCBKD = #{zfscbkd} </if>
            <if test="bkdscpz != null and bkdscpz != ''"> and BKDSCPZ = #{bkdscpz} </if>
            <if test="szqxkz != null and szqxkz != ''"> and SZQXKZ = #{szqxkz} </if>
            <if test="djxg != null and djxg != ''"> and DJXG = #{djxg} </if>
            <if test="djsh != null and djsh != ''"> and DJSH = #{djsh} </if>
            <if test="dybz != null and dybz != ''"> and DYBZ = #{dybz} </if>
            <if test="jhsh != null and jhsh != ''"> and JHSH = #{jhsh} </if>
            <if test="zpscbk != null and zpscbk != ''"> and Zpscbk = #{zpscbk} </if>
            <if test="zphs != null and zphs != ''"> and ZPHS = #{zphs} </if>
            <if test="dzkdm != null and dzkdm != ''"> and DZKDM = #{dzkdm} </if>
            <if test="headbkdh != null and headbkdh != ''"> and HeadBKDH = #{headbkdh} </if>
            <if test="bkdfs != null and bkdfs != ''"> and Bkdfs = #{bkdfs} </if>
            <if test="lrzy != null and lrzy != ''"> and Lrzy = #{lrzy} </if>
            <if test="mjxsxsws != null"> and mjxsxsws = #{mjxsxsws} </if>
            <if test="wjsjlj != null and wjsjlj != ''"> and wjsjlj = #{wjsjlj} </if>
            <if test="sjkzbz != null and sjkzbz != ''"> and sjkzbz = #{sjkzbz} </if>
            <if test="needjfzb != null and needjfzb != ''"> and NeedJfzb = #{needjfzb} </if>
            <if test="zdyfzyslbdm != null and zdyfzyslbdm != ''"> and ZDYFZYSLBDM = #{zdyfzyslbdm} </if>
            <if test="zdyfzyskzcs != null and zdyfzyskzcs != ''"> and ZDYFZYSKZCS = #{zdyfzyskzcs} </if>
            <if test="needyskm != null and needyskm != ''"> and NeedYskm = #{needyskm} </if>
            <if test="gkksbmfa != null and gkksbmfa != ''"> and GKKSBMFA = #{gkksbmfa} </if>
            <if test="pzbtdf != null and pzbtdf != ''"> and pzbtdf = #{pzbtdf} </if>
            <if test="ykjhyskm != null and ykjhyskm != ''"> and ykjhyskm = #{ykjhyskm} </if>
            <if test="bkdxssjkm != null and bkdxssjkm != ''"> and BKDXSSJKM = #{bkdxssjkm} </if>
            <if test="pzfjpath != null and pzfjpath != ''"> and PZFJPath = #{pzfjpath} </if>
            <if test="bkdxyfscz != null and bkdxyfscz != ''"> and BKDXYFSCZ = #{bkdxyfscz} </if>
            <if test="delmaxdh != null and delmaxdh != ''"> and DELMAXDH = #{delmaxdh} </if>
            <if test="bkddataqxqy != null and bkddataqxqy != ''"> and BKDDataQXQY = #{bkddataqxqy} </if>
            <if test="ykjhcs != null and ykjhcs != ''"> and YKJHCS = #{ykjhcs} </if>
            <if test="ykjhfs != null and ykjhfs != ''"> and YKJHFS = #{ykjhfs} </if>
            <if test="cnqzkm != null and cnqzkm != ''"> and CNQZKM = #{cnqzkm} </if>
            <if test="ztsx != null and ztsx != ''"> and ZTSX = #{ztsx} </if>
            <if test="tsxkz != null and tsxkz != ''"> and TSXKZ = #{tsxkz} </if>
            <if test="zbkz != null and zbkz != ''"> and ZBKZ = #{zbkz} </if>
            <if test="wjz != null and wjz != ''"> and WJZ = #{wjz} </if>
            <if test="bkdxszhmc != null and bkdxszhmc != ''"> and BKDXSZHMC = #{bkdxszhmc} </if>
            <if test="maxzdycount != null"> and Maxzdycount = #{maxzdycount} </if>
            <if test="sjly != null and sjly != ''"> and SJLY = #{sjly} </if>
            <if test="flowcontrol != null and flowcontrol != ''"> and FlowControl = #{flowcontrol} </if>
            <if test="cs1 != null and cs1 != ''"> and CS1 = #{cs1} </if>
            <if test="cs2 != null and cs2 != ''"> and CS2 = #{cs2} </if>
            <if test="cs3 != null and cs3 != ''"> and CS3 = #{cs3} </if>
            <if test="cs4 != null and cs4 != ''"> and CS4 = #{cs4} </if>
            <if test="cs5 != null and cs5 != ''"> and CS5 = #{cs5} </if>
            <if test="czyjkm != null and czyjkm != ''"> and CZYJKM = #{czyjkm} </if>
            and sts='Y'
    </trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
    delete from gl_ztcs where  id= #{id}
</delete>

    <!--通过会计年度，账套编号，核算单位代码删除-->
    <delete id="SenderGlZtcsEntity_delete_ztcs">
        delete from gl_ztcs where  ztbh= #{ztbh} and kjnd=#{kjnd} and hsdwdm=#{hsdwdm}
    </delete>

</mapper>

