<?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.gbizbxmb.dao.impl.GbiZbxmbDaoImpl">

    <resultMap id="get-GbiZbxmbEntity-result" type="com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity" >
       <result property="zbid" column="ZBID" jdbcType="INTEGER"/>
           <result property="gsdm" column="GSDM" jdbcType="VARCHAR"/>
           <result property="kjnd" column="KJND" jdbcType="VARCHAR"/>
           <result property="zbdm" column="ZBDM" jdbcType="VARCHAR"/>
           <result property="zblb" column="ZBLB" jdbcType="VARCHAR"/>
           <result property="sjzbid" column="SJZBID" jdbcType="INTEGER"/>
           <result property="zy" column="ZY" jdbcType="VARCHAR"/>
           <result property="ysfadm" column="YSFADM" jdbcType="VARCHAR"/>
           <result property="ysfamc" column="YSFAMC" jdbcType="VARCHAR"/>
           <result property="jflxdm" column="JFLXDM" jdbcType="VARCHAR"/>
           <result property="jflxmc" column="JFLXMC" jdbcType="VARCHAR"/>
           <result property="whdm" column="WHDM" jdbcType="VARCHAR"/>
           <result property="whmc" column="WHMC" jdbcType="VARCHAR"/>
           <result property="zblydm" column="ZBLYDM" jdbcType="VARCHAR"/>
           <result property="zblymc" column="ZBLYMC" jdbcType="VARCHAR"/>
           <result property="zjlydm" column="ZJLYDM" jdbcType="VARCHAR"/>
           <result property="zjlymc" column="ZJLYMC" jdbcType="VARCHAR"/>
           <result property="zjxzdm" column="ZJXZDM" jdbcType="VARCHAR"/>
           <result property="zjxzmc" column="ZJXZMC" jdbcType="VARCHAR"/>
           <result property="jsfsdm" column="JSFSDM" jdbcType="VARCHAR"/>
           <result property="jsfsmc" column="JSFSMC" jdbcType="VARCHAR"/>
           <result property="zffsdm" column="ZFFSDM" jdbcType="VARCHAR"/>
           <result property="zffsmc" column="ZFFSMC" jdbcType="VARCHAR"/>
           <result property="ysdwdm" column="YSDWDM" jdbcType="VARCHAR"/>
           <result property="ysdwmc" column="YSDWMC" jdbcType="VARCHAR"/>
           <result property="bmdm" column="BMDM" jdbcType="VARCHAR"/>
           <result property="bmmc" column="BMMC" jdbcType="VARCHAR"/>
           <result property="zydm" column="ZYDM" jdbcType="VARCHAR"/>
           <result property="zymc" column="ZYMC" jdbcType="VARCHAR"/>
           <result property="xmfldm" column="XMFLDM" jdbcType="VARCHAR"/>
           <result property="xmflmc" column="XMFLMC" jdbcType="VARCHAR"/>
           <result property="xmdm" column="XMDM" jdbcType="VARCHAR"/>
           <result property="xmmc" column="XMMC" jdbcType="VARCHAR"/>
           <result property="gnkmdm" column="GNKMDM" jdbcType="VARCHAR"/>
           <result property="gnkmmc" column="GNKMMC" jdbcType="VARCHAR"/>
           <result property="jjkmdm" column="JJKMDM" jdbcType="VARCHAR"/>
           <result property="jjkmmc" column="JJKMMC" jdbcType="VARCHAR"/>
           <result property="fz6dm" column="FZ6DM" jdbcType="VARCHAR"/>
           <result property="fz6mc" column="FZ6MC" jdbcType="VARCHAR"/>
           <result property="fz7dm" column="FZ7DM" jdbcType="VARCHAR"/>
           <result property="fz7mc" column="FZ7MC" jdbcType="VARCHAR"/>
           <result property="fz8dm" column="FZ8DM" jdbcType="VARCHAR"/>
           <result property="fz8mc" column="FZ8MC" jdbcType="VARCHAR"/>
           <result property="fz9dm" column="FZ9DM" jdbcType="VARCHAR"/>
           <result property="fz9mc" column="FZ9MC" jdbcType="VARCHAR"/>
           <result property="fzadm" column="FZADM" jdbcType="VARCHAR"/>
           <result property="fzamc" column="FZAMC" jdbcType="VARCHAR"/>
           <result property="fz11dm" column="FZ11DM" jdbcType="VARCHAR"/>
           <result property="fz11mc" column="FZ11MC" jdbcType="VARCHAR"/>
           <result property="fz12dm" column="FZ12DM" jdbcType="VARCHAR"/>
           <result property="fz12mc" column="FZ12MC" jdbcType="VARCHAR"/>
           <result property="fz13dm" column="FZ13DM" jdbcType="VARCHAR"/>
           <result property="fz13mc" column="FZ13MC" jdbcType="VARCHAR"/>
           <result property="fz14dm" column="FZ14DM" jdbcType="VARCHAR"/>
           <result property="fz14mc" column="FZ14MC" jdbcType="VARCHAR"/>
           <result property="fz15dm" column="FZ15DM" jdbcType="VARCHAR"/>
           <result property="fz15mc" column="FZ15MC" jdbcType="VARCHAR"/>
           <result property="fz16dm" column="FZ16DM" jdbcType="VARCHAR"/>
           <result property="fz16mc" column="FZ16MC" jdbcType="VARCHAR"/>
           <result property="fz17dm" column="FZ17DM" jdbcType="VARCHAR"/>
           <result property="fz17mc" column="FZ17MC" jdbcType="VARCHAR"/>
           <result property="fz18dm" column="FZ18DM" jdbcType="VARCHAR"/>
           <result property="fz18mc" column="FZ18MC" jdbcType="VARCHAR"/>
           <result property="fz19dm" column="FZ19DM" jdbcType="VARCHAR"/>
           <result property="fz19mc" column="FZ19MC" jdbcType="VARCHAR"/>
           <result property="fz20dm" column="FZ20DM" jdbcType="VARCHAR"/>
           <result property="fz20mc" column="FZ20MC" jdbcType="VARCHAR"/>
           <result property="fz21dm" column="FZ21DM" jdbcType="VARCHAR"/>
           <result property="fz21mc" column="FZ21MC" jdbcType="VARCHAR"/>
           <result property="fz22dm" column="FZ22DM" jdbcType="VARCHAR"/>
           <result property="fz22mc" column="FZ22MC" jdbcType="VARCHAR"/>
           <result property="fz23dm" column="FZ23DM" jdbcType="VARCHAR"/>
           <result property="fz23mc" column="FZ23MC" jdbcType="VARCHAR"/>
           <result property="fz24dm" column="FZ24DM" jdbcType="VARCHAR"/>
           <result property="fz24mc" column="FZ24MC" jdbcType="VARCHAR"/>
           <result property="fz25dm" column="FZ25DM" jdbcType="VARCHAR"/>
           <result property="fz25mc" column="FZ25MC" jdbcType="VARCHAR"/>
           <result property="fz26dm" column="FZ26DM" jdbcType="VARCHAR"/>
           <result property="fz26mc" column="FZ26MC" jdbcType="VARCHAR"/>
           <result property="fz27dm" column="FZ27DM" jdbcType="VARCHAR"/>
           <result property="fz27mc" column="FZ27MC" jdbcType="VARCHAR"/>
           <result property="fz28dm" column="FZ28DM" jdbcType="VARCHAR"/>
           <result property="fz28mc" column="FZ28MC" jdbcType="VARCHAR"/>
           <result property="fz29dm" column="FZ29DM" jdbcType="VARCHAR"/>
           <result property="fz29mc" column="FZ29MC" jdbcType="VARCHAR"/>
           <result property="fz30dm" column="FZ30DM" jdbcType="VARCHAR"/>
           <result property="fz30mc" column="FZ30MC" jdbcType="VARCHAR"/>
           <result property="zth" column="ZTH" jdbcType="VARCHAR"/>
           <result property="kmdm" column="KMDM" jdbcType="VARCHAR"/>
           <result property="kmmc" column="KMMC" jdbcType="VARCHAR"/>
           <result property="zt" column="ZT" jdbcType="VARCHAR"/>
           <result property="sfzfcg" column="SFZFCG" jdbcType="VARCHAR"/>
           <result property="je" column="JE" jdbcType="NUMERIC"/>
           <result property="ncysy" column="NCYSY" jdbcType="NUMERIC"/>
           <result property="djje" column="DJJE" jdbcType="NUMERIC"/>
           <result property="ye" column="YE" jdbcType="NUMERIC"/>
           <result property="lrrid" column="LRRID" jdbcType="INTEGER"/>
           <result property="lrr" column="LRR" jdbcType="VARCHAR"/>
           <result property="lrrq" column="LRRQ" jdbcType="VARCHAR"/>
           <result property="lrsj" column="LRSJ" jdbcType="VARCHAR"/>
           <result property="shrid" column="SHRID" jdbcType="INTEGER"/>
           <result property="shr" column="SHR" jdbcType="VARCHAR"/>
           <result property="shrq" column="SHRQ" jdbcType="VARCHAR"/>
           <result property="shsj" column="SHSJ" jdbcType="VARCHAR"/>
           <result property="pfrid" column="PFRID" jdbcType="INTEGER"/>
           <result property="pfr" column="PFR" jdbcType="VARCHAR"/>
           <result property="pfrq" column="PFRQ" jdbcType="VARCHAR"/>
           <result property="pfsj" column="PFSJ" jdbcType="VARCHAR"/>
           <result property="curshjd" column="CurSHJD" jdbcType="INTEGER"/>
           <result property="nextshjd" column="NextSHJD" jdbcType="INTEGER"/>
           <result property="flowcode" column="FlowCode" jdbcType="VARCHAR"/>
           <result property="yjbfb" column="YJBFB" jdbcType="NUMERIC"/>
           <result property="cyskzfs" column="CYSKZFS" jdbcType="VARCHAR"/>
           <result property="sfjz" column="SFJZ" jdbcType="VARCHAR"/>
           <result property="module" column="MODULE" jdbcType="VARCHAR"/>
           <result property="bz" column="BZ" jdbcType="VARCHAR"/>
           <result property="idzbbh" column="IDZBBH" jdbcType="VARCHAR"/>
           <result property="xfzt" column="XFZT" jdbcType="VARCHAR"/>
           <result property="sjly" column="SJLY" jdbcType="INTEGER"/>
           <result property="bygkz" column="BYGKZ" jdbcType="VARCHAR"/>
           <result property="ysje" column="YSJE" jdbcType="NUMERIC"/>
           <result property="zcsxdm" column="ZCSXDM" jdbcType="VARCHAR"/>
           <result property="zcsxmc" column="ZCSXMC" jdbcType="VARCHAR"/>
           <result property="yf" column="YF" jdbcType="INTEGER"/>
           <result property="kzzl1dm" column="KZZL1DM" jdbcType="VARCHAR"/>
           <result property="kzzl1mc" column="KZZL1MC" jdbcType="VARCHAR"/>
           <result property="kzzl2dm" column="KZZL2DM" jdbcType="VARCHAR"/>
           <result property="kzzl2mc" column="KZZL2MC" jdbcType="VARCHAR"/>
           <result property="kzzl3dm" column="KZZL3DM" jdbcType="VARCHAR"/>
           <result property="kzzl3mc" column="KZZL3MC" jdbcType="VARCHAR"/>
           <result property="kzzl4dm" column="KZZL4DM" jdbcType="VARCHAR"/>
           <result property="kzzl4mc" column="KZZL4MC" jdbcType="VARCHAR"/>
           <result property="kzzl5dm" column="KZZL5DM" jdbcType="VARCHAR"/>
           <result property="kzzl5mc" column="KZZL5MC" jdbcType="VARCHAR"/>
           <result property="kzzl6dm" column="KZZL6DM" jdbcType="VARCHAR"/>
           <result property="kzzl6mc" column="KZZL6MC" jdbcType="VARCHAR"/>
           <result property="kzzl7dm" column="KZZL7DM" jdbcType="VARCHAR"/>
           <result property="kzzl7mc" column="KZZL7MC" jdbcType="VARCHAR"/>
           <result property="edwzc" column="EDWZC" jdbcType="VARCHAR"/>
        </resultMap>
    <!-- 查询的字段-->
    <sql id = "GbiZbxmbEntity_Base_Column_List">
        ZBID
       ,GSDM 
        ,KJND 
        ,ZBDM 
        ,ZBLB 
        ,SJZBID 
        ,ZY 
        ,YSFADM 
        ,YSFAMC 
        ,JFLXDM 
        ,JFLXMC 
        ,WHDM 
        ,WHMC 
        ,ZBLYDM 
        ,ZBLYMC 
        ,ZJLYDM 
        ,ZJLYMC 
        ,ZJXZDM 
        ,ZJXZMC 
        ,JSFSDM 
        ,JSFSMC 
        ,ZFFSDM 
        ,ZFFSMC 
        ,YSDWDM 
        ,YSDWMC 
        ,BMDM 
        ,BMMC 
        ,ZYDM 
        ,ZYMC 
        ,XMFLDM 
        ,XMFLMC 
        ,XMDM 
        ,XMMC 
        ,GNKMDM 
        ,GNKMMC 
        ,JJKMDM 
        ,JJKMMC 
        ,FZ6DM 
        ,FZ6MC 
        ,FZ7DM 
        ,FZ7MC 
        ,FZ8DM 
        ,FZ8MC 
        ,FZ9DM 
        ,FZ9MC 
        ,FZADM 
        ,FZAMC 
        ,FZ11DM 
        ,FZ11MC 
        ,FZ12DM 
        ,FZ12MC 
        ,FZ13DM 
        ,FZ13MC 
        ,FZ14DM 
        ,FZ14MC 
        ,FZ15DM 
        ,FZ15MC 
        ,FZ16DM 
        ,FZ16MC 
        ,FZ17DM 
        ,FZ17MC 
        ,FZ18DM 
        ,FZ18MC 
        ,FZ19DM 
        ,FZ19MC 
        ,FZ20DM 
        ,FZ20MC 
        ,FZ21DM 
        ,FZ21MC 
        ,FZ22DM 
        ,FZ22MC 
        ,FZ23DM 
        ,FZ23MC 
        ,FZ24DM 
        ,FZ24MC 
        ,FZ25DM 
        ,FZ25MC 
        ,FZ26DM 
        ,FZ26MC 
        ,FZ27DM 
        ,FZ27MC 
        ,FZ28DM 
        ,FZ28MC 
        ,FZ29DM 
        ,FZ29MC 
        ,FZ30DM 
        ,FZ30MC 
        ,ZTH 
        ,KMDM 
        ,KMMC 
        ,ZT 
        ,SFZFCG 
        ,JE 
        ,NCYSY 
        ,DJJE 
        ,YE 
        ,LRRID 
        ,LRR 
        ,LRRQ 
        ,LRSJ 
        ,SHRID 
        ,SHR 
        ,SHRQ 
        ,SHSJ 
        ,PFRID 
        ,PFR 
        ,PFRQ 
        ,PFSJ 
        ,CurSHJD 
        ,NextSHJD 
        ,FlowCode 
        ,YJBFB 
        ,CYSKZFS 
        ,SFJZ 
        ,MODULE 
        ,BZ 
        ,IDZBBH 
        ,XFZT 
        ,SJLY 
        ,BYGKZ 
        ,YSJE 
        ,ZCSXDM 
        ,ZCSXMC 
        ,YF 
        ,KZZL1DM 
        ,KZZL1MC 
        ,KZZL2DM 
        ,KZZL2MC 
        ,KZZL3DM 
        ,KZZL3MC 
        ,KZZL4DM 
        ,KZZL4MC 
        ,KZZL5DM 
        ,KZZL5MC 
        ,KZZL6DM 
        ,KZZL6MC 
        ,KZZL7DM 
        ,KZZL7MC 
        ,EDWZC 
     </sql>
 <!-- 查询 采用==查询 -->
 <select id="entity_list_base" resultMap="get-GbiZbxmbEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity">
    select
    <include refid="GbiZbxmbEntity_Base_Column_List" />
    from gbi_zbxmb
    <trim prefix="where" prefixOverrides="and"> 
        <if test="zbid != null"> and ZBID = #{zbid} </if>
            <if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
            <if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
            <if test="zbdm != null and zbdm != ''"> and ZBDM = #{zbdm} </if>
            <if test="zblb != null and zblb != ''"> and ZBLB = #{zblb} </if>
            <if test="sjzbid != null"> and SJZBID = #{sjzbid} </if>
            <if test="zy != null and zy != ''"> and ZY = #{zy} </if>
            <if test="ysfadm != null and ysfadm != ''"> and YSFADM = #{ysfadm} </if>
            <if test="ysfamc != null and ysfamc != ''"> and YSFAMC = #{ysfamc} </if>
            <if test="jflxdm != null and jflxdm != ''"> and JFLXDM = #{jflxdm} </if>
            <if test="jflxmc != null and jflxmc != ''"> and JFLXMC = #{jflxmc} </if>
            <if test="whdm != null and whdm != ''"> and WHDM = #{whdm} </if>
            <if test="whmc != null and whmc != ''"> and WHMC = #{whmc} </if>
            <if test="zblydm != null and zblydm != ''"> and ZBLYDM = #{zblydm} </if>
            <if test="zblymc != null and zblymc != ''"> and ZBLYMC = #{zblymc} </if>
            <if test="zjlydm != null and zjlydm != ''"> and ZJLYDM = #{zjlydm} </if>
            <if test="zjlymc != null and zjlymc != ''"> and ZJLYMC = #{zjlymc} </if>
            <if test="zjxzdm != null and zjxzdm != ''"> and ZJXZDM = #{zjxzdm} </if>
            <if test="zjxzmc != null and zjxzmc != ''"> and ZJXZMC = #{zjxzmc} </if>
            <if test="jsfsdm != null and jsfsdm != ''"> and JSFSDM = #{jsfsdm} </if>
            <if test="jsfsmc != null and jsfsmc != ''"> and JSFSMC = #{jsfsmc} </if>
            <if test="zffsdm != null and zffsdm != ''"> and ZFFSDM = #{zffsdm} </if>
            <if test="zffsmc != null and zffsmc != ''"> and ZFFSMC = #{zffsmc} </if>
            <if test="ysdwdm != null and ysdwdm != ''"> and YSDWDM = #{ysdwdm} </if>
            <if test="ysdwmc != null and ysdwmc != ''"> and YSDWMC = #{ysdwmc} </if>
            <if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
            <if test="bmmc != null and bmmc != ''"> and BMMC = #{bmmc} </if>
            <if test="zydm != null and zydm != ''"> and ZYDM = #{zydm} </if>
            <if test="zymc != null and zymc != ''"> and ZYMC = #{zymc} </if>
            <if test="xmfldm != null and xmfldm != ''"> and XMFLDM = #{xmfldm} </if>
            <if test="xmflmc != null and xmflmc != ''"> and XMFLMC = #{xmflmc} </if>
            <if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
            <if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
            <if test="gnkmdm != null and gnkmdm != ''"> and GNKMDM = #{gnkmdm} </if>
            <if test="gnkmmc != null and gnkmmc != ''"> and GNKMMC = #{gnkmmc} </if>
            <if test="jjkmdm != null and jjkmdm != ''"> and JJKMDM = #{jjkmdm} </if>
            <if test="jjkmmc != null and jjkmmc != ''"> and JJKMMC = #{jjkmmc} </if>
            <if test="fz6dm != null and fz6dm != ''"> and FZ6DM = #{fz6dm} </if>
            <if test="fz6mc != null and fz6mc != ''"> and FZ6MC = #{fz6mc} </if>
            <if test="fz7dm != null and fz7dm != ''"> and FZ7DM = #{fz7dm} </if>
            <if test="fz7mc != null and fz7mc != ''"> and FZ7MC = #{fz7mc} </if>
            <if test="fz8dm != null and fz8dm != ''"> and FZ8DM = #{fz8dm} </if>
            <if test="fz8mc != null and fz8mc != ''"> and FZ8MC = #{fz8mc} </if>
            <if test="fz9dm != null and fz9dm != ''"> and FZ9DM = #{fz9dm} </if>
            <if test="fz9mc != null and fz9mc != ''"> and FZ9MC = #{fz9mc} </if>
            <if test="fzadm != null and fzadm != ''"> and FZADM = #{fzadm} </if>
            <if test="fzamc != null and fzamc != ''"> and FZAMC = #{fzamc} </if>
            <if test="fz11dm != null and fz11dm != ''"> and FZ11DM = #{fz11dm} </if>
            <if test="fz11mc != null and fz11mc != ''"> and FZ11MC = #{fz11mc} </if>
            <if test="fz12dm != null and fz12dm != ''"> and FZ12DM = #{fz12dm} </if>
            <if test="fz12mc != null and fz12mc != ''"> and FZ12MC = #{fz12mc} </if>
            <if test="fz13dm != null and fz13dm != ''"> and FZ13DM = #{fz13dm} </if>
            <if test="fz13mc != null and fz13mc != ''"> and FZ13MC = #{fz13mc} </if>
            <if test="fz14dm != null and fz14dm != ''"> and FZ14DM = #{fz14dm} </if>
            <if test="fz14mc != null and fz14mc != ''"> and FZ14MC = #{fz14mc} </if>
            <if test="fz15dm != null and fz15dm != ''"> and FZ15DM = #{fz15dm} </if>
            <if test="fz15mc != null and fz15mc != ''"> and FZ15MC = #{fz15mc} </if>
            <if test="fz16dm != null and fz16dm != ''"> and FZ16DM = #{fz16dm} </if>
            <if test="fz16mc != null and fz16mc != ''"> and FZ16MC = #{fz16mc} </if>
            <if test="fz17dm != null and fz17dm != ''"> and FZ17DM = #{fz17dm} </if>
            <if test="fz17mc != null and fz17mc != ''"> and FZ17MC = #{fz17mc} </if>
            <if test="fz18dm != null and fz18dm != ''"> and FZ18DM = #{fz18dm} </if>
            <if test="fz18mc != null and fz18mc != ''"> and FZ18MC = #{fz18mc} </if>
            <if test="fz19dm != null and fz19dm != ''"> and FZ19DM = #{fz19dm} </if>
            <if test="fz19mc != null and fz19mc != ''"> and FZ19MC = #{fz19mc} </if>
            <if test="fz20dm != null and fz20dm != ''"> and FZ20DM = #{fz20dm} </if>
            <if test="fz20mc != null and fz20mc != ''"> and FZ20MC = #{fz20mc} </if>
            <if test="fz21dm != null and fz21dm != ''"> and FZ21DM = #{fz21dm} </if>
            <if test="fz21mc != null and fz21mc != ''"> and FZ21MC = #{fz21mc} </if>
            <if test="fz22dm != null and fz22dm != ''"> and FZ22DM = #{fz22dm} </if>
            <if test="fz22mc != null and fz22mc != ''"> and FZ22MC = #{fz22mc} </if>
            <if test="fz23dm != null and fz23dm != ''"> and FZ23DM = #{fz23dm} </if>
            <if test="fz23mc != null and fz23mc != ''"> and FZ23MC = #{fz23mc} </if>
            <if test="fz24dm != null and fz24dm != ''"> and FZ24DM = #{fz24dm} </if>
            <if test="fz24mc != null and fz24mc != ''"> and FZ24MC = #{fz24mc} </if>
            <if test="fz25dm != null and fz25dm != ''"> and FZ25DM = #{fz25dm} </if>
            <if test="fz25mc != null and fz25mc != ''"> and FZ25MC = #{fz25mc} </if>
            <if test="fz26dm != null and fz26dm != ''"> and FZ26DM = #{fz26dm} </if>
            <if test="fz26mc != null and fz26mc != ''"> and FZ26MC = #{fz26mc} </if>
            <if test="fz27dm != null and fz27dm != ''"> and FZ27DM = #{fz27dm} </if>
            <if test="fz27mc != null and fz27mc != ''"> and FZ27MC = #{fz27mc} </if>
            <if test="fz28dm != null and fz28dm != ''"> and FZ28DM = #{fz28dm} </if>
            <if test="fz28mc != null and fz28mc != ''"> and FZ28MC = #{fz28mc} </if>
            <if test="fz29dm != null and fz29dm != ''"> and FZ29DM = #{fz29dm} </if>
            <if test="fz29mc != null and fz29mc != ''"> and FZ29MC = #{fz29mc} </if>
            <if test="fz30dm != null and fz30dm != ''"> and FZ30DM = #{fz30dm} </if>
            <if test="fz30mc != null and fz30mc != ''"> and FZ30MC = #{fz30mc} </if>
            <if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
            <if test="kmdm != null and kmdm != ''"> and KMDM = #{kmdm} </if>
            <if test="kmmc != null and kmmc != ''"> and KMMC = #{kmmc} </if>
            <if test="zt != null and zt != ''"> and ZT = #{zt} </if>
            <if test="sfzfcg != null and sfzfcg != ''"> and SFZFCG = #{sfzfcg} </if>
            <if test="je != null"> and JE = #{je} </if>
            <if test="ncysy != null"> and NCYSY = #{ncysy} </if>
            <if test="djje != null"> and DJJE = #{djje} </if>
            <if test="ye != null"> and YE = #{ye} </if>
            <if test="lrrid != null"> and LRRID = #{lrrid} </if>
            <if test="lrr != null and lrr != ''"> and LRR = #{lrr} </if>
            <if test="lrrq != null and lrrq != ''"> and LRRQ = #{lrrq} </if>
            <if test="lrsj != null and lrsj != ''"> and LRSJ = #{lrsj} </if>
            <if test="shrid != null"> and SHRID = #{shrid} </if>
            <if test="shr != null and shr != ''"> and SHR = #{shr} </if>
            <if test="shrq != null and shrq != ''"> and SHRQ = #{shrq} </if>
            <if test="shsj != null and shsj != ''"> and SHSJ = #{shsj} </if>
            <if test="pfrid != null"> and PFRID = #{pfrid} </if>
            <if test="pfr != null and pfr != ''"> and PFR = #{pfr} </if>
            <if test="pfrq != null and pfrq != ''"> and PFRQ = #{pfrq} </if>
            <if test="pfsj != null and pfsj != ''"> and PFSJ = #{pfsj} </if>
            <if test="curshjd != null"> and CurSHJD = #{curshjd} </if>
            <if test="nextshjd != null"> and NextSHJD = #{nextshjd} </if>
            <if test="flowcode != null and flowcode != ''"> and FlowCode = #{flowcode} </if>
            <if test="yjbfb != null"> and YJBFB = #{yjbfb} </if>
            <if test="cyskzfs != null and cyskzfs != ''"> and CYSKZFS = #{cyskzfs} </if>
            <if test="sfjz != null and sfjz != ''"> and SFJZ = #{sfjz} </if>
            <if test="module != null and module != ''"> and MODULE = #{module} </if>
            <if test="bz != null and bz != ''"> and BZ = #{bz} </if>
            <if test="idzbbh != null and idzbbh != ''"> and IDZBBH = #{idzbbh} </if>
            <if test="xfzt != null and xfzt != ''"> and XFZT = #{xfzt} </if>
            <if test="sjly != null"> and SJLY = #{sjly} </if>
            <if test="bygkz != null and bygkz != ''"> and BYGKZ = #{bygkz} </if>
            <if test="ysje != null"> and YSJE = #{ysje} </if>
            <if test="zcsxdm != null and zcsxdm != ''"> and ZCSXDM = #{zcsxdm} </if>
            <if test="zcsxmc != null and zcsxmc != ''"> and ZCSXMC = #{zcsxmc} </if>
            <if test="yf != null"> and YF = #{yf} </if>
            <if test="kzzl1dm != null and kzzl1dm != ''"> and KZZL1DM = #{kzzl1dm} </if>
            <if test="kzzl1mc != null and kzzl1mc != ''"> and KZZL1MC = #{kzzl1mc} </if>
            <if test="kzzl2dm != null and kzzl2dm != ''"> and KZZL2DM = #{kzzl2dm} </if>
            <if test="kzzl2mc != null and kzzl2mc != ''"> and KZZL2MC = #{kzzl2mc} </if>
            <if test="kzzl3dm != null and kzzl3dm != ''"> and KZZL3DM = #{kzzl3dm} </if>
            <if test="kzzl3mc != null and kzzl3mc != ''"> and KZZL3MC = #{kzzl3mc} </if>
            <if test="kzzl4dm != null and kzzl4dm != ''"> and KZZL4DM = #{kzzl4dm} </if>
            <if test="kzzl4mc != null and kzzl4mc != ''"> and KZZL4MC = #{kzzl4mc} </if>
            <if test="kzzl5dm != null and kzzl5dm != ''"> and KZZL5DM = #{kzzl5dm} </if>
            <if test="kzzl5mc != null and kzzl5mc != ''"> and KZZL5MC = #{kzzl5mc} </if>
            <if test="kzzl6dm != null and kzzl6dm != ''"> and KZZL6DM = #{kzzl6dm} </if>
            <if test="kzzl6mc != null and kzzl6mc != ''"> and KZZL6MC = #{kzzl6mc} </if>
            <if test="kzzl7dm != null and kzzl7dm != ''"> and KZZL7DM = #{kzzl7dm} </if>
            <if test="kzzl7mc != null and kzzl7mc != ''"> and KZZL7MC = #{kzzl7mc} </if>
            <if test="edwzc != null and edwzc != ''"> and EDWZC = #{edwzc} </if>
    </trim>
</select>
    
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity">
        select  count(1)   from gbi_zbxmb
    <trim prefix="where" prefixOverrides="and"> 
        <if test="zbid != null"> and ZBID = #{zbid} </if>
            <if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
            <if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
            <if test="zbdm != null and zbdm != ''"> and ZBDM = #{zbdm} </if>
            <if test="zblb != null and zblb != ''"> and ZBLB = #{zblb} </if>
            <if test="sjzbid != null"> and SJZBID = #{sjzbid} </if>
            <if test="zy != null and zy != ''"> and ZY = #{zy} </if>
            <if test="ysfadm != null and ysfadm != ''"> and YSFADM = #{ysfadm} </if>
            <if test="ysfamc != null and ysfamc != ''"> and YSFAMC = #{ysfamc} </if>
            <if test="jflxdm != null and jflxdm != ''"> and JFLXDM = #{jflxdm} </if>
            <if test="jflxmc != null and jflxmc != ''"> and JFLXMC = #{jflxmc} </if>
            <if test="whdm != null and whdm != ''"> and WHDM = #{whdm} </if>
            <if test="whmc != null and whmc != ''"> and WHMC = #{whmc} </if>
            <if test="zblydm != null and zblydm != ''"> and ZBLYDM = #{zblydm} </if>
            <if test="zblymc != null and zblymc != ''"> and ZBLYMC = #{zblymc} </if>
            <if test="zjlydm != null and zjlydm != ''"> and ZJLYDM = #{zjlydm} </if>
            <if test="zjlymc != null and zjlymc != ''"> and ZJLYMC = #{zjlymc} </if>
            <if test="zjxzdm != null and zjxzdm != ''"> and ZJXZDM = #{zjxzdm} </if>
            <if test="zjxzmc != null and zjxzmc != ''"> and ZJXZMC = #{zjxzmc} </if>
            <if test="jsfsdm != null and jsfsdm != ''"> and JSFSDM = #{jsfsdm} </if>
            <if test="jsfsmc != null and jsfsmc != ''"> and JSFSMC = #{jsfsmc} </if>
            <if test="zffsdm != null and zffsdm != ''"> and ZFFSDM = #{zffsdm} </if>
            <if test="zffsmc != null and zffsmc != ''"> and ZFFSMC = #{zffsmc} </if>
            <if test="ysdwdm != null and ysdwdm != ''"> and YSDWDM = #{ysdwdm} </if>
            <if test="ysdwmc != null and ysdwmc != ''"> and YSDWMC = #{ysdwmc} </if>
            <if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
            <if test="bmmc != null and bmmc != ''"> and BMMC = #{bmmc} </if>
            <if test="zydm != null and zydm != ''"> and ZYDM = #{zydm} </if>
            <if test="zymc != null and zymc != ''"> and ZYMC = #{zymc} </if>
            <if test="xmfldm != null and xmfldm != ''"> and XMFLDM = #{xmfldm} </if>
            <if test="xmflmc != null and xmflmc != ''"> and XMFLMC = #{xmflmc} </if>
            <if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
            <if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
            <if test="gnkmdm != null and gnkmdm != ''"> and GNKMDM = #{gnkmdm} </if>
            <if test="gnkmmc != null and gnkmmc != ''"> and GNKMMC = #{gnkmmc} </if>
            <if test="jjkmdm != null and jjkmdm != ''"> and JJKMDM = #{jjkmdm} </if>
            <if test="jjkmmc != null and jjkmmc != ''"> and JJKMMC = #{jjkmmc} </if>
            <if test="fz6dm != null and fz6dm != ''"> and FZ6DM = #{fz6dm} </if>
            <if test="fz6mc != null and fz6mc != ''"> and FZ6MC = #{fz6mc} </if>
            <if test="fz7dm != null and fz7dm != ''"> and FZ7DM = #{fz7dm} </if>
            <if test="fz7mc != null and fz7mc != ''"> and FZ7MC = #{fz7mc} </if>
            <if test="fz8dm != null and fz8dm != ''"> and FZ8DM = #{fz8dm} </if>
            <if test="fz8mc != null and fz8mc != ''"> and FZ8MC = #{fz8mc} </if>
            <if test="fz9dm != null and fz9dm != ''"> and FZ9DM = #{fz9dm} </if>
            <if test="fz9mc != null and fz9mc != ''"> and FZ9MC = #{fz9mc} </if>
            <if test="fzadm != null and fzadm != ''"> and FZADM = #{fzadm} </if>
            <if test="fzamc != null and fzamc != ''"> and FZAMC = #{fzamc} </if>
            <if test="fz11dm != null and fz11dm != ''"> and FZ11DM = #{fz11dm} </if>
            <if test="fz11mc != null and fz11mc != ''"> and FZ11MC = #{fz11mc} </if>
            <if test="fz12dm != null and fz12dm != ''"> and FZ12DM = #{fz12dm} </if>
            <if test="fz12mc != null and fz12mc != ''"> and FZ12MC = #{fz12mc} </if>
            <if test="fz13dm != null and fz13dm != ''"> and FZ13DM = #{fz13dm} </if>
            <if test="fz13mc != null and fz13mc != ''"> and FZ13MC = #{fz13mc} </if>
            <if test="fz14dm != null and fz14dm != ''"> and FZ14DM = #{fz14dm} </if>
            <if test="fz14mc != null and fz14mc != ''"> and FZ14MC = #{fz14mc} </if>
            <if test="fz15dm != null and fz15dm != ''"> and FZ15DM = #{fz15dm} </if>
            <if test="fz15mc != null and fz15mc != ''"> and FZ15MC = #{fz15mc} </if>
            <if test="fz16dm != null and fz16dm != ''"> and FZ16DM = #{fz16dm} </if>
            <if test="fz16mc != null and fz16mc != ''"> and FZ16MC = #{fz16mc} </if>
            <if test="fz17dm != null and fz17dm != ''"> and FZ17DM = #{fz17dm} </if>
            <if test="fz17mc != null and fz17mc != ''"> and FZ17MC = #{fz17mc} </if>
            <if test="fz18dm != null and fz18dm != ''"> and FZ18DM = #{fz18dm} </if>
            <if test="fz18mc != null and fz18mc != ''"> and FZ18MC = #{fz18mc} </if>
            <if test="fz19dm != null and fz19dm != ''"> and FZ19DM = #{fz19dm} </if>
            <if test="fz19mc != null and fz19mc != ''"> and FZ19MC = #{fz19mc} </if>
            <if test="fz20dm != null and fz20dm != ''"> and FZ20DM = #{fz20dm} </if>
            <if test="fz20mc != null and fz20mc != ''"> and FZ20MC = #{fz20mc} </if>
            <if test="fz21dm != null and fz21dm != ''"> and FZ21DM = #{fz21dm} </if>
            <if test="fz21mc != null and fz21mc != ''"> and FZ21MC = #{fz21mc} </if>
            <if test="fz22dm != null and fz22dm != ''"> and FZ22DM = #{fz22dm} </if>
            <if test="fz22mc != null and fz22mc != ''"> and FZ22MC = #{fz22mc} </if>
            <if test="fz23dm != null and fz23dm != ''"> and FZ23DM = #{fz23dm} </if>
            <if test="fz23mc != null and fz23mc != ''"> and FZ23MC = #{fz23mc} </if>
            <if test="fz24dm != null and fz24dm != ''"> and FZ24DM = #{fz24dm} </if>
            <if test="fz24mc != null and fz24mc != ''"> and FZ24MC = #{fz24mc} </if>
            <if test="fz25dm != null and fz25dm != ''"> and FZ25DM = #{fz25dm} </if>
            <if test="fz25mc != null and fz25mc != ''"> and FZ25MC = #{fz25mc} </if>
            <if test="fz26dm != null and fz26dm != ''"> and FZ26DM = #{fz26dm} </if>
            <if test="fz26mc != null and fz26mc != ''"> and FZ26MC = #{fz26mc} </if>
            <if test="fz27dm != null and fz27dm != ''"> and FZ27DM = #{fz27dm} </if>
            <if test="fz27mc != null and fz27mc != ''"> and FZ27MC = #{fz27mc} </if>
            <if test="fz28dm != null and fz28dm != ''"> and FZ28DM = #{fz28dm} </if>
            <if test="fz28mc != null and fz28mc != ''"> and FZ28MC = #{fz28mc} </if>
            <if test="fz29dm != null and fz29dm != ''"> and FZ29DM = #{fz29dm} </if>
            <if test="fz29mc != null and fz29mc != ''"> and FZ29MC = #{fz29mc} </if>
            <if test="fz30dm != null and fz30dm != ''"> and FZ30DM = #{fz30dm} </if>
            <if test="fz30mc != null and fz30mc != ''"> and FZ30MC = #{fz30mc} </if>
            <if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
            <if test="kmdm != null and kmdm != ''"> and KMDM = #{kmdm} </if>
            <if test="kmmc != null and kmmc != ''"> and KMMC = #{kmmc} </if>
            <if test="zt != null and zt != ''"> and ZT = #{zt} </if>
            <if test="sfzfcg != null and sfzfcg != ''"> and SFZFCG = #{sfzfcg} </if>
            <if test="je != null"> and JE = #{je} </if>
            <if test="ncysy != null"> and NCYSY = #{ncysy} </if>
            <if test="djje != null"> and DJJE = #{djje} </if>
            <if test="ye != null"> and YE = #{ye} </if>
            <if test="lrrid != null"> and LRRID = #{lrrid} </if>
            <if test="lrr != null and lrr != ''"> and LRR = #{lrr} </if>
            <if test="lrrq != null and lrrq != ''"> and LRRQ = #{lrrq} </if>
            <if test="lrsj != null and lrsj != ''"> and LRSJ = #{lrsj} </if>
            <if test="shrid != null"> and SHRID = #{shrid} </if>
            <if test="shr != null and shr != ''"> and SHR = #{shr} </if>
            <if test="shrq != null and shrq != ''"> and SHRQ = #{shrq} </if>
            <if test="shsj != null and shsj != ''"> and SHSJ = #{shsj} </if>
            <if test="pfrid != null"> and PFRID = #{pfrid} </if>
            <if test="pfr != null and pfr != ''"> and PFR = #{pfr} </if>
            <if test="pfrq != null and pfrq != ''"> and PFRQ = #{pfrq} </if>
            <if test="pfsj != null and pfsj != ''"> and PFSJ = #{pfsj} </if>
            <if test="curshjd != null"> and CurSHJD = #{curshjd} </if>
            <if test="nextshjd != null"> and NextSHJD = #{nextshjd} </if>
            <if test="flowcode != null and flowcode != ''"> and FlowCode = #{flowcode} </if>
            <if test="yjbfb != null"> and YJBFB = #{yjbfb} </if>
            <if test="cyskzfs != null and cyskzfs != ''"> and CYSKZFS = #{cyskzfs} </if>
            <if test="sfjz != null and sfjz != ''"> and SFJZ = #{sfjz} </if>
            <if test="module != null and module != ''"> and MODULE = #{module} </if>
            <if test="bz != null and bz != ''"> and BZ = #{bz} </if>
            <if test="idzbbh != null and idzbbh != ''"> and IDZBBH = #{idzbbh} </if>
            <if test="xfzt != null and xfzt != ''"> and XFZT = #{xfzt} </if>
            <if test="sjly != null"> and SJLY = #{sjly} </if>
            <if test="bygkz != null and bygkz != ''"> and BYGKZ = #{bygkz} </if>
            <if test="ysje != null"> and YSJE = #{ysje} </if>
            <if test="zcsxdm != null and zcsxdm != ''"> and ZCSXDM = #{zcsxdm} </if>
            <if test="zcsxmc != null and zcsxmc != ''"> and ZCSXMC = #{zcsxmc} </if>
            <if test="yf != null"> and YF = #{yf} </if>
            <if test="kzzl1dm != null and kzzl1dm != ''"> and KZZL1DM = #{kzzl1dm} </if>
            <if test="kzzl1mc != null and kzzl1mc != ''"> and KZZL1MC = #{kzzl1mc} </if>
            <if test="kzzl2dm != null and kzzl2dm != ''"> and KZZL2DM = #{kzzl2dm} </if>
            <if test="kzzl2mc != null and kzzl2mc != ''"> and KZZL2MC = #{kzzl2mc} </if>
            <if test="kzzl3dm != null and kzzl3dm != ''"> and KZZL3DM = #{kzzl3dm} </if>
            <if test="kzzl3mc != null and kzzl3mc != ''"> and KZZL3MC = #{kzzl3mc} </if>
            <if test="kzzl4dm != null and kzzl4dm != ''"> and KZZL4DM = #{kzzl4dm} </if>
            <if test="kzzl4mc != null and kzzl4mc != ''"> and KZZL4MC = #{kzzl4mc} </if>
            <if test="kzzl5dm != null and kzzl5dm != ''"> and KZZL5DM = #{kzzl5dm} </if>
            <if test="kzzl5mc != null and kzzl5mc != ''"> and KZZL5MC = #{kzzl5mc} </if>
            <if test="kzzl6dm != null and kzzl6dm != ''"> and KZZL6DM = #{kzzl6dm} </if>
            <if test="kzzl6mc != null and kzzl6mc != ''"> and KZZL6MC = #{kzzl6mc} </if>
            <if test="kzzl7dm != null and kzzl7dm != ''"> and KZZL7DM = #{kzzl7dm} </if>
            <if test="kzzl7mc != null and kzzl7mc != ''"> and KZZL7MC = #{kzzl7mc} </if>
            <if test="edwzc != null and edwzc != ''"> and EDWZC = #{edwzc} </if>
    </trim>
    </select>

    <!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-GbiZbxmbEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity">
    select
    <include refid="GbiZbxmbEntity_Base_Column_List" />
    from gbi_zbxmb
    <trim prefix="where" prefixOverrides="and"> 
        <if test="zbid != null"> and ZBID like concat('%',#{zbid},'%') </if>
            <if test="gsdm != null and gsdm != ''"> and GSDM like concat('%',#{gsdm},'%') </if>
            <if test="kjnd != null and kjnd != ''"> and KJND like concat('%',#{kjnd},'%') </if>
            <if test="zbdm != null and zbdm != ''"> and ZBDM like concat('%',#{zbdm},'%') </if>
            <if test="zblb != null and zblb != ''"> and ZBLB like concat('%',#{zblb},'%') </if>
            <if test="sjzbid != null"> and SJZBID like concat('%',#{sjzbid},'%') </if>
            <if test="zy != null and zy != ''"> and ZY like concat('%',#{zy},'%') </if>
            <if test="ysfadm != null and ysfadm != ''"> and YSFADM like concat('%',#{ysfadm},'%') </if>
            <if test="ysfamc != null and ysfamc != ''"> and YSFAMC like concat('%',#{ysfamc},'%') </if>
            <if test="jflxdm != null and jflxdm != ''"> and JFLXDM like concat('%',#{jflxdm},'%') </if>
            <if test="jflxmc != null and jflxmc != ''"> and JFLXMC like concat('%',#{jflxmc},'%') </if>
            <if test="whdm != null and whdm != ''"> and WHDM like concat('%',#{whdm},'%') </if>
            <if test="whmc != null and whmc != ''"> and WHMC like concat('%',#{whmc},'%') </if>
            <if test="zblydm != null and zblydm != ''"> and ZBLYDM like concat('%',#{zblydm},'%') </if>
            <if test="zblymc != null and zblymc != ''"> and ZBLYMC like concat('%',#{zblymc},'%') </if>
            <if test="zjlydm != null and zjlydm != ''"> and ZJLYDM like concat('%',#{zjlydm},'%') </if>
            <if test="zjlymc != null and zjlymc != ''"> and ZJLYMC like concat('%',#{zjlymc},'%') </if>
            <if test="zjxzdm != null and zjxzdm != ''"> and ZJXZDM like concat('%',#{zjxzdm},'%') </if>
            <if test="zjxzmc != null and zjxzmc != ''"> and ZJXZMC like concat('%',#{zjxzmc},'%') </if>
            <if test="jsfsdm != null and jsfsdm != ''"> and JSFSDM like concat('%',#{jsfsdm},'%') </if>
            <if test="jsfsmc != null and jsfsmc != ''"> and JSFSMC like concat('%',#{jsfsmc},'%') </if>
            <if test="zffsdm != null and zffsdm != ''"> and ZFFSDM like concat('%',#{zffsdm},'%') </if>
            <if test="zffsmc != null and zffsmc != ''"> and ZFFSMC like concat('%',#{zffsmc},'%') </if>
            <if test="ysdwdm != null and ysdwdm != ''"> and YSDWDM like concat('%',#{ysdwdm},'%') </if>
            <if test="ysdwmc != null and ysdwmc != ''"> and YSDWMC like concat('%',#{ysdwmc},'%') </if>
            <if test="bmdm != null and bmdm != ''"> and BMDM like concat('%',#{bmdm},'%') </if>
            <if test="bmmc != null and bmmc != ''"> and BMMC like concat('%',#{bmmc},'%') </if>
            <if test="zydm != null and zydm != ''"> and ZYDM like concat('%',#{zydm},'%') </if>
            <if test="zymc != null and zymc != ''"> and ZYMC like concat('%',#{zymc},'%') </if>
            <if test="xmfldm != null and xmfldm != ''"> and XMFLDM like concat('%',#{xmfldm},'%') </if>
            <if test="xmflmc != null and xmflmc != ''"> and XMFLMC like concat('%',#{xmflmc},'%') </if>
            <if test="xmdm != null and xmdm != ''"> and XMDM like concat('%',#{xmdm},'%') </if>
            <if test="xmmc != null and xmmc != ''"> and XMMC like concat('%',#{xmmc},'%') </if>
            <if test="gnkmdm != null and gnkmdm != ''"> and GNKMDM like concat('%',#{gnkmdm},'%') </if>
            <if test="gnkmmc != null and gnkmmc != ''"> and GNKMMC like concat('%',#{gnkmmc},'%') </if>
            <if test="jjkmdm != null and jjkmdm != ''"> and JJKMDM like concat('%',#{jjkmdm},'%') </if>
            <if test="jjkmmc != null and jjkmmc != ''"> and JJKMMC like concat('%',#{jjkmmc},'%') </if>
            <if test="fz6dm != null and fz6dm != ''"> and FZ6DM like concat('%',#{fz6dm},'%') </if>
            <if test="fz6mc != null and fz6mc != ''"> and FZ6MC like concat('%',#{fz6mc},'%') </if>
            <if test="fz7dm != null and fz7dm != ''"> and FZ7DM like concat('%',#{fz7dm},'%') </if>
            <if test="fz7mc != null and fz7mc != ''"> and FZ7MC like concat('%',#{fz7mc},'%') </if>
            <if test="fz8dm != null and fz8dm != ''"> and FZ8DM like concat('%',#{fz8dm},'%') </if>
            <if test="fz8mc != null and fz8mc != ''"> and FZ8MC like concat('%',#{fz8mc},'%') </if>
            <if test="fz9dm != null and fz9dm != ''"> and FZ9DM like concat('%',#{fz9dm},'%') </if>
            <if test="fz9mc != null and fz9mc != ''"> and FZ9MC like concat('%',#{fz9mc},'%') </if>
            <if test="fzadm != null and fzadm != ''"> and FZADM like concat('%',#{fzadm},'%') </if>
            <if test="fzamc != null and fzamc != ''"> and FZAMC like concat('%',#{fzamc},'%') </if>
            <if test="fz11dm != null and fz11dm != ''"> and FZ11DM like concat('%',#{fz11dm},'%') </if>
            <if test="fz11mc != null and fz11mc != ''"> and FZ11MC like concat('%',#{fz11mc},'%') </if>
            <if test="fz12dm != null and fz12dm != ''"> and FZ12DM like concat('%',#{fz12dm},'%') </if>
            <if test="fz12mc != null and fz12mc != ''"> and FZ12MC like concat('%',#{fz12mc},'%') </if>
            <if test="fz13dm != null and fz13dm != ''"> and FZ13DM like concat('%',#{fz13dm},'%') </if>
            <if test="fz13mc != null and fz13mc != ''"> and FZ13MC like concat('%',#{fz13mc},'%') </if>
            <if test="fz14dm != null and fz14dm != ''"> and FZ14DM like concat('%',#{fz14dm},'%') </if>
            <if test="fz14mc != null and fz14mc != ''"> and FZ14MC like concat('%',#{fz14mc},'%') </if>
            <if test="fz15dm != null and fz15dm != ''"> and FZ15DM like concat('%',#{fz15dm},'%') </if>
            <if test="fz15mc != null and fz15mc != ''"> and FZ15MC like concat('%',#{fz15mc},'%') </if>
            <if test="fz16dm != null and fz16dm != ''"> and FZ16DM like concat('%',#{fz16dm},'%') </if>
            <if test="fz16mc != null and fz16mc != ''"> and FZ16MC like concat('%',#{fz16mc},'%') </if>
            <if test="fz17dm != null and fz17dm != ''"> and FZ17DM like concat('%',#{fz17dm},'%') </if>
            <if test="fz17mc != null and fz17mc != ''"> and FZ17MC like concat('%',#{fz17mc},'%') </if>
            <if test="fz18dm != null and fz18dm != ''"> and FZ18DM like concat('%',#{fz18dm},'%') </if>
            <if test="fz18mc != null and fz18mc != ''"> and FZ18MC like concat('%',#{fz18mc},'%') </if>
            <if test="fz19dm != null and fz19dm != ''"> and FZ19DM like concat('%',#{fz19dm},'%') </if>
            <if test="fz19mc != null and fz19mc != ''"> and FZ19MC like concat('%',#{fz19mc},'%') </if>
            <if test="fz20dm != null and fz20dm != ''"> and FZ20DM like concat('%',#{fz20dm},'%') </if>
            <if test="fz20mc != null and fz20mc != ''"> and FZ20MC like concat('%',#{fz20mc},'%') </if>
            <if test="fz21dm != null and fz21dm != ''"> and FZ21DM like concat('%',#{fz21dm},'%') </if>
            <if test="fz21mc != null and fz21mc != ''"> and FZ21MC like concat('%',#{fz21mc},'%') </if>
            <if test="fz22dm != null and fz22dm != ''"> and FZ22DM like concat('%',#{fz22dm},'%') </if>
            <if test="fz22mc != null and fz22mc != ''"> and FZ22MC like concat('%',#{fz22mc},'%') </if>
            <if test="fz23dm != null and fz23dm != ''"> and FZ23DM like concat('%',#{fz23dm},'%') </if>
            <if test="fz23mc != null and fz23mc != ''"> and FZ23MC like concat('%',#{fz23mc},'%') </if>
            <if test="fz24dm != null and fz24dm != ''"> and FZ24DM like concat('%',#{fz24dm},'%') </if>
            <if test="fz24mc != null and fz24mc != ''"> and FZ24MC like concat('%',#{fz24mc},'%') </if>
            <if test="fz25dm != null and fz25dm != ''"> and FZ25DM like concat('%',#{fz25dm},'%') </if>
            <if test="fz25mc != null and fz25mc != ''"> and FZ25MC like concat('%',#{fz25mc},'%') </if>
            <if test="fz26dm != null and fz26dm != ''"> and FZ26DM like concat('%',#{fz26dm},'%') </if>
            <if test="fz26mc != null and fz26mc != ''"> and FZ26MC like concat('%',#{fz26mc},'%') </if>
            <if test="fz27dm != null and fz27dm != ''"> and FZ27DM like concat('%',#{fz27dm},'%') </if>
            <if test="fz27mc != null and fz27mc != ''"> and FZ27MC like concat('%',#{fz27mc},'%') </if>
            <if test="fz28dm != null and fz28dm != ''"> and FZ28DM like concat('%',#{fz28dm},'%') </if>
            <if test="fz28mc != null and fz28mc != ''"> and FZ28MC like concat('%',#{fz28mc},'%') </if>
            <if test="fz29dm != null and fz29dm != ''"> and FZ29DM like concat('%',#{fz29dm},'%') </if>
            <if test="fz29mc != null and fz29mc != ''"> and FZ29MC like concat('%',#{fz29mc},'%') </if>
            <if test="fz30dm != null and fz30dm != ''"> and FZ30DM like concat('%',#{fz30dm},'%') </if>
            <if test="fz30mc != null and fz30mc != ''"> and FZ30MC like concat('%',#{fz30mc},'%') </if>
            <if test="zth != null and zth != ''"> and ZTH like concat('%',#{zth},'%') </if>
            <if test="kmdm != null and kmdm != ''"> and KMDM like concat('%',#{kmdm},'%') </if>
            <if test="kmmc != null and kmmc != ''"> and KMMC like concat('%',#{kmmc},'%') </if>
            <if test="zt != null and zt != ''"> and ZT like concat('%',#{zt},'%') </if>
            <if test="sfzfcg != null and sfzfcg != ''"> and SFZFCG like concat('%',#{sfzfcg},'%') </if>
            <if test="je != null"> and JE like concat('%',#{je},'%') </if>
            <if test="ncysy != null"> and NCYSY like concat('%',#{ncysy},'%') </if>
            <if test="djje != null"> and DJJE like concat('%',#{djje},'%') </if>
            <if test="ye != null"> and YE like concat('%',#{ye},'%') </if>
            <if test="lrrid != null"> and LRRID like concat('%',#{lrrid},'%') </if>
            <if test="lrr != null and lrr != ''"> and LRR like concat('%',#{lrr},'%') </if>
            <if test="lrrq != null and lrrq != ''"> and LRRQ like concat('%',#{lrrq},'%') </if>
            <if test="lrsj != null and lrsj != ''"> and LRSJ like concat('%',#{lrsj},'%') </if>
            <if test="shrid != null"> and SHRID like concat('%',#{shrid},'%') </if>
            <if test="shr != null and shr != ''"> and SHR like concat('%',#{shr},'%') </if>
            <if test="shrq != null and shrq != ''"> and SHRQ like concat('%',#{shrq},'%') </if>
            <if test="shsj != null and shsj != ''"> and SHSJ like concat('%',#{shsj},'%') </if>
            <if test="pfrid != null"> and PFRID like concat('%',#{pfrid},'%') </if>
            <if test="pfr != null and pfr != ''"> and PFR like concat('%',#{pfr},'%') </if>
            <if test="pfrq != null and pfrq != ''"> and PFRQ like concat('%',#{pfrq},'%') </if>
            <if test="pfsj != null and pfsj != ''"> and PFSJ like concat('%',#{pfsj},'%') </if>
            <if test="curshjd != null"> and CurSHJD like concat('%',#{curshjd},'%') </if>
            <if test="nextshjd != null"> and NextSHJD like concat('%',#{nextshjd},'%') </if>
            <if test="flowcode != null and flowcode != ''"> and FlowCode like concat('%',#{flowcode},'%') </if>
            <if test="yjbfb != null"> and YJBFB like concat('%',#{yjbfb},'%') </if>
            <if test="cyskzfs != null and cyskzfs != ''"> and CYSKZFS like concat('%',#{cyskzfs},'%') </if>
            <if test="sfjz != null and sfjz != ''"> and SFJZ like concat('%',#{sfjz},'%') </if>
            <if test="module != null and module != ''"> and MODULE like concat('%',#{module},'%') </if>
            <if test="bz != null and bz != ''"> and BZ like concat('%',#{bz},'%') </if>
            <if test="idzbbh != null and idzbbh != ''"> and IDZBBH like concat('%',#{idzbbh},'%') </if>
            <if test="xfzt != null and xfzt != ''"> and XFZT like concat('%',#{xfzt},'%') </if>
            <if test="sjly != null"> and SJLY like concat('%',#{sjly},'%') </if>
            <if test="bygkz != null and bygkz != ''"> and BYGKZ like concat('%',#{bygkz},'%') </if>
            <if test="ysje != null"> and YSJE like concat('%',#{ysje},'%') </if>
            <if test="zcsxdm != null and zcsxdm != ''"> and ZCSXDM like concat('%',#{zcsxdm},'%') </if>
            <if test="zcsxmc != null and zcsxmc != ''"> and ZCSXMC like concat('%',#{zcsxmc},'%') </if>
            <if test="yf != null"> and YF like concat('%',#{yf},'%') </if>
            <if test="kzzl1dm != null and kzzl1dm != ''"> and KZZL1DM like concat('%',#{kzzl1dm},'%') </if>
            <if test="kzzl1mc != null and kzzl1mc != ''"> and KZZL1MC like concat('%',#{kzzl1mc},'%') </if>
            <if test="kzzl2dm != null and kzzl2dm != ''"> and KZZL2DM like concat('%',#{kzzl2dm},'%') </if>
            <if test="kzzl2mc != null and kzzl2mc != ''"> and KZZL2MC like concat('%',#{kzzl2mc},'%') </if>
            <if test="kzzl3dm != null and kzzl3dm != ''"> and KZZL3DM like concat('%',#{kzzl3dm},'%') </if>
            <if test="kzzl3mc != null and kzzl3mc != ''"> and KZZL3MC like concat('%',#{kzzl3mc},'%') </if>
            <if test="kzzl4dm != null and kzzl4dm != ''"> and KZZL4DM like concat('%',#{kzzl4dm},'%') </if>
            <if test="kzzl4mc != null and kzzl4mc != ''"> and KZZL4MC like concat('%',#{kzzl4mc},'%') </if>
            <if test="kzzl5dm != null and kzzl5dm != ''"> and KZZL5DM like concat('%',#{kzzl5dm},'%') </if>
            <if test="kzzl5mc != null and kzzl5mc != ''"> and KZZL5MC like concat('%',#{kzzl5mc},'%') </if>
            <if test="kzzl6dm != null and kzzl6dm != ''"> and KZZL6DM like concat('%',#{kzzl6dm},'%') </if>
            <if test="kzzl6mc != null and kzzl6mc != ''"> and KZZL6MC like concat('%',#{kzzl6mc},'%') </if>
            <if test="kzzl7dm != null and kzzl7dm != ''"> and KZZL7DM like concat('%',#{kzzl7dm},'%') </if>
            <if test="kzzl7mc != null and kzzl7mc != ''"> and KZZL7MC like concat('%',#{kzzl7mc},'%') </if>
            <if test="edwzc != null and edwzc != ''"> and EDWZC like concat('%',#{edwzc},'%') </if>
    </trim>
</select>

<!-- 查询列表 字段采用or格式 -->
<select id="GbiZbxmbentity_list_or" resultMap="get-GbiZbxmbEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity">
    select
    <include refid="GbiZbxmbEntity_Base_Column_List" />
    from gbi_zbxmb
    <trim prefix="where" prefixOverrides="and"> 
         <if test="zbid != null"> or ZBID = #{zbid} </if>
             <if test="gsdm != null and gsdm != ''"> or GSDM = #{gsdm} </if>
             <if test="kjnd != null and kjnd != ''"> or KJND = #{kjnd} </if>
             <if test="zbdm != null and zbdm != ''"> or ZBDM = #{zbdm} </if>
             <if test="zblb != null and zblb != ''"> or ZBLB = #{zblb} </if>
             <if test="sjzbid != null"> or SJZBID = #{sjzbid} </if>
             <if test="zy != null and zy != ''"> or ZY = #{zy} </if>
             <if test="ysfadm != null and ysfadm != ''"> or YSFADM = #{ysfadm} </if>
             <if test="ysfamc != null and ysfamc != ''"> or YSFAMC = #{ysfamc} </if>
             <if test="jflxdm != null and jflxdm != ''"> or JFLXDM = #{jflxdm} </if>
             <if test="jflxmc != null and jflxmc != ''"> or JFLXMC = #{jflxmc} </if>
             <if test="whdm != null and whdm != ''"> or WHDM = #{whdm} </if>
             <if test="whmc != null and whmc != ''"> or WHMC = #{whmc} </if>
             <if test="zblydm != null and zblydm != ''"> or ZBLYDM = #{zblydm} </if>
             <if test="zblymc != null and zblymc != ''"> or ZBLYMC = #{zblymc} </if>
             <if test="zjlydm != null and zjlydm != ''"> or ZJLYDM = #{zjlydm} </if>
             <if test="zjlymc != null and zjlymc != ''"> or ZJLYMC = #{zjlymc} </if>
             <if test="zjxzdm != null and zjxzdm != ''"> or ZJXZDM = #{zjxzdm} </if>
             <if test="zjxzmc != null and zjxzmc != ''"> or ZJXZMC = #{zjxzmc} </if>
             <if test="jsfsdm != null and jsfsdm != ''"> or JSFSDM = #{jsfsdm} </if>
             <if test="jsfsmc != null and jsfsmc != ''"> or JSFSMC = #{jsfsmc} </if>
             <if test="zffsdm != null and zffsdm != ''"> or ZFFSDM = #{zffsdm} </if>
             <if test="zffsmc != null and zffsmc != ''"> or ZFFSMC = #{zffsmc} </if>
             <if test="ysdwdm != null and ysdwdm != ''"> or YSDWDM = #{ysdwdm} </if>
             <if test="ysdwmc != null and ysdwmc != ''"> or YSDWMC = #{ysdwmc} </if>
             <if test="bmdm != null and bmdm != ''"> or BMDM = #{bmdm} </if>
             <if test="bmmc != null and bmmc != ''"> or BMMC = #{bmmc} </if>
             <if test="zydm != null and zydm != ''"> or ZYDM = #{zydm} </if>
             <if test="zymc != null and zymc != ''"> or ZYMC = #{zymc} </if>
             <if test="xmfldm != null and xmfldm != ''"> or XMFLDM = #{xmfldm} </if>
             <if test="xmflmc != null and xmflmc != ''"> or XMFLMC = #{xmflmc} </if>
             <if test="xmdm != null and xmdm != ''"> or XMDM = #{xmdm} </if>
             <if test="xmmc != null and xmmc != ''"> or XMMC = #{xmmc} </if>
             <if test="gnkmdm != null and gnkmdm != ''"> or GNKMDM = #{gnkmdm} </if>
             <if test="gnkmmc != null and gnkmmc != ''"> or GNKMMC = #{gnkmmc} </if>
             <if test="jjkmdm != null and jjkmdm != ''"> or JJKMDM = #{jjkmdm} </if>
             <if test="jjkmmc != null and jjkmmc != ''"> or JJKMMC = #{jjkmmc} </if>
             <if test="fz6dm != null and fz6dm != ''"> or FZ6DM = #{fz6dm} </if>
             <if test="fz6mc != null and fz6mc != ''"> or FZ6MC = #{fz6mc} </if>
             <if test="fz7dm != null and fz7dm != ''"> or FZ7DM = #{fz7dm} </if>
             <if test="fz7mc != null and fz7mc != ''"> or FZ7MC = #{fz7mc} </if>
             <if test="fz8dm != null and fz8dm != ''"> or FZ8DM = #{fz8dm} </if>
             <if test="fz8mc != null and fz8mc != ''"> or FZ8MC = #{fz8mc} </if>
             <if test="fz9dm != null and fz9dm != ''"> or FZ9DM = #{fz9dm} </if>
             <if test="fz9mc != null and fz9mc != ''"> or FZ9MC = #{fz9mc} </if>
             <if test="fzadm != null and fzadm != ''"> or FZADM = #{fzadm} </if>
             <if test="fzamc != null and fzamc != ''"> or FZAMC = #{fzamc} </if>
             <if test="fz11dm != null and fz11dm != ''"> or FZ11DM = #{fz11dm} </if>
             <if test="fz11mc != null and fz11mc != ''"> or FZ11MC = #{fz11mc} </if>
             <if test="fz12dm != null and fz12dm != ''"> or FZ12DM = #{fz12dm} </if>
             <if test="fz12mc != null and fz12mc != ''"> or FZ12MC = #{fz12mc} </if>
             <if test="fz13dm != null and fz13dm != ''"> or FZ13DM = #{fz13dm} </if>
             <if test="fz13mc != null and fz13mc != ''"> or FZ13MC = #{fz13mc} </if>
             <if test="fz14dm != null and fz14dm != ''"> or FZ14DM = #{fz14dm} </if>
             <if test="fz14mc != null and fz14mc != ''"> or FZ14MC = #{fz14mc} </if>
             <if test="fz15dm != null and fz15dm != ''"> or FZ15DM = #{fz15dm} </if>
             <if test="fz15mc != null and fz15mc != ''"> or FZ15MC = #{fz15mc} </if>
             <if test="fz16dm != null and fz16dm != ''"> or FZ16DM = #{fz16dm} </if>
             <if test="fz16mc != null and fz16mc != ''"> or FZ16MC = #{fz16mc} </if>
             <if test="fz17dm != null and fz17dm != ''"> or FZ17DM = #{fz17dm} </if>
             <if test="fz17mc != null and fz17mc != ''"> or FZ17MC = #{fz17mc} </if>
             <if test="fz18dm != null and fz18dm != ''"> or FZ18DM = #{fz18dm} </if>
             <if test="fz18mc != null and fz18mc != ''"> or FZ18MC = #{fz18mc} </if>
             <if test="fz19dm != null and fz19dm != ''"> or FZ19DM = #{fz19dm} </if>
             <if test="fz19mc != null and fz19mc != ''"> or FZ19MC = #{fz19mc} </if>
             <if test="fz20dm != null and fz20dm != ''"> or FZ20DM = #{fz20dm} </if>
             <if test="fz20mc != null and fz20mc != ''"> or FZ20MC = #{fz20mc} </if>
             <if test="fz21dm != null and fz21dm != ''"> or FZ21DM = #{fz21dm} </if>
             <if test="fz21mc != null and fz21mc != ''"> or FZ21MC = #{fz21mc} </if>
             <if test="fz22dm != null and fz22dm != ''"> or FZ22DM = #{fz22dm} </if>
             <if test="fz22mc != null and fz22mc != ''"> or FZ22MC = #{fz22mc} </if>
             <if test="fz23dm != null and fz23dm != ''"> or FZ23DM = #{fz23dm} </if>
             <if test="fz23mc != null and fz23mc != ''"> or FZ23MC = #{fz23mc} </if>
             <if test="fz24dm != null and fz24dm != ''"> or FZ24DM = #{fz24dm} </if>
             <if test="fz24mc != null and fz24mc != ''"> or FZ24MC = #{fz24mc} </if>
             <if test="fz25dm != null and fz25dm != ''"> or FZ25DM = #{fz25dm} </if>
             <if test="fz25mc != null and fz25mc != ''"> or FZ25MC = #{fz25mc} </if>
             <if test="fz26dm != null and fz26dm != ''"> or FZ26DM = #{fz26dm} </if>
             <if test="fz26mc != null and fz26mc != ''"> or FZ26MC = #{fz26mc} </if>
             <if test="fz27dm != null and fz27dm != ''"> or FZ27DM = #{fz27dm} </if>
             <if test="fz27mc != null and fz27mc != ''"> or FZ27MC = #{fz27mc} </if>
             <if test="fz28dm != null and fz28dm != ''"> or FZ28DM = #{fz28dm} </if>
             <if test="fz28mc != null and fz28mc != ''"> or FZ28MC = #{fz28mc} </if>
             <if test="fz29dm != null and fz29dm != ''"> or FZ29DM = #{fz29dm} </if>
             <if test="fz29mc != null and fz29mc != ''"> or FZ29MC = #{fz29mc} </if>
             <if test="fz30dm != null and fz30dm != ''"> or FZ30DM = #{fz30dm} </if>
             <if test="fz30mc != null and fz30mc != ''"> or FZ30MC = #{fz30mc} </if>
             <if test="zth != null and zth != ''"> or ZTH = #{zth} </if>
             <if test="kmdm != null and kmdm != ''"> or KMDM = #{kmdm} </if>
             <if test="kmmc != null and kmmc != ''"> or KMMC = #{kmmc} </if>
             <if test="zt != null and zt != ''"> or ZT = #{zt} </if>
             <if test="sfzfcg != null and sfzfcg != ''"> or SFZFCG = #{sfzfcg} </if>
             <if test="je != null"> or JE = #{je} </if>
             <if test="ncysy != null"> or NCYSY = #{ncysy} </if>
             <if test="djje != null"> or DJJE = #{djje} </if>
             <if test="ye != null"> or YE = #{ye} </if>
             <if test="lrrid != null"> or LRRID = #{lrrid} </if>
             <if test="lrr != null and lrr != ''"> or LRR = #{lrr} </if>
             <if test="lrrq != null and lrrq != ''"> or LRRQ = #{lrrq} </if>
             <if test="lrsj != null and lrsj != ''"> or LRSJ = #{lrsj} </if>
             <if test="shrid != null"> or SHRID = #{shrid} </if>
             <if test="shr != null and shr != ''"> or SHR = #{shr} </if>
             <if test="shrq != null and shrq != ''"> or SHRQ = #{shrq} </if>
             <if test="shsj != null and shsj != ''"> or SHSJ = #{shsj} </if>
             <if test="pfrid != null"> or PFRID = #{pfrid} </if>
             <if test="pfr != null and pfr != ''"> or PFR = #{pfr} </if>
             <if test="pfrq != null and pfrq != ''"> or PFRQ = #{pfrq} </if>
             <if test="pfsj != null and pfsj != ''"> or PFSJ = #{pfsj} </if>
             <if test="curshjd != null"> or CurSHJD = #{curshjd} </if>
             <if test="nextshjd != null"> or NextSHJD = #{nextshjd} </if>
             <if test="flowcode != null and flowcode != ''"> or FlowCode = #{flowcode} </if>
             <if test="yjbfb != null"> or YJBFB = #{yjbfb} </if>
             <if test="cyskzfs != null and cyskzfs != ''"> or CYSKZFS = #{cyskzfs} </if>
             <if test="sfjz != null and sfjz != ''"> or SFJZ = #{sfjz} </if>
             <if test="module != null and module != ''"> or MODULE = #{module} </if>
             <if test="bz != null and bz != ''"> or BZ = #{bz} </if>
             <if test="idzbbh != null and idzbbh != ''"> or IDZBBH = #{idzbbh} </if>
             <if test="xfzt != null and xfzt != ''"> or XFZT = #{xfzt} </if>
             <if test="sjly != null"> or SJLY = #{sjly} </if>
             <if test="bygkz != null and bygkz != ''"> or BYGKZ = #{bygkz} </if>
             <if test="ysje != null"> or YSJE = #{ysje} </if>
             <if test="zcsxdm != null and zcsxdm != ''"> or ZCSXDM = #{zcsxdm} </if>
             <if test="zcsxmc != null and zcsxmc != ''"> or ZCSXMC = #{zcsxmc} </if>
             <if test="yf != null"> or YF = #{yf} </if>
             <if test="kzzl1dm != null and kzzl1dm != ''"> or KZZL1DM = #{kzzl1dm} </if>
             <if test="kzzl1mc != null and kzzl1mc != ''"> or KZZL1MC = #{kzzl1mc} </if>
             <if test="kzzl2dm != null and kzzl2dm != ''"> or KZZL2DM = #{kzzl2dm} </if>
             <if test="kzzl2mc != null and kzzl2mc != ''"> or KZZL2MC = #{kzzl2mc} </if>
             <if test="kzzl3dm != null and kzzl3dm != ''"> or KZZL3DM = #{kzzl3dm} </if>
             <if test="kzzl3mc != null and kzzl3mc != ''"> or KZZL3MC = #{kzzl3mc} </if>
             <if test="kzzl4dm != null and kzzl4dm != ''"> or KZZL4DM = #{kzzl4dm} </if>
             <if test="kzzl4mc != null and kzzl4mc != ''"> or KZZL4MC = #{kzzl4mc} </if>
             <if test="kzzl5dm != null and kzzl5dm != ''"> or KZZL5DM = #{kzzl5dm} </if>
             <if test="kzzl5mc != null and kzzl5mc != ''"> or KZZL5MC = #{kzzl5mc} </if>
             <if test="kzzl6dm != null and kzzl6dm != ''"> or KZZL6DM = #{kzzl6dm} </if>
             <if test="kzzl6mc != null and kzzl6mc != ''"> or KZZL6MC = #{kzzl6mc} </if>
             <if test="kzzl7dm != null and kzzl7dm != ''"> or KZZL7DM = #{kzzl7dm} </if>
             <if test="kzzl7mc != null and kzzl7mc != ''"> or KZZL7MC = #{kzzl7mc} </if>
             <if test="edwzc != null and edwzc != ''"> or EDWZC = #{edwzc} </if>
    </trim>
</select>

    <!--指标id最大值+1-->
    <select id="queryZbidAndZbdm" resultMap="get-GbiZbxmbEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity">
        SELECT
            (
                isnull(MAX(CAST(ZBID AS bigint)), 0) + 1 + 0
                ) AS zbid,
            FORMAT((isnull(max(cast(ZBID as bigint)), 0)+1+0), '00000000') as zbdm
        FROM
            GBI_ZBXMB
        WHERE
            1 = 1
          and gsdm=#{gsdm} and kjnd=#{kjnd} and zblb=#{zblb}
    </select>

    <!--根据凭证idpzh查询指标id和指标金额-->
    <select id="queryZbxmbByIdpzh" resultMap="get-GbiZbxmbEntity-result" parameterType="com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity">
        select
            zbxmb.zbid ,zbxmb.je ,zbxmb.jjkmdm
        from GBI_ZBXMB zbxmb
                 left join GBI_ZBSYREC zbsyrec on zbxmb.zbid=zbsyrec.jhid and zbsyrec.gsdm=zbxmb.gsdm
        where zbsyrec.kjnd=#{kjnd} and zbxmb.kjnd=#{kjnd}
          and zbsyrec.djId=#{djId}
        group by zbxmb.zbid,zbxmb.je,zbxmb.jjkmdm
    </select>

<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity" keyProperty="zbid" useGeneratedKeys="true">
    insert into gbi_zbxmb(
  <trim suffix="" suffixOverrides=",">
       <if test="zbid != null"> ZBID , </if>
            <if test="gsdm != null and gsdm != ''"> GSDM , </if>
            <if test="kjnd != null and kjnd != ''"> KJND , </if>
            <if test="zbdm != null and zbdm != ''"> ZBDM , </if>
            <if test="zblb != null and zblb != ''"> ZBLB , </if>
            <if test="sjzbid != null"> SJZBID , </if>
            <if test="zy != null and zy != ''"> ZY , </if>
            <if test="ysfadm != null and ysfadm != ''"> YSFADM , </if>
            <if test="ysfamc != null and ysfamc != ''"> YSFAMC , </if>
            <if test="jflxdm != null and jflxdm != ''"> JFLXDM , </if>
            <if test="jflxmc != null and jflxmc != ''"> JFLXMC , </if>
            <if test="whdm != null and whdm != ''"> WHDM , </if>
            <if test="whmc != null and whmc != ''"> WHMC , </if>
            <if test="zblydm != null and zblydm != ''"> ZBLYDM , </if>
            <if test="zblymc != null and zblymc != ''"> ZBLYMC , </if>
            <if test="zjlydm != null and zjlydm != ''"> ZJLYDM , </if>
            <if test="zjlymc != null and zjlymc != ''"> ZJLYMC , </if>
            <if test="zjxzdm != null and zjxzdm != ''"> ZJXZDM , </if>
            <if test="zjxzmc != null and zjxzmc != ''"> ZJXZMC , </if>
            <if test="jsfsdm != null and jsfsdm != ''"> JSFSDM , </if>
            <if test="jsfsmc != null and jsfsmc != ''"> JSFSMC , </if>
            <if test="zffsdm != null and zffsdm != ''"> ZFFSDM , </if>
            <if test="zffsmc != null and zffsmc != ''"> ZFFSMC , </if>
            <if test="ysdwdm != null and ysdwdm != ''"> YSDWDM , </if>
            <if test="ysdwmc != null and ysdwmc != ''"> YSDWMC , </if>
            <if test="bmdm != null and bmdm != ''"> BMDM , </if>
            <if test="bmmc != null and bmmc != ''"> BMMC , </if>
            <if test="zydm != null and zydm != ''"> ZYDM , </if>
            <if test="zymc != null and zymc != ''"> ZYMC , </if>
            <if test="xmfldm != null and xmfldm != ''"> XMFLDM , </if>
            <if test="xmflmc != null and xmflmc != ''"> XMFLMC , </if>
            <if test="xmdm != null and xmdm != ''"> XMDM , </if>
            <if test="xmmc != null and xmmc != ''"> XMMC , </if>
            <if test="gnkmdm != null and gnkmdm != ''"> GNKMDM , </if>
            <if test="gnkmmc != null and gnkmmc != ''"> GNKMMC , </if>
            <if test="jjkmdm != null and jjkmdm != ''"> JJKMDM , </if>
            <if test="jjkmmc != null and jjkmmc != ''"> JJKMMC , </if>
            <if test="fz6dm != null and fz6dm != ''"> FZ6DM , </if>
            <if test="fz6mc != null and fz6mc != ''"> FZ6MC , </if>
            <if test="fz7dm != null and fz7dm != ''"> FZ7DM , </if>
            <if test="fz7mc != null and fz7mc != ''"> FZ7MC , </if>
            <if test="fz8dm != null and fz8dm != ''"> FZ8DM , </if>
            <if test="fz8mc != null and fz8mc != ''"> FZ8MC , </if>
            <if test="fz9dm != null and fz9dm != ''"> FZ9DM , </if>
            <if test="fz9mc != null and fz9mc != ''"> FZ9MC , </if>
            <if test="fzadm != null and fzadm != ''"> FZADM , </if>
            <if test="fzamc != null and fzamc != ''"> FZAMC , </if>
            <if test="fz11dm != null and fz11dm != ''"> FZ11DM , </if>
            <if test="fz11mc != null and fz11mc != ''"> FZ11MC , </if>
            <if test="fz12dm != null and fz12dm != ''"> FZ12DM , </if>
            <if test="fz12mc != null and fz12mc != ''"> FZ12MC , </if>
            <if test="fz13dm != null and fz13dm != ''"> FZ13DM , </if>
            <if test="fz13mc != null and fz13mc != ''"> FZ13MC , </if>
            <if test="fz14dm != null and fz14dm != ''"> FZ14DM , </if>
            <if test="fz14mc != null and fz14mc != ''"> FZ14MC , </if>
            <if test="fz15dm != null and fz15dm != ''"> FZ15DM , </if>
            <if test="fz15mc != null and fz15mc != ''"> FZ15MC , </if>
            <if test="fz16dm != null and fz16dm != ''"> FZ16DM , </if>
            <if test="fz16mc != null and fz16mc != ''"> FZ16MC , </if>
            <if test="fz17dm != null and fz17dm != ''"> FZ17DM , </if>
            <if test="fz17mc != null and fz17mc != ''"> FZ17MC , </if>
            <if test="fz18dm != null and fz18dm != ''"> FZ18DM , </if>
            <if test="fz18mc != null and fz18mc != ''"> FZ18MC , </if>
            <if test="fz19dm != null and fz19dm != ''"> FZ19DM , </if>
            <if test="fz19mc != null and fz19mc != ''"> FZ19MC , </if>
            <if test="fz20dm != null and fz20dm != ''"> FZ20DM , </if>
            <if test="fz20mc != null and fz20mc != ''"> FZ20MC , </if>
            <if test="fz21dm != null and fz21dm != ''"> FZ21DM , </if>
            <if test="fz21mc != null and fz21mc != ''"> FZ21MC , </if>
            <if test="fz22dm != null and fz22dm != ''"> FZ22DM , </if>
            <if test="fz22mc != null and fz22mc != ''"> FZ22MC , </if>
            <if test="fz23dm != null and fz23dm != ''"> FZ23DM , </if>
            <if test="fz23mc != null and fz23mc != ''"> FZ23MC , </if>
            <if test="fz24dm != null and fz24dm != ''"> FZ24DM , </if>
            <if test="fz24mc != null and fz24mc != ''"> FZ24MC , </if>
            <if test="fz25dm != null and fz25dm != ''"> FZ25DM , </if>
            <if test="fz25mc != null and fz25mc != ''"> FZ25MC , </if>
            <if test="fz26dm != null and fz26dm != ''"> FZ26DM , </if>
            <if test="fz26mc != null and fz26mc != ''"> FZ26MC , </if>
            <if test="fz27dm != null and fz27dm != ''"> FZ27DM , </if>
            <if test="fz27mc != null and fz27mc != ''"> FZ27MC , </if>
            <if test="fz28dm != null and fz28dm != ''"> FZ28DM , </if>
            <if test="fz28mc != null and fz28mc != ''"> FZ28MC , </if>
            <if test="fz29dm != null and fz29dm != ''"> FZ29DM , </if>
            <if test="fz29mc != null and fz29mc != ''"> FZ29MC , </if>
            <if test="fz30dm != null and fz30dm != ''"> FZ30DM , </if>
            <if test="fz30mc != null and fz30mc != ''"> FZ30MC , </if>
            <if test="zth != null and zth != ''"> ZTH , </if>
            <if test="kmdm != null and kmdm != ''"> KMDM , </if>
            <if test="kmmc != null and kmmc != ''"> KMMC , </if>
            <if test="zt != null and zt != ''"> ZT , </if>
            <if test="sfzfcg != null and sfzfcg != ''"> SFZFCG , </if>
            <if test="je != null"> JE , </if>
            <if test="ncysy != null"> NCYSY , </if>
            <if test="djje != null"> DJJE , </if>
            <if test="ye != null"> YE , </if>
            <if test="lrrid != null"> LRRID , </if>
            <if test="lrr != null and lrr != ''"> LRR , </if>
            <if test="lrrq != null and lrrq != ''"> LRRQ , </if>
            <if test="lrsj != null and lrsj != ''"> LRSJ , </if>
            <if test="shrid != null"> SHRID , </if>
            <if test="shr != null and shr != ''"> SHR , </if>
            <if test="shrq != null and shrq != ''"> SHRQ , </if>
            <if test="shsj != null and shsj != ''"> SHSJ , </if>
            <if test="pfrid != null"> PFRID , </if>
            <if test="pfr != null and pfr != ''"> PFR , </if>
            <if test="pfrq != null and pfrq != ''"> PFRQ , </if>
            <if test="pfsj != null and pfsj != ''"> PFSJ , </if>
            <if test="curshjd != null"> CurSHJD , </if>
            <if test="nextshjd != null"> NextSHJD , </if>
            <if test="flowcode != null and flowcode != ''"> FlowCode , </if>
            <if test="yjbfb != null"> YJBFB , </if>
            <if test="cyskzfs != null and cyskzfs != ''"> CYSKZFS , </if>
            <if test="sfjz != null and sfjz != ''"> SFJZ , </if>
            <if test="module != null and module != ''"> MODULE , </if>
            <if test="bz != null and bz != ''"> BZ , </if>
            <if test="idzbbh != null and idzbbh != ''"> IDZBBH , </if>
            <if test="xfzt != null and xfzt != ''"> XFZT , </if>
            <if test="sjly != null"> SJLY , </if>
            <if test="bygkz != null and bygkz != ''"> BYGKZ , </if>
            <if test="ysje != null"> YSJE , </if>
            <if test="zcsxdm != null and zcsxdm != ''"> ZCSXDM , </if>
            <if test="zcsxmc != null and zcsxmc != ''"> ZCSXMC , </if>
            <if test="yf != null"> YF , </if>
            <if test="kzzl1dm != null and kzzl1dm != ''"> KZZL1DM , </if>
            <if test="kzzl1mc != null and kzzl1mc != ''"> KZZL1MC , </if>
            <if test="kzzl2dm != null and kzzl2dm != ''"> KZZL2DM , </if>
            <if test="kzzl2mc != null and kzzl2mc != ''"> KZZL2MC , </if>
            <if test="kzzl3dm != null and kzzl3dm != ''"> KZZL3DM , </if>
            <if test="kzzl3mc != null and kzzl3mc != ''"> KZZL3MC , </if>
            <if test="kzzl4dm != null and kzzl4dm != ''"> KZZL4DM , </if>
            <if test="kzzl4mc != null and kzzl4mc != ''"> KZZL4MC , </if>
            <if test="kzzl5dm != null and kzzl5dm != ''"> KZZL5DM , </if>
            <if test="kzzl5mc != null and kzzl5mc != ''"> KZZL5MC , </if>
            <if test="kzzl6dm != null and kzzl6dm != ''"> KZZL6DM , </if>
            <if test="kzzl6mc != null and kzzl6mc != ''"> KZZL6MC , </if>
            <if test="kzzl7dm != null and kzzl7dm != ''"> KZZL7DM , </if>
            <if test="kzzl7mc != null and kzzl7mc != ''"> KZZL7MC , </if>
            <if test="edwzc != null and edwzc != ''"> EDWZC , </if>
  </trim>
  )values(
 <trim suffix="" suffixOverrides=",">
       <if test="zbid != null"> #{zbid} ,</if>
            <if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
            <if test="kjnd != null and kjnd != ''"> #{kjnd} ,</if>
            <if test="zbdm != null and zbdm != ''"> #{zbdm} ,</if>
            <if test="zblb != null and zblb != ''"> #{zblb} ,</if>
            <if test="sjzbid != null"> #{sjzbid} ,</if>
            <if test="zy != null and zy != ''"> #{zy} ,</if>
            <if test="ysfadm != null and ysfadm != ''"> #{ysfadm} ,</if>
            <if test="ysfamc != null and ysfamc != ''"> #{ysfamc} ,</if>
            <if test="jflxdm != null and jflxdm != ''"> #{jflxdm} ,</if>
            <if test="jflxmc != null and jflxmc != ''"> #{jflxmc} ,</if>
            <if test="whdm != null and whdm != ''"> #{whdm} ,</if>
            <if test="whmc != null and whmc != ''"> #{whmc} ,</if>
            <if test="zblydm != null and zblydm != ''"> #{zblydm} ,</if>
            <if test="zblymc != null and zblymc != ''"> #{zblymc} ,</if>
            <if test="zjlydm != null and zjlydm != ''"> #{zjlydm} ,</if>
            <if test="zjlymc != null and zjlymc != ''"> #{zjlymc} ,</if>
            <if test="zjxzdm != null and zjxzdm != ''"> #{zjxzdm} ,</if>
            <if test="zjxzmc != null and zjxzmc != ''"> #{zjxzmc} ,</if>
            <if test="jsfsdm != null and jsfsdm != ''"> #{jsfsdm} ,</if>
            <if test="jsfsmc != null and jsfsmc != ''"> #{jsfsmc} ,</if>
            <if test="zffsdm != null and zffsdm != ''"> #{zffsdm} ,</if>
            <if test="zffsmc != null and zffsmc != ''"> #{zffsmc} ,</if>
            <if test="ysdwdm != null and ysdwdm != ''"> #{ysdwdm} ,</if>
            <if test="ysdwmc != null and ysdwmc != ''"> #{ysdwmc} ,</if>
            <if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
            <if test="bmmc != null and bmmc != ''"> #{bmmc} ,</if>
            <if test="zydm != null and zydm != ''"> #{zydm} ,</if>
            <if test="zymc != null and zymc != ''"> #{zymc} ,</if>
            <if test="xmfldm != null and xmfldm != ''"> #{xmfldm} ,</if>
            <if test="xmflmc != null and xmflmc != ''"> #{xmflmc} ,</if>
            <if test="xmdm != null and xmdm != ''"> #{xmdm} ,</if>
            <if test="xmmc != null and xmmc != ''"> #{xmmc} ,</if>
            <if test="gnkmdm != null and gnkmdm != ''"> #{gnkmdm} ,</if>
            <if test="gnkmmc != null and gnkmmc != ''"> #{gnkmmc} ,</if>
            <if test="jjkmdm != null and jjkmdm != ''"> #{jjkmdm} ,</if>
            <if test="jjkmmc != null and jjkmmc != ''"> #{jjkmmc} ,</if>
            <if test="fz6dm != null and fz6dm != ''"> #{fz6dm} ,</if>
            <if test="fz6mc != null and fz6mc != ''"> #{fz6mc} ,</if>
            <if test="fz7dm != null and fz7dm != ''"> #{fz7dm} ,</if>
            <if test="fz7mc != null and fz7mc != ''"> #{fz7mc} ,</if>
            <if test="fz8dm != null and fz8dm != ''"> #{fz8dm} ,</if>
            <if test="fz8mc != null and fz8mc != ''"> #{fz8mc} ,</if>
            <if test="fz9dm != null and fz9dm != ''"> #{fz9dm} ,</if>
            <if test="fz9mc != null and fz9mc != ''"> #{fz9mc} ,</if>
            <if test="fzadm != null and fzadm != ''"> #{fzadm} ,</if>
            <if test="fzamc != null and fzamc != ''"> #{fzamc} ,</if>
            <if test="fz11dm != null and fz11dm != ''"> #{fz11dm} ,</if>
            <if test="fz11mc != null and fz11mc != ''"> #{fz11mc} ,</if>
            <if test="fz12dm != null and fz12dm != ''"> #{fz12dm} ,</if>
            <if test="fz12mc != null and fz12mc != ''"> #{fz12mc} ,</if>
            <if test="fz13dm != null and fz13dm != ''"> #{fz13dm} ,</if>
            <if test="fz13mc != null and fz13mc != ''"> #{fz13mc} ,</if>
            <if test="fz14dm != null and fz14dm != ''"> #{fz14dm} ,</if>
            <if test="fz14mc != null and fz14mc != ''"> #{fz14mc} ,</if>
            <if test="fz15dm != null and fz15dm != ''"> #{fz15dm} ,</if>
            <if test="fz15mc != null and fz15mc != ''"> #{fz15mc} ,</if>
            <if test="fz16dm != null and fz16dm != ''"> #{fz16dm} ,</if>
            <if test="fz16mc != null and fz16mc != ''"> #{fz16mc} ,</if>
            <if test="fz17dm != null and fz17dm != ''"> #{fz17dm} ,</if>
            <if test="fz17mc != null and fz17mc != ''"> #{fz17mc} ,</if>
            <if test="fz18dm != null and fz18dm != ''"> #{fz18dm} ,</if>
            <if test="fz18mc != null and fz18mc != ''"> #{fz18mc} ,</if>
            <if test="fz19dm != null and fz19dm != ''"> #{fz19dm} ,</if>
            <if test="fz19mc != null and fz19mc != ''"> #{fz19mc} ,</if>
            <if test="fz20dm != null and fz20dm != ''"> #{fz20dm} ,</if>
            <if test="fz20mc != null and fz20mc != ''"> #{fz20mc} ,</if>
            <if test="fz21dm != null and fz21dm != ''"> #{fz21dm} ,</if>
            <if test="fz21mc != null and fz21mc != ''"> #{fz21mc} ,</if>
            <if test="fz22dm != null and fz22dm != ''"> #{fz22dm} ,</if>
            <if test="fz22mc != null and fz22mc != ''"> #{fz22mc} ,</if>
            <if test="fz23dm != null and fz23dm != ''"> #{fz23dm} ,</if>
            <if test="fz23mc != null and fz23mc != ''"> #{fz23mc} ,</if>
            <if test="fz24dm != null and fz24dm != ''"> #{fz24dm} ,</if>
            <if test="fz24mc != null and fz24mc != ''"> #{fz24mc} ,</if>
            <if test="fz25dm != null and fz25dm != ''"> #{fz25dm} ,</if>
            <if test="fz25mc != null and fz25mc != ''"> #{fz25mc} ,</if>
            <if test="fz26dm != null and fz26dm != ''"> #{fz26dm} ,</if>
            <if test="fz26mc != null and fz26mc != ''"> #{fz26mc} ,</if>
            <if test="fz27dm != null and fz27dm != ''"> #{fz27dm} ,</if>
            <if test="fz27mc != null and fz27mc != ''"> #{fz27mc} ,</if>
            <if test="fz28dm != null and fz28dm != ''"> #{fz28dm} ,</if>
            <if test="fz28mc != null and fz28mc != ''"> #{fz28mc} ,</if>
            <if test="fz29dm != null and fz29dm != ''"> #{fz29dm} ,</if>
            <if test="fz29mc != null and fz29mc != ''"> #{fz29mc} ,</if>
            <if test="fz30dm != null and fz30dm != ''"> #{fz30dm} ,</if>
            <if test="fz30mc != null and fz30mc != ''"> #{fz30mc} ,</if>
            <if test="zth != null and zth != ''"> #{zth} ,</if>
            <if test="kmdm != null and kmdm != ''"> #{kmdm} ,</if>
            <if test="kmmc != null and kmmc != ''"> #{kmmc} ,</if>
            <if test="zt != null and zt != ''"> #{zt} ,</if>
            <if test="sfzfcg != null and sfzfcg != ''"> #{sfzfcg} ,</if>
            <if test="je != null"> #{je} ,</if>
            <if test="ncysy != null"> #{ncysy} ,</if>
            <if test="djje != null"> #{djje} ,</if>
            <if test="ye != null"> #{ye} ,</if>
            <if test="lrrid != null"> #{lrrid} ,</if>
            <if test="lrr != null and lrr != ''"> #{lrr} ,</if>
            <if test="lrrq != null and lrrq != ''"> #{lrrq} ,</if>
            <if test="lrsj != null and lrsj != ''"> #{lrsj} ,</if>
            <if test="shrid != null"> #{shrid} ,</if>
            <if test="shr != null and shr != ''"> #{shr} ,</if>
            <if test="shrq != null and shrq != ''"> #{shrq} ,</if>
            <if test="shsj != null and shsj != ''"> #{shsj} ,</if>
            <if test="pfrid != null"> #{pfrid} ,</if>
            <if test="pfr != null and pfr != ''"> #{pfr} ,</if>
            <if test="pfrq != null and pfrq != ''"> #{pfrq} ,</if>
            <if test="pfsj != null and pfsj != ''"> #{pfsj} ,</if>
            <if test="curshjd != null"> #{curshjd} ,</if>
            <if test="nextshjd != null"> #{nextshjd} ,</if>
            <if test="flowcode != null and flowcode != ''"> #{flowcode} ,</if>
            <if test="yjbfb != null"> #{yjbfb} ,</if>
            <if test="cyskzfs != null and cyskzfs != ''"> #{cyskzfs} ,</if>
            <if test="sfjz != null and sfjz != ''"> #{sfjz} ,</if>
            <if test="module != null and module != ''"> #{module} ,</if>
            <if test="bz != null and bz != ''"> #{bz} ,</if>
            <if test="idzbbh != null and idzbbh != ''"> #{idzbbh} ,</if>
            <if test="xfzt != null and xfzt != ''"> #{xfzt} ,</if>
            <if test="sjly != null"> #{sjly} ,</if>
            <if test="bygkz != null and bygkz != ''"> #{bygkz} ,</if>
            <if test="ysje != null"> #{ysje} ,</if>
            <if test="zcsxdm != null and zcsxdm != ''"> #{zcsxdm} ,</if>
            <if test="zcsxmc != null and zcsxmc != ''"> #{zcsxmc} ,</if>
            <if test="yf != null"> #{yf} ,</if>
            <if test="kzzl1dm != null and kzzl1dm != ''"> #{kzzl1dm} ,</if>
            <if test="kzzl1mc != null and kzzl1mc != ''"> #{kzzl1mc} ,</if>
            <if test="kzzl2dm != null and kzzl2dm != ''"> #{kzzl2dm} ,</if>
            <if test="kzzl2mc != null and kzzl2mc != ''"> #{kzzl2mc} ,</if>
            <if test="kzzl3dm != null and kzzl3dm != ''"> #{kzzl3dm} ,</if>
            <if test="kzzl3mc != null and kzzl3mc != ''"> #{kzzl3mc} ,</if>
            <if test="kzzl4dm != null and kzzl4dm != ''"> #{kzzl4dm} ,</if>
            <if test="kzzl4mc != null and kzzl4mc != ''"> #{kzzl4mc} ,</if>
            <if test="kzzl5dm != null and kzzl5dm != ''"> #{kzzl5dm} ,</if>
            <if test="kzzl5mc != null and kzzl5mc != ''"> #{kzzl5mc} ,</if>
            <if test="kzzl6dm != null and kzzl6dm != ''"> #{kzzl6dm} ,</if>
            <if test="kzzl6mc != null and kzzl6mc != ''"> #{kzzl6mc} ,</if>
            <if test="kzzl7dm != null and kzzl7dm != ''"> #{kzzl7dm} ,</if>
            <if test="kzzl7mc != null and kzzl7mc != ''"> #{kzzl7mc} ,</if>
            <if test="edwzc != null and edwzc != ''"> #{edwzc} ,</if>
  </trim>
  )  
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="zbid" useGeneratedKeys="true">
  insert into gbi_zbxmb(ZBDM, SJZBID, ZY, YSFADM, YSFAMC, JFLXDM, JFLXMC, WHDM, WHMC, ZBLYDM, ZBLYMC, ZJLYDM, ZJLYMC, ZJXZDM, ZJXZMC, JSFSDM, JSFSMC, ZFFSDM, ZFFSMC, YSDWDM, YSDWMC, BMDM, BMMC, ZYDM, ZYMC, XMFLDM, XMFLMC, XMDM, XMMC, GNKMDM, GNKMMC, JJKMDM, JJKMMC, FZ6DM, FZ6MC, FZ7DM, FZ7MC, FZ8DM, FZ8MC, FZ9DM, FZ9MC, FZADM, FZAMC, FZ11DM, FZ11MC, FZ12DM, FZ12MC, FZ13DM, FZ13MC, FZ14DM, FZ14MC, FZ15DM, FZ15MC, FZ16DM, FZ16MC, FZ17DM, FZ17MC, FZ18DM, FZ18MC, FZ19DM, FZ19MC, FZ20DM, FZ20MC, FZ21DM, FZ21MC, FZ22DM, FZ22MC, FZ23DM, FZ23MC, FZ24DM, FZ24MC, FZ25DM, FZ25MC, FZ26DM, FZ26MC, FZ27DM, FZ27MC, FZ28DM, FZ28MC, FZ29DM, FZ29MC, FZ30DM, FZ30MC, ZTH, KMDM, KMMC, ZT, SFZFCG, JE, NCYSY, DJJE, YE, LRRID, LRR, LRRQ, LRSJ, SHRID, SHR, SHRQ, SHSJ, PFRID, PFR, PFRQ, PFSJ, CurSHJD, NextSHJD, FlowCode, YJBFB, CYSKZFS, SFJZ, MODULE, BZ, IDZBBH, XFZT, SJLY, BYGKZ, YSJE, ZCSXDM, ZCSXMC, YF, KZZL1DM, KZZL1MC, KZZL2DM, KZZL2MC, KZZL3DM, KZZL3MC, KZZL4DM, KZZL4MC, KZZL5DM, KZZL5MC, KZZL6DM, KZZL6MC, KZZL7DM, KZZL7MC, EDWZC,  sts) 
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.zbdm},#{entity.sjzbid},#{entity.zy},#{entity.ysfadm},#{entity.ysfamc},#{entity.jflxdm},#{entity.jflxmc},#{entity.whdm},#{entity.whmc},#{entity.zblydm},#{entity.zblymc},#{entity.zjlydm},#{entity.zjlymc},#{entity.zjxzdm},#{entity.zjxzmc},#{entity.jsfsdm},#{entity.jsfsmc},#{entity.zffsdm},#{entity.zffsmc},#{entity.ysdwdm},#{entity.ysdwmc},#{entity.bmdm},#{entity.bmmc},#{entity.zydm},#{entity.zymc},#{entity.xmfldm},#{entity.xmflmc},#{entity.xmdm},#{entity.xmmc},#{entity.gnkmdm},#{entity.gnkmmc},#{entity.jjkmdm},#{entity.jjkmmc},#{entity.fz6dm},#{entity.fz6mc},#{entity.fz7dm},#{entity.fz7mc},#{entity.fz8dm},#{entity.fz8mc},#{entity.fz9dm},#{entity.fz9mc},#{entity.fzadm},#{entity.fzamc},#{entity.fz11dm},#{entity.fz11mc},#{entity.fz12dm},#{entity.fz12mc},#{entity.fz13dm},#{entity.fz13mc},#{entity.fz14dm},#{entity.fz14mc},#{entity.fz15dm},#{entity.fz15mc},#{entity.fz16dm},#{entity.fz16mc},#{entity.fz17dm},#{entity.fz17mc},#{entity.fz18dm},#{entity.fz18mc},#{entity.fz19dm},#{entity.fz19mc},#{entity.fz20dm},#{entity.fz20mc},#{entity.fz21dm},#{entity.fz21mc},#{entity.fz22dm},#{entity.fz22mc},#{entity.fz23dm},#{entity.fz23mc},#{entity.fz24dm},#{entity.fz24mc},#{entity.fz25dm},#{entity.fz25mc},#{entity.fz26dm},#{entity.fz26mc},#{entity.fz27dm},#{entity.fz27mc},#{entity.fz28dm},#{entity.fz28mc},#{entity.fz29dm},#{entity.fz29mc},#{entity.fz30dm},#{entity.fz30mc},#{entity.zth},#{entity.kmdm},#{entity.kmmc},#{entity.zt},#{entity.sfzfcg},#{entity.je},#{entity.ncysy},#{entity.djje},#{entity.ye},#{entity.lrrid},#{entity.lrr},#{entity.lrrq},#{entity.lrsj},#{entity.shrid},#{entity.shr},#{entity.shrq},#{entity.shsj},#{entity.pfrid},#{entity.pfr},#{entity.pfrq},#{entity.pfsj},#{entity.curshjd},#{entity.nextshjd},#{entity.flowcode},#{entity.yjbfb},#{entity.cyskzfs},#{entity.sfjz},#{entity.module},#{entity.bz},#{entity.idzbbh},#{entity.xfzt},#{entity.sjly},#{entity.bygkz},#{entity.ysje},#{entity.zcsxdm},#{entity.zcsxmc},#{entity.yf},#{entity.kzzl1dm},#{entity.kzzl1mc},#{entity.kzzl2dm},#{entity.kzzl2mc},#{entity.kzzl3dm},#{entity.kzzl3mc},#{entity.kzzl4dm},#{entity.kzzl4mc},#{entity.kzzl5dm},#{entity.kzzl5mc},#{entity.kzzl6dm},#{entity.kzzl6mc},#{entity.kzzl7dm},#{entity.kzzl7mc},#{entity.edwzc}, 'Y')
    </foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="zbid" useGeneratedKeys="true">
    insert into gbi_zbxmb(ZBDM, SJZBID, ZY, YSFADM, YSFAMC, JFLXDM, JFLXMC, WHDM, WHMC, ZBLYDM, ZBLYMC, ZJLYDM, ZJLYMC, ZJXZDM, ZJXZMC, JSFSDM, JSFSMC, ZFFSDM, ZFFSMC, YSDWDM, YSDWMC, BMDM, BMMC, ZYDM, ZYMC, XMFLDM, XMFLMC, XMDM, XMMC, GNKMDM, GNKMMC, JJKMDM, JJKMMC, FZ6DM, FZ6MC, FZ7DM, FZ7MC, FZ8DM, FZ8MC, FZ9DM, FZ9MC, FZADM, FZAMC, FZ11DM, FZ11MC, FZ12DM, FZ12MC, FZ13DM, FZ13MC, FZ14DM, FZ14MC, FZ15DM, FZ15MC, FZ16DM, FZ16MC, FZ17DM, FZ17MC, FZ18DM, FZ18MC, FZ19DM, FZ19MC, FZ20DM, FZ20MC, FZ21DM, FZ21MC, FZ22DM, FZ22MC, FZ23DM, FZ23MC, FZ24DM, FZ24MC, FZ25DM, FZ25MC, FZ26DM, FZ26MC, FZ27DM, FZ27MC, FZ28DM, FZ28MC, FZ29DM, FZ29MC, FZ30DM, FZ30MC, ZTH, KMDM, KMMC, ZT, SFZFCG, JE, NCYSY, DJJE, YE, LRRID, LRR, LRRQ, LRSJ, SHRID, SHR, SHRQ, SHSJ, PFRID, PFR, PFRQ, PFSJ, CurSHJD, NextSHJD, FlowCode, YJBFB, CYSKZFS, SFJZ, MODULE, BZ, IDZBBH, XFZT, SJLY, BYGKZ, YSJE, ZCSXDM, ZCSXMC, YF, KZZL1DM, KZZL1MC, KZZL2DM, KZZL2MC, KZZL3DM, KZZL3MC, KZZL4DM, KZZL4MC, KZZL5DM, KZZL5MC, KZZL6DM, KZZL6MC, KZZL7DM, KZZL7MC, EDWZC)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.zbdm},#{entity.sjzbid},#{entity.zy},#{entity.ysfadm},#{entity.ysfamc},#{entity.jflxdm},#{entity.jflxmc},#{entity.whdm},#{entity.whmc},#{entity.zblydm},#{entity.zblymc},#{entity.zjlydm},#{entity.zjlymc},#{entity.zjxzdm},#{entity.zjxzmc},#{entity.jsfsdm},#{entity.jsfsmc},#{entity.zffsdm},#{entity.zffsmc},#{entity.ysdwdm},#{entity.ysdwmc},#{entity.bmdm},#{entity.bmmc},#{entity.zydm},#{entity.zymc},#{entity.xmfldm},#{entity.xmflmc},#{entity.xmdm},#{entity.xmmc},#{entity.gnkmdm},#{entity.gnkmmc},#{entity.jjkmdm},#{entity.jjkmmc},#{entity.fz6dm},#{entity.fz6mc},#{entity.fz7dm},#{entity.fz7mc},#{entity.fz8dm},#{entity.fz8mc},#{entity.fz9dm},#{entity.fz9mc},#{entity.fzadm},#{entity.fzamc},#{entity.fz11dm},#{entity.fz11mc},#{entity.fz12dm},#{entity.fz12mc},#{entity.fz13dm},#{entity.fz13mc},#{entity.fz14dm},#{entity.fz14mc},#{entity.fz15dm},#{entity.fz15mc},#{entity.fz16dm},#{entity.fz16mc},#{entity.fz17dm},#{entity.fz17mc},#{entity.fz18dm},#{entity.fz18mc},#{entity.fz19dm},#{entity.fz19mc},#{entity.fz20dm},#{entity.fz20mc},#{entity.fz21dm},#{entity.fz21mc},#{entity.fz22dm},#{entity.fz22mc},#{entity.fz23dm},#{entity.fz23mc},#{entity.fz24dm},#{entity.fz24mc},#{entity.fz25dm},#{entity.fz25mc},#{entity.fz26dm},#{entity.fz26mc},#{entity.fz27dm},#{entity.fz27mc},#{entity.fz28dm},#{entity.fz28mc},#{entity.fz29dm},#{entity.fz29mc},#{entity.fz30dm},#{entity.fz30mc},#{entity.zth},#{entity.kmdm},#{entity.kmmc},#{entity.zt},#{entity.sfzfcg},#{entity.je},#{entity.ncysy},#{entity.djje},#{entity.ye},#{entity.lrrid},#{entity.lrr},#{entity.lrrq},#{entity.lrsj},#{entity.shrid},#{entity.shr},#{entity.shrq},#{entity.shsj},#{entity.pfrid},#{entity.pfr},#{entity.pfrq},#{entity.pfsj},#{entity.curshjd},#{entity.nextshjd},#{entity.flowcode},#{entity.yjbfb},#{entity.cyskzfs},#{entity.sfjz},#{entity.module},#{entity.bz},#{entity.idzbbh},#{entity.xfzt},#{entity.sjly},#{entity.bygkz},#{entity.ysje},#{entity.zcsxdm},#{entity.zcsxmc},#{entity.yf},#{entity.kzzl1dm},#{entity.kzzl1mc},#{entity.kzzl2dm},#{entity.kzzl2mc},#{entity.kzzl3dm},#{entity.kzzl3mc},#{entity.kzzl4dm},#{entity.kzzl4mc},#{entity.kzzl5dm},#{entity.kzzl5mc},#{entity.kzzl6dm},#{entity.kzzl6mc},#{entity.kzzl7dm},#{entity.kzzl7mc},#{entity.edwzc})
    </foreach>
    on duplicate key update
    ZBDM = values(ZBDM),
    SJZBID = values(SJZBID),
    ZY = values(ZY),
    YSFADM = values(YSFADM),
    YSFAMC = values(YSFAMC),
    JFLXDM = values(JFLXDM),
    JFLXMC = values(JFLXMC),
    WHDM = values(WHDM),
    WHMC = values(WHMC),
    ZBLYDM = values(ZBLYDM),
    ZBLYMC = values(ZBLYMC),
    ZJLYDM = values(ZJLYDM),
    ZJLYMC = values(ZJLYMC),
    ZJXZDM = values(ZJXZDM),
    ZJXZMC = values(ZJXZMC),
    JSFSDM = values(JSFSDM),
    JSFSMC = values(JSFSMC),
    ZFFSDM = values(ZFFSDM),
    ZFFSMC = values(ZFFSMC),
    YSDWDM = values(YSDWDM),
    YSDWMC = values(YSDWMC),
    BMDM = values(BMDM),
    BMMC = values(BMMC),
    ZYDM = values(ZYDM),
    ZYMC = values(ZYMC),
    XMFLDM = values(XMFLDM),
    XMFLMC = values(XMFLMC),
    XMDM = values(XMDM),
    XMMC = values(XMMC),
    GNKMDM = values(GNKMDM),
    GNKMMC = values(GNKMMC),
    JJKMDM = values(JJKMDM),
    JJKMMC = values(JJKMMC),
    FZ6DM = values(FZ6DM),
    FZ6MC = values(FZ6MC),
    FZ7DM = values(FZ7DM),
    FZ7MC = values(FZ7MC),
    FZ8DM = values(FZ8DM),
    FZ8MC = values(FZ8MC),
    FZ9DM = values(FZ9DM),
    FZ9MC = values(FZ9MC),
    FZADM = values(FZADM),
    FZAMC = values(FZAMC),
    FZ11DM = values(FZ11DM),
    FZ11MC = values(FZ11MC),
    FZ12DM = values(FZ12DM),
    FZ12MC = values(FZ12MC),
    FZ13DM = values(FZ13DM),
    FZ13MC = values(FZ13MC),
    FZ14DM = values(FZ14DM),
    FZ14MC = values(FZ14MC),
    FZ15DM = values(FZ15DM),
    FZ15MC = values(FZ15MC),
    FZ16DM = values(FZ16DM),
    FZ16MC = values(FZ16MC),
    FZ17DM = values(FZ17DM),
    FZ17MC = values(FZ17MC),
    FZ18DM = values(FZ18DM),
    FZ18MC = values(FZ18MC),
    FZ19DM = values(FZ19DM),
    FZ19MC = values(FZ19MC),
    FZ20DM = values(FZ20DM),
    FZ20MC = values(FZ20MC),
    FZ21DM = values(FZ21DM),
    FZ21MC = values(FZ21MC),
    FZ22DM = values(FZ22DM),
    FZ22MC = values(FZ22MC),
    FZ23DM = values(FZ23DM),
    FZ23MC = values(FZ23MC),
    FZ24DM = values(FZ24DM),
    FZ24MC = values(FZ24MC),
    FZ25DM = values(FZ25DM),
    FZ25MC = values(FZ25MC),
    FZ26DM = values(FZ26DM),
    FZ26MC = values(FZ26MC),
    FZ27DM = values(FZ27DM),
    FZ27MC = values(FZ27MC),
    FZ28DM = values(FZ28DM),
    FZ28MC = values(FZ28MC),
    FZ29DM = values(FZ29DM),
    FZ29MC = values(FZ29MC),
    FZ30DM = values(FZ30DM),
    FZ30MC = values(FZ30MC),
    ZTH = values(ZTH),
    KMDM = values(KMDM),
    KMMC = values(KMMC),
    ZT = values(ZT),
    SFZFCG = values(SFZFCG),
    JE = values(JE),
    NCYSY = values(NCYSY),
    DJJE = values(DJJE),
    YE = values(YE),
    LRRID = values(LRRID),
    LRR = values(LRR),
    LRRQ = values(LRRQ),
    LRSJ = values(LRSJ),
    SHRID = values(SHRID),
    SHR = values(SHR),
    SHRQ = values(SHRQ),
    SHSJ = values(SHSJ),
    PFRID = values(PFRID),
    PFR = values(PFR),
    PFRQ = values(PFRQ),
    PFSJ = values(PFSJ),
    CurSHJD = values(CurSHJD),
    NextSHJD = values(NextSHJD),
    FlowCode = values(FlowCode),
    YJBFB = values(YJBFB),
    CYSKZFS = values(CYSKZFS),
    SFJZ = values(SFJZ),
    MODULE = values(MODULE),
    BZ = values(BZ),
    IDZBBH = values(IDZBBH),
    XFZT = values(XFZT),
    SJLY = values(SJLY),
    BYGKZ = values(BYGKZ),
    YSJE = values(YSJE),
    ZCSXDM = values(ZCSXDM),
    ZCSXMC = values(ZCSXMC),
    YF = values(YF),
    KZZL1DM = values(KZZL1DM),
    KZZL1MC = values(KZZL1MC),
    KZZL2DM = values(KZZL2DM),
    KZZL2MC = values(KZZL2MC),
    KZZL3DM = values(KZZL3DM),
    KZZL3MC = values(KZZL3MC),
    KZZL4DM = values(KZZL4DM),
    KZZL4MC = values(KZZL4MC),
    KZZL5DM = values(KZZL5DM),
    KZZL5MC = values(KZZL5MC),
    KZZL6DM = values(KZZL6DM),
    KZZL6MC = values(KZZL6MC),
    KZZL7DM = values(KZZL7DM),
    KZZL7MC = values(KZZL7MC),
    EDWZC = values(EDWZC)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity" >
update gbi_zbxmb  set
<trim suffix="" suffixOverrides=",">
  <if test="zbdm != null and zbdm != ''"> ZBDM = #{zbdm},</if>
  <if test="sjzbid != null"> SJZBID = #{sjzbid},</if>
  <if test="zy != null and zy != ''"> ZY = #{zy},</if>
  <if test="ysfadm != null and ysfadm != ''"> YSFADM = #{ysfadm},</if>
  <if test="ysfamc != null and ysfamc != ''"> YSFAMC = #{ysfamc},</if>
  <if test="jflxdm != null and jflxdm != ''"> JFLXDM = #{jflxdm},</if>
  <if test="jflxmc != null and jflxmc != ''"> JFLXMC = #{jflxmc},</if>
  <if test="whdm != null and whdm != ''"> WHDM = #{whdm},</if>
  <if test="whmc != null and whmc != ''"> WHMC = #{whmc},</if>
  <if test="zblydm != null and zblydm != ''"> ZBLYDM = #{zblydm},</if>
  <if test="zblymc != null and zblymc != ''"> ZBLYMC = #{zblymc},</if>
  <if test="zjlydm != null and zjlydm != ''"> ZJLYDM = #{zjlydm},</if>
  <if test="zjlymc != null and zjlymc != ''"> ZJLYMC = #{zjlymc},</if>
  <if test="zjxzdm != null and zjxzdm != ''"> ZJXZDM = #{zjxzdm},</if>
  <if test="zjxzmc != null and zjxzmc != ''"> ZJXZMC = #{zjxzmc},</if>
  <if test="jsfsdm != null and jsfsdm != ''"> JSFSDM = #{jsfsdm},</if>
  <if test="jsfsmc != null and jsfsmc != ''"> JSFSMC = #{jsfsmc},</if>
  <if test="zffsdm != null and zffsdm != ''"> ZFFSDM = #{zffsdm},</if>
  <if test="zffsmc != null and zffsmc != ''"> ZFFSMC = #{zffsmc},</if>
  <if test="ysdwdm != null and ysdwdm != ''"> YSDWDM = #{ysdwdm},</if>
  <if test="ysdwmc != null and ysdwmc != ''"> YSDWMC = #{ysdwmc},</if>
  <if test="bmdm != null and bmdm != ''"> BMDM = #{bmdm},</if>
  <if test="bmmc != null and bmmc != ''"> BMMC = #{bmmc},</if>
  <if test="zydm != null and zydm != ''"> ZYDM = #{zydm},</if>
  <if test="zymc != null and zymc != ''"> ZYMC = #{zymc},</if>
  <if test="xmfldm != null and xmfldm != ''"> XMFLDM = #{xmfldm},</if>
  <if test="xmflmc != null and xmflmc != ''"> XMFLMC = #{xmflmc},</if>
  <if test="xmdm != null and xmdm != ''"> XMDM = #{xmdm},</if>
  <if test="xmmc != null and xmmc != ''"> XMMC = #{xmmc},</if>
  <if test="gnkmdm != null and gnkmdm != ''"> GNKMDM = #{gnkmdm},</if>
  <if test="gnkmmc != null and gnkmmc != ''"> GNKMMC = #{gnkmmc},</if>
  <if test="jjkmdm != null and jjkmdm != ''"> JJKMDM = #{jjkmdm},</if>
  <if test="jjkmmc != null and jjkmmc != ''"> JJKMMC = #{jjkmmc},</if>
  <if test="fz6dm != null and fz6dm != ''"> FZ6DM = #{fz6dm},</if>
  <if test="fz6mc != null and fz6mc != ''"> FZ6MC = #{fz6mc},</if>
  <if test="fz7dm != null and fz7dm != ''"> FZ7DM = #{fz7dm},</if>
  <if test="fz7mc != null and fz7mc != ''"> FZ7MC = #{fz7mc},</if>
  <if test="fz8dm != null and fz8dm != ''"> FZ8DM = #{fz8dm},</if>
  <if test="fz8mc != null and fz8mc != ''"> FZ8MC = #{fz8mc},</if>
  <if test="fz9dm != null and fz9dm != ''"> FZ9DM = #{fz9dm},</if>
  <if test="fz9mc != null and fz9mc != ''"> FZ9MC = #{fz9mc},</if>
  <if test="fzadm != null and fzadm != ''"> FZADM = #{fzadm},</if>
  <if test="fzamc != null and fzamc != ''"> FZAMC = #{fzamc},</if>
  <if test="fz11dm != null and fz11dm != ''"> FZ11DM = #{fz11dm},</if>
  <if test="fz11mc != null and fz11mc != ''"> FZ11MC = #{fz11mc},</if>
  <if test="fz12dm != null and fz12dm != ''"> FZ12DM = #{fz12dm},</if>
  <if test="fz12mc != null and fz12mc != ''"> FZ12MC = #{fz12mc},</if>
  <if test="fz13dm != null and fz13dm != ''"> FZ13DM = #{fz13dm},</if>
  <if test="fz13mc != null and fz13mc != ''"> FZ13MC = #{fz13mc},</if>
  <if test="fz14dm != null and fz14dm != ''"> FZ14DM = #{fz14dm},</if>
  <if test="fz14mc != null and fz14mc != ''"> FZ14MC = #{fz14mc},</if>
  <if test="fz15dm != null and fz15dm != ''"> FZ15DM = #{fz15dm},</if>
  <if test="fz15mc != null and fz15mc != ''"> FZ15MC = #{fz15mc},</if>
  <if test="fz16dm != null and fz16dm != ''"> FZ16DM = #{fz16dm},</if>
  <if test="fz16mc != null and fz16mc != ''"> FZ16MC = #{fz16mc},</if>
  <if test="fz17dm != null and fz17dm != ''"> FZ17DM = #{fz17dm},</if>
  <if test="fz17mc != null and fz17mc != ''"> FZ17MC = #{fz17mc},</if>
  <if test="fz18dm != null and fz18dm != ''"> FZ18DM = #{fz18dm},</if>
  <if test="fz18mc != null and fz18mc != ''"> FZ18MC = #{fz18mc},</if>
  <if test="fz19dm != null and fz19dm != ''"> FZ19DM = #{fz19dm},</if>
  <if test="fz19mc != null and fz19mc != ''"> FZ19MC = #{fz19mc},</if>
  <if test="fz20dm != null and fz20dm != ''"> FZ20DM = #{fz20dm},</if>
  <if test="fz20mc != null and fz20mc != ''"> FZ20MC = #{fz20mc},</if>
  <if test="fz21dm != null and fz21dm != ''"> FZ21DM = #{fz21dm},</if>
  <if test="fz21mc != null and fz21mc != ''"> FZ21MC = #{fz21mc},</if>
  <if test="fz22dm != null and fz22dm != ''"> FZ22DM = #{fz22dm},</if>
  <if test="fz22mc != null and fz22mc != ''"> FZ22MC = #{fz22mc},</if>
  <if test="fz23dm != null and fz23dm != ''"> FZ23DM = #{fz23dm},</if>
  <if test="fz23mc != null and fz23mc != ''"> FZ23MC = #{fz23mc},</if>
  <if test="fz24dm != null and fz24dm != ''"> FZ24DM = #{fz24dm},</if>
  <if test="fz24mc != null and fz24mc != ''"> FZ24MC = #{fz24mc},</if>
  <if test="fz25dm != null and fz25dm != ''"> FZ25DM = #{fz25dm},</if>
  <if test="fz25mc != null and fz25mc != ''"> FZ25MC = #{fz25mc},</if>
  <if test="fz26dm != null and fz26dm != ''"> FZ26DM = #{fz26dm},</if>
  <if test="fz26mc != null and fz26mc != ''"> FZ26MC = #{fz26mc},</if>
  <if test="fz27dm != null and fz27dm != ''"> FZ27DM = #{fz27dm},</if>
  <if test="fz27mc != null and fz27mc != ''"> FZ27MC = #{fz27mc},</if>
  <if test="fz28dm != null and fz28dm != ''"> FZ28DM = #{fz28dm},</if>
  <if test="fz28mc != null and fz28mc != ''"> FZ28MC = #{fz28mc},</if>
  <if test="fz29dm != null and fz29dm != ''"> FZ29DM = #{fz29dm},</if>
  <if test="fz29mc != null and fz29mc != ''"> FZ29MC = #{fz29mc},</if>
  <if test="fz30dm != null and fz30dm != ''"> FZ30DM = #{fz30dm},</if>
  <if test="fz30mc != null and fz30mc != ''"> FZ30MC = #{fz30mc},</if>
  <if test="zth != null and zth != ''"> ZTH = #{zth},</if>
  <if test="kmdm != null and kmdm != ''"> KMDM = #{kmdm},</if>
  <if test="kmmc != null and kmmc != ''"> KMMC = #{kmmc},</if>
  <if test="zt != null and zt != ''"> ZT = #{zt},</if>
  <if test="sfzfcg != null and sfzfcg != ''"> SFZFCG = #{sfzfcg},</if>
  <if test="je != null"> JE = #{je},</if>
  <if test="ncysy != null"> NCYSY = #{ncysy},</if>
  <if test="djje != null"> DJJE = #{djje},</if>
  <if test="ye != null"> YE = #{ye},</if>
  <if test="lrrid != null"> LRRID = #{lrrid},</if>
  <if test="lrr != null and lrr != ''"> LRR = #{lrr},</if>
  <if test="lrrq != null and lrrq != ''"> LRRQ = #{lrrq},</if>
  <if test="lrsj != null and lrsj != ''"> LRSJ = #{lrsj},</if>
  <if test="shrid != null"> SHRID = #{shrid},</if>
  <if test="shr != null and shr != ''"> SHR = #{shr},</if>
  <if test="shrq != null and shrq != ''"> SHRQ = #{shrq},</if>
  <if test="shsj != null and shsj != ''"> SHSJ = #{shsj},</if>
  <if test="pfrid != null"> PFRID = #{pfrid},</if>
  <if test="pfr != null and pfr != ''"> PFR = #{pfr},</if>
  <if test="pfrq != null and pfrq != ''"> PFRQ = #{pfrq},</if>
  <if test="pfsj != null and pfsj != ''"> PFSJ = #{pfsj},</if>
  <if test="curshjd != null"> CurSHJD = #{curshjd},</if>
  <if test="nextshjd != null"> NextSHJD = #{nextshjd},</if>
  <if test="flowcode != null and flowcode != ''"> FlowCode = #{flowcode},</if>
  <if test="yjbfb != null"> YJBFB = #{yjbfb},</if>
  <if test="cyskzfs != null and cyskzfs != ''"> CYSKZFS = #{cyskzfs},</if>
  <if test="sfjz != null and sfjz != ''"> SFJZ = #{sfjz},</if>
  <if test="module != null and module != ''"> MODULE = #{module},</if>
  <if test="bz != null and bz != ''"> BZ = #{bz},</if>
  <if test="idzbbh != null and idzbbh != ''"> IDZBBH = #{idzbbh},</if>
  <if test="xfzt != null and xfzt != ''"> XFZT = #{xfzt},</if>
  <if test="sjly != null"> SJLY = #{sjly},</if>
  <if test="bygkz != null and bygkz != ''"> BYGKZ = #{bygkz},</if>
  <if test="ysje != null"> YSJE = #{ysje},</if>
  <if test="zcsxdm != null and zcsxdm != ''"> ZCSXDM = #{zcsxdm},</if>
  <if test="zcsxmc != null and zcsxmc != ''"> ZCSXMC = #{zcsxmc},</if>
  <if test="yf != null"> YF = #{yf},</if>
  <if test="kzzl1dm != null and kzzl1dm != ''"> KZZL1DM = #{kzzl1dm},</if>
  <if test="kzzl1mc != null and kzzl1mc != ''"> KZZL1MC = #{kzzl1mc},</if>
  <if test="kzzl2dm != null and kzzl2dm != ''"> KZZL2DM = #{kzzl2dm},</if>
  <if test="kzzl2mc != null and kzzl2mc != ''"> KZZL2MC = #{kzzl2mc},</if>
  <if test="kzzl3dm != null and kzzl3dm != ''"> KZZL3DM = #{kzzl3dm},</if>
  <if test="kzzl3mc != null and kzzl3mc != ''"> KZZL3MC = #{kzzl3mc},</if>
  <if test="kzzl4dm != null and kzzl4dm != ''"> KZZL4DM = #{kzzl4dm},</if>
  <if test="kzzl4mc != null and kzzl4mc != ''"> KZZL4MC = #{kzzl4mc},</if>
  <if test="kzzl5dm != null and kzzl5dm != ''"> KZZL5DM = #{kzzl5dm},</if>
  <if test="kzzl5mc != null and kzzl5mc != ''"> KZZL5MC = #{kzzl5mc},</if>
  <if test="kzzl6dm != null and kzzl6dm != ''"> KZZL6DM = #{kzzl6dm},</if>
  <if test="kzzl6mc != null and kzzl6mc != ''"> KZZL6MC = #{kzzl6mc},</if>
  <if test="kzzl7dm != null and kzzl7dm != ''"> KZZL7DM = #{kzzl7dm},</if>
  <if test="kzzl7mc != null and kzzl7mc != ''"> KZZL7MC = #{kzzl7mc},</if>
  <if test="edwzc != null and edwzc != ''"> EDWZC = #{edwzc},</if>
</trim>
where ZBID = #{zbid}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity" >
update gbi_zbxmb  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where ZBID = #{zbid}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity" >
update gbi_zbxmb  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
 <trim prefix="where" prefixOverrides="and"> 
        <if test="zbid != null"> and ZBID = #{zbid} </if>
            <if test="gsdm != null and gsdm != ''"> and GSDM = #{gsdm} </if>
            <if test="kjnd != null and kjnd != ''"> and KJND = #{kjnd} </if>
            <if test="zbdm != null and zbdm != ''"> and ZBDM = #{zbdm} </if>
            <if test="zblb != null and zblb != ''"> and ZBLB = #{zblb} </if>
            <if test="sjzbid != null"> and SJZBID = #{sjzbid} </if>
            <if test="zy != null and zy != ''"> and ZY = #{zy} </if>
            <if test="ysfadm != null and ysfadm != ''"> and YSFADM = #{ysfadm} </if>
            <if test="ysfamc != null and ysfamc != ''"> and YSFAMC = #{ysfamc} </if>
            <if test="jflxdm != null and jflxdm != ''"> and JFLXDM = #{jflxdm} </if>
            <if test="jflxmc != null and jflxmc != ''"> and JFLXMC = #{jflxmc} </if>
            <if test="whdm != null and whdm != ''"> and WHDM = #{whdm} </if>
            <if test="whmc != null and whmc != ''"> and WHMC = #{whmc} </if>
            <if test="zblydm != null and zblydm != ''"> and ZBLYDM = #{zblydm} </if>
            <if test="zblymc != null and zblymc != ''"> and ZBLYMC = #{zblymc} </if>
            <if test="zjlydm != null and zjlydm != ''"> and ZJLYDM = #{zjlydm} </if>
            <if test="zjlymc != null and zjlymc != ''"> and ZJLYMC = #{zjlymc} </if>
            <if test="zjxzdm != null and zjxzdm != ''"> and ZJXZDM = #{zjxzdm} </if>
            <if test="zjxzmc != null and zjxzmc != ''"> and ZJXZMC = #{zjxzmc} </if>
            <if test="jsfsdm != null and jsfsdm != ''"> and JSFSDM = #{jsfsdm} </if>
            <if test="jsfsmc != null and jsfsmc != ''"> and JSFSMC = #{jsfsmc} </if>
            <if test="zffsdm != null and zffsdm != ''"> and ZFFSDM = #{zffsdm} </if>
            <if test="zffsmc != null and zffsmc != ''"> and ZFFSMC = #{zffsmc} </if>
            <if test="ysdwdm != null and ysdwdm != ''"> and YSDWDM = #{ysdwdm} </if>
            <if test="ysdwmc != null and ysdwmc != ''"> and YSDWMC = #{ysdwmc} </if>
            <if test="bmdm != null and bmdm != ''"> and BMDM = #{bmdm} </if>
            <if test="bmmc != null and bmmc != ''"> and BMMC = #{bmmc} </if>
            <if test="zydm != null and zydm != ''"> and ZYDM = #{zydm} </if>
            <if test="zymc != null and zymc != ''"> and ZYMC = #{zymc} </if>
            <if test="xmfldm != null and xmfldm != ''"> and XMFLDM = #{xmfldm} </if>
            <if test="xmflmc != null and xmflmc != ''"> and XMFLMC = #{xmflmc} </if>
            <if test="xmdm != null and xmdm != ''"> and XMDM = #{xmdm} </if>
            <if test="xmmc != null and xmmc != ''"> and XMMC = #{xmmc} </if>
            <if test="gnkmdm != null and gnkmdm != ''"> and GNKMDM = #{gnkmdm} </if>
            <if test="gnkmmc != null and gnkmmc != ''"> and GNKMMC = #{gnkmmc} </if>
            <if test="jjkmdm != null and jjkmdm != ''"> and JJKMDM = #{jjkmdm} </if>
            <if test="jjkmmc != null and jjkmmc != ''"> and JJKMMC = #{jjkmmc} </if>
            <if test="fz6dm != null and fz6dm != ''"> and FZ6DM = #{fz6dm} </if>
            <if test="fz6mc != null and fz6mc != ''"> and FZ6MC = #{fz6mc} </if>
            <if test="fz7dm != null and fz7dm != ''"> and FZ7DM = #{fz7dm} </if>
            <if test="fz7mc != null and fz7mc != ''"> and FZ7MC = #{fz7mc} </if>
            <if test="fz8dm != null and fz8dm != ''"> and FZ8DM = #{fz8dm} </if>
            <if test="fz8mc != null and fz8mc != ''"> and FZ8MC = #{fz8mc} </if>
            <if test="fz9dm != null and fz9dm != ''"> and FZ9DM = #{fz9dm} </if>
            <if test="fz9mc != null and fz9mc != ''"> and FZ9MC = #{fz9mc} </if>
            <if test="fzadm != null and fzadm != ''"> and FZADM = #{fzadm} </if>
            <if test="fzamc != null and fzamc != ''"> and FZAMC = #{fzamc} </if>
            <if test="fz11dm != null and fz11dm != ''"> and FZ11DM = #{fz11dm} </if>
            <if test="fz11mc != null and fz11mc != ''"> and FZ11MC = #{fz11mc} </if>
            <if test="fz12dm != null and fz12dm != ''"> and FZ12DM = #{fz12dm} </if>
            <if test="fz12mc != null and fz12mc != ''"> and FZ12MC = #{fz12mc} </if>
            <if test="fz13dm != null and fz13dm != ''"> and FZ13DM = #{fz13dm} </if>
            <if test="fz13mc != null and fz13mc != ''"> and FZ13MC = #{fz13mc} </if>
            <if test="fz14dm != null and fz14dm != ''"> and FZ14DM = #{fz14dm} </if>
            <if test="fz14mc != null and fz14mc != ''"> and FZ14MC = #{fz14mc} </if>
            <if test="fz15dm != null and fz15dm != ''"> and FZ15DM = #{fz15dm} </if>
            <if test="fz15mc != null and fz15mc != ''"> and FZ15MC = #{fz15mc} </if>
            <if test="fz16dm != null and fz16dm != ''"> and FZ16DM = #{fz16dm} </if>
            <if test="fz16mc != null and fz16mc != ''"> and FZ16MC = #{fz16mc} </if>
            <if test="fz17dm != null and fz17dm != ''"> and FZ17DM = #{fz17dm} </if>
            <if test="fz17mc != null and fz17mc != ''"> and FZ17MC = #{fz17mc} </if>
            <if test="fz18dm != null and fz18dm != ''"> and FZ18DM = #{fz18dm} </if>
            <if test="fz18mc != null and fz18mc != ''"> and FZ18MC = #{fz18mc} </if>
            <if test="fz19dm != null and fz19dm != ''"> and FZ19DM = #{fz19dm} </if>
            <if test="fz19mc != null and fz19mc != ''"> and FZ19MC = #{fz19mc} </if>
            <if test="fz20dm != null and fz20dm != ''"> and FZ20DM = #{fz20dm} </if>
            <if test="fz20mc != null and fz20mc != ''"> and FZ20MC = #{fz20mc} </if>
            <if test="fz21dm != null and fz21dm != ''"> and FZ21DM = #{fz21dm} </if>
            <if test="fz21mc != null and fz21mc != ''"> and FZ21MC = #{fz21mc} </if>
            <if test="fz22dm != null and fz22dm != ''"> and FZ22DM = #{fz22dm} </if>
            <if test="fz22mc != null and fz22mc != ''"> and FZ22MC = #{fz22mc} </if>
            <if test="fz23dm != null and fz23dm != ''"> and FZ23DM = #{fz23dm} </if>
            <if test="fz23mc != null and fz23mc != ''"> and FZ23MC = #{fz23mc} </if>
            <if test="fz24dm != null and fz24dm != ''"> and FZ24DM = #{fz24dm} </if>
            <if test="fz24mc != null and fz24mc != ''"> and FZ24MC = #{fz24mc} </if>
            <if test="fz25dm != null and fz25dm != ''"> and FZ25DM = #{fz25dm} </if>
            <if test="fz25mc != null and fz25mc != ''"> and FZ25MC = #{fz25mc} </if>
            <if test="fz26dm != null and fz26dm != ''"> and FZ26DM = #{fz26dm} </if>
            <if test="fz26mc != null and fz26mc != ''"> and FZ26MC = #{fz26mc} </if>
            <if test="fz27dm != null and fz27dm != ''"> and FZ27DM = #{fz27dm} </if>
            <if test="fz27mc != null and fz27mc != ''"> and FZ27MC = #{fz27mc} </if>
            <if test="fz28dm != null and fz28dm != ''"> and FZ28DM = #{fz28dm} </if>
            <if test="fz28mc != null and fz28mc != ''"> and FZ28MC = #{fz28mc} </if>
            <if test="fz29dm != null and fz29dm != ''"> and FZ29DM = #{fz29dm} </if>
            <if test="fz29mc != null and fz29mc != ''"> and FZ29MC = #{fz29mc} </if>
            <if test="fz30dm != null and fz30dm != ''"> and FZ30DM = #{fz30dm} </if>
            <if test="fz30mc != null and fz30mc != ''"> and FZ30MC = #{fz30mc} </if>
            <if test="zth != null and zth != ''"> and ZTH = #{zth} </if>
            <if test="kmdm != null and kmdm != ''"> and KMDM = #{kmdm} </if>
            <if test="kmmc != null and kmmc != ''"> and KMMC = #{kmmc} </if>
            <if test="zt != null and zt != ''"> and ZT = #{zt} </if>
            <if test="sfzfcg != null and sfzfcg != ''"> and SFZFCG = #{sfzfcg} </if>
            <if test="je != null"> and JE = #{je} </if>
            <if test="ncysy != null"> and NCYSY = #{ncysy} </if>
            <if test="djje != null"> and DJJE = #{djje} </if>
            <if test="ye != null"> and YE = #{ye} </if>
            <if test="lrrid != null"> and LRRID = #{lrrid} </if>
            <if test="lrr != null and lrr != ''"> and LRR = #{lrr} </if>
            <if test="lrrq != null and lrrq != ''"> and LRRQ = #{lrrq} </if>
            <if test="lrsj != null and lrsj != ''"> and LRSJ = #{lrsj} </if>
            <if test="shrid != null"> and SHRID = #{shrid} </if>
            <if test="shr != null and shr != ''"> and SHR = #{shr} </if>
            <if test="shrq != null and shrq != ''"> and SHRQ = #{shrq} </if>
            <if test="shsj != null and shsj != ''"> and SHSJ = #{shsj} </if>
            <if test="pfrid != null"> and PFRID = #{pfrid} </if>
            <if test="pfr != null and pfr != ''"> and PFR = #{pfr} </if>
            <if test="pfrq != null and pfrq != ''"> and PFRQ = #{pfrq} </if>
            <if test="pfsj != null and pfsj != ''"> and PFSJ = #{pfsj} </if>
            <if test="curshjd != null"> and CurSHJD = #{curshjd} </if>
            <if test="nextshjd != null"> and NextSHJD = #{nextshjd} </if>
            <if test="flowcode != null and flowcode != ''"> and FlowCode = #{flowcode} </if>
            <if test="yjbfb != null"> and YJBFB = #{yjbfb} </if>
            <if test="cyskzfs != null and cyskzfs != ''"> and CYSKZFS = #{cyskzfs} </if>
            <if test="sfjz != null and sfjz != ''"> and SFJZ = #{sfjz} </if>
            <if test="module != null and module != ''"> and MODULE = #{module} </if>
            <if test="bz != null and bz != ''"> and BZ = #{bz} </if>
            <if test="idzbbh != null and idzbbh != ''"> and IDZBBH = #{idzbbh} </if>
            <if test="xfzt != null and xfzt != ''"> and XFZT = #{xfzt} </if>
            <if test="sjly != null"> and SJLY = #{sjly} </if>
            <if test="bygkz != null and bygkz != ''"> and BYGKZ = #{bygkz} </if>
            <if test="ysje != null"> and YSJE = #{ysje} </if>
            <if test="zcsxdm != null and zcsxdm != ''"> and ZCSXDM = #{zcsxdm} </if>
            <if test="zcsxmc != null and zcsxmc != ''"> and ZCSXMC = #{zcsxmc} </if>
            <if test="yf != null"> and YF = #{yf} </if>
            <if test="kzzl1dm != null and kzzl1dm != ''"> and KZZL1DM = #{kzzl1dm} </if>
            <if test="kzzl1mc != null and kzzl1mc != ''"> and KZZL1MC = #{kzzl1mc} </if>
            <if test="kzzl2dm != null and kzzl2dm != ''"> and KZZL2DM = #{kzzl2dm} </if>
            <if test="kzzl2mc != null and kzzl2mc != ''"> and KZZL2MC = #{kzzl2mc} </if>
            <if test="kzzl3dm != null and kzzl3dm != ''"> and KZZL3DM = #{kzzl3dm} </if>
            <if test="kzzl3mc != null and kzzl3mc != ''"> and KZZL3MC = #{kzzl3mc} </if>
            <if test="kzzl4dm != null and kzzl4dm != ''"> and KZZL4DM = #{kzzl4dm} </if>
            <if test="kzzl4mc != null and kzzl4mc != ''"> and KZZL4MC = #{kzzl4mc} </if>
            <if test="kzzl5dm != null and kzzl5dm != ''"> and KZZL5DM = #{kzzl5dm} </if>
            <if test="kzzl5mc != null and kzzl5mc != ''"> and KZZL5MC = #{kzzl5mc} </if>
            <if test="kzzl6dm != null and kzzl6dm != ''"> and KZZL6DM = #{kzzl6dm} </if>
            <if test="kzzl6mc != null and kzzl6mc != ''"> and KZZL6MC = #{kzzl6mc} </if>
            <if test="kzzl7dm != null and kzzl7dm != ''"> and KZZL7DM = #{kzzl7dm} </if>
            <if test="kzzl7mc != null and kzzl7mc != ''"> and KZZL7MC = #{kzzl7mc} </if>
            <if test="edwzc != null and edwzc != ''"> and EDWZC = #{edwzc} </if>
    </trim>
</update>

    <!-- 部门修改时候修改指标项目表的部门名称 -->
    <update id="updateZbmxBmmc" parameterType = "com.hzya.frame.grpU8.nxproof.gbizbxmb.entity.GbiZbxmbEntity" >
        Update GBI_ZBXMB set bmmc=#{bmmc} where gsdm=#{gsdm} and kjnd=#{kjnd} and bmdm=#{bmdm}
    </update>

<!--通过主键删除-->
<delete id="entity_delete">
    delete from gbi_zbxmb where ZBID = #{zbid}
</delete>

</mapper>

