<?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.pubzyxx.dao.impl.SenderPubzyxxDaoImpl">

    <resultMap id="get-SenderPubzyxxEntity-result" type="com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
       <result property="gsdm" column="gsdm" jdbcType="VARCHAR"/>
           <result property="kjnd" column="kjnd" jdbcType="VARCHAR"/>
           <result property="zydm" column="zydm" jdbcType="VARCHAR"/>
           <result property="zyxm" column="zyxm" jdbcType="VARCHAR"/>
           <result property="zjm" column="zjm" jdbcType="VARCHAR"/>
           <result property="xb" column="xb" jdbcType="VARCHAR"/>
           <result property="bmdm" column="bmdm" jdbcType="VARCHAR"/>
           <result property="zylb" column="zylb" jdbcType="VARCHAR"/>
           <result property="sfzh" column="sfzh" jdbcType="VARCHAR"/>
           <result property="zw" column="zw" jdbcType="VARCHAR"/>
           <result property="tel" column="tel" jdbcType="VARCHAR"/>
           <result property="email" column="email" jdbcType="VARCHAR"/>
           <result property="jtzz" column="jtzz" jdbcType="VARCHAR"/>
           <result property="csny" column="csny" jdbcType="VARCHAR"/>
           <result property="whcd" column="whcd" jdbcType="VARCHAR"/>
           <result property="dzrq" column="dzrq" jdbcType="VARCHAR"/>
           <result property="lzrq" column="lzrq" jdbcType="VARCHAR"/>
           <result property="syzt" column="syzt" jdbcType="VARCHAR"/>
           <result property="glzt" column="GLzt" jdbcType="VARCHAR"/>
           <result property="zyzp" column="zyzp" jdbcType="VARCHAR"/>
           <result property="scgzzn" column="scgzzn" jdbcType="INTEGER"/>
           <result property="jlrId" column="JLR_ID" jdbcType="INTEGER"/>
           <result property="jlRq" column="JL_RQ" jdbcType="VARCHAR"/>
           <result property="xgrId" column="XGR_ID" jdbcType="INTEGER"/>
           <result property="xgRq" column="XG_RQ" jdbcType="VARCHAR"/>
           <result property="sjly" column="Sjly" jdbcType="VARCHAR"/>
           <result property="bz" column="bz" jdbcType="VARCHAR"/>
           <result property="password" column="password" jdbcType="VARCHAR"/>
           <result property="dfyh" column="DFYH" jdbcType="VARCHAR"/>
           <result property="grzh" column="GRZH" jdbcType="VARCHAR"/>
           <result property="gwkyh" column="GWKYH" jdbcType="VARCHAR"/>
           <result property="gwkzh" column="GWKZH" jdbcType="VARCHAR"/>
           <result property="wbdm" column="WBDM" jdbcType="VARCHAR"/>
           <result property="zyzp1" column="zyzp1" jdbcType="VARCHAR"/>
           <result property="appsw" column="appsw" jdbcType="VARCHAR"/>
           <result property="imei" column="imei" jdbcType="VARCHAR"/>
           <result property="bdmm" column="bdmm" jdbcType="VARCHAR"/>
           <result property="isfirstlogin" column="isFirstLogin" jdbcType="VARCHAR"/>
           <result property="zj" column="ZJ" jdbcType="VARCHAR"/>
           <result property="mmxgrq" column="mmxgrq" jdbcType="VARCHAR"/>
           <result property="xh" column="xh" jdbcType="VARCHAR"/>
           <result property="deviceid" column="deviceid" jdbcType="VARCHAR"/>
        </resultMap>
    <!-- 查询的字段-->
    <sql id = "SenderPubzyxxEntity_Base_Column_List">
        gsdm
       ,kjnd 
        ,zydm 
        ,zyxm 
        ,zjm 
        ,xb 
        ,bmdm 
        ,zylb 
        ,sfzh 
        ,zw 
        ,tel 
        ,email 
        ,jtzz 
        ,csny 
        ,whcd 
        ,dzrq 
        ,lzrq 
        ,syzt 
        ,GLzt 
        ,zyzp 
        ,scgzzn 
        ,JLR_ID 
        ,JL_RQ 
        ,XGR_ID 
        ,XG_RQ 
        ,Sjly 
        ,bz 
        ,password 
        ,DFYH 
        ,GRZH 
        ,GWKYH 
        ,GWKZH 
        ,WBDM 
        ,zyzp1 
        ,appsw 
        ,imei 
        ,bdmm 
        ,isFirstLogin 
        ,ZJ 
        ,mmxgrq
        ,xh
        ,deviceid
     </sql>
 <!-- 查询 采用==查询 -->
 <select id="entity_list_base" resultMap="get-SenderPubzyxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
    select
    <include refid="SenderPubzyxxEntity_Base_Column_List" />
    from pubzyxx
    <trim prefix="where" prefixOverrides="and"> 
        <if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
            <if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
            <if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
            <if test="zyxm != null and zyxm != ''"> and zyxm = #{zyxm} </if>
            <if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
            <if test="xb != null and xb != ''"> and xb = #{xb} </if>
            <if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
            <if test="zylb != null and zylb != ''"> and zylb = #{zylb} </if>
            <if test="sfzh != null and sfzh != ''"> and sfzh = #{sfzh} </if>
            <if test="zw != null and zw != ''"> and zw = #{zw} </if>
            <if test="tel != null and tel != ''"> and tel = #{tel} </if>
            <if test="email != null and email != ''"> and email = #{email} </if>
            <if test="jtzz != null and jtzz != ''"> and jtzz = #{jtzz} </if>
            <if test="csny != null and csny != ''"> and csny = #{csny} </if>
            <if test="whcd != null and whcd != ''"> and whcd = #{whcd} </if>
            <if test="dzrq != null and dzrq != ''"> and dzrq = #{dzrq} </if>
            <if test="lzrq != null and lzrq != ''"> and lzrq = #{lzrq} </if>
            <if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
            <if test="glzt != null and glzt != ''"> and GLzt = #{glzt} </if>
            <if test="zyzp != null and zyzp != ''"> and zyzp = #{zyzp} </if>
            <if test="scgzzn != null"> and scgzzn = #{scgzzn} </if>
            <if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
            <if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
            <if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
            <if test="xgRq != null and xgRq != ''"> and XG_RQ >= #{xgRq} </if>
            <if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
            <if test="bz != null and bz != ''"> and bz = #{bz} </if>
            <if test="password != null and password != ''"> and password = #{password} </if>
            <if test="dfyh != null and dfyh != ''"> and DFYH = #{dfyh} </if>
            <if test="grzh != null and grzh != ''"> and GRZH = #{grzh} </if>
            <if test="gwkyh != null and gwkyh != ''"> and GWKYH = #{gwkyh} </if>
            <if test="gwkzh != null and gwkzh != ''"> and GWKZH = #{gwkzh} </if>
            <if test="wbdm != null and wbdm != ''"> and WBDM = #{wbdm} </if>
            <if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 = #{zyzp1} </if>
            <if test="appsw != null and appsw != ''"> and appsw = #{appsw} </if>
            <if test="imei != null and imei != ''"> and imei = #{imei} </if>
            <if test="bdmm != null and bdmm != ''"> and bdmm = #{bdmm} </if>
            <if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin = #{isfirstlogin} </if>
            <if test="zj != null and zj != ''"> and ZJ = #{zj} </if>
            <if test="mmxgrq != null and mmxgrq != ''"> and mmxgrq = #{mmxgrq} </if>
            <if test="xh != null and xh != ''"> and xh = #{xh} </if>
            <if test="deviceid != null and deviceid != ''"> and deviceid = #{deviceid} </if>
        -- and gsdm in ('0101010201','0101010202') ;
    </trim>
</select>
    
<!-- 查询符合条件的数量 -->
<select id="SenderPubzyxxEntity_count" resultType="Integer" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
        select  count(1)   from pubzyxx
    <trim prefix="where" prefixOverrides="and"> 
        <if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
            <if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
            <if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
            <if test="zyxm != null and zyxm != ''"> and zyxm = #{zyxm} </if>
            <if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
            <if test="xb != null and xb != ''"> and xb = #{xb} </if>
            <if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
            <if test="zylb != null and zylb != ''"> and zylb = #{zylb} </if>
            <if test="sfzh != null and sfzh != ''"> and sfzh = #{sfzh} </if>
            <if test="zw != null and zw != ''"> and zw = #{zw} </if>
            <if test="tel != null and tel != ''"> and tel = #{tel} </if>
            <if test="email != null and email != ''"> and email = #{email} </if>
            <if test="jtzz != null and jtzz != ''"> and jtzz = #{jtzz} </if>
            <if test="csny != null and csny != ''"> and csny = #{csny} </if>
            <if test="whcd != null and whcd != ''"> and whcd = #{whcd} </if>
            <if test="dzrq != null and dzrq != ''"> and dzrq = #{dzrq} </if>
            <if test="lzrq != null and lzrq != ''"> and lzrq = #{lzrq} </if>
            <if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
            <if test="glzt != null and glzt != ''"> and GLzt = #{glzt} </if>
            <if test="zyzp != null and zyzp != ''"> and zyzp = #{zyzp} </if>
            <if test="scgzzn != null"> and scgzzn = #{scgzzn} </if>
            <if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
            <if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
            <if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
            <if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
            <if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
            <if test="bz != null and bz != ''"> and bz = #{bz} </if>
            <if test="password != null and password != ''"> and password = #{password} </if>
            <if test="dfyh != null and dfyh != ''"> and DFYH = #{dfyh} </if>
            <if test="grzh != null and grzh != ''"> and GRZH = #{grzh} </if>
            <if test="gwkyh != null and gwkyh != ''"> and GWKYH = #{gwkyh} </if>
            <if test="gwkzh != null and gwkzh != ''"> and GWKZH = #{gwkzh} </if>
            <if test="wbdm != null and wbdm != ''"> and WBDM = #{wbdm} </if>
            <if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 = #{zyzp1} </if>
            <if test="appsw != null and appsw != ''"> and appsw = #{appsw} </if>
            <if test="imei != null and imei != ''"> and imei = #{imei} </if>
            <if test="bdmm != null and bdmm != ''"> and bdmm = #{bdmm} </if>
            <if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin = #{isfirstlogin} </if>
            <if test="zj != null and zj != ''"> and ZJ = #{zj} </if>
    </trim>
    </select>

    <!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-SenderPubzyxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
    select
    <include refid="SenderPubzyxxEntity_Base_Column_List" />
    from pubzyxx
    <trim prefix="where" prefixOverrides="and"> 
        <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="zydm != null and zydm != ''"> and zydm like concat('%',#{zydm},'%') </if>
            <if test="zyxm != null and zyxm != ''"> and zyxm like concat('%',#{zyxm},'%') </if>
            <if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
            <if test="xb != null and xb != ''"> and xb like concat('%',#{xb},'%') </if>
            <if test="bmdm != null and bmdm != ''"> and bmdm like concat('%',#{bmdm},'%') </if>
            <if test="zylb != null and zylb != ''"> and zylb like concat('%',#{zylb},'%') </if>
            <if test="sfzh != null and sfzh != ''"> and sfzh like concat('%',#{sfzh},'%') </if>
            <if test="zw != null and zw != ''"> and zw like concat('%',#{zw},'%') </if>
            <if test="tel != null and tel != ''"> and tel like concat('%',#{tel},'%') </if>
            <if test="email != null and email != ''"> and email like concat('%',#{email},'%') </if>
            <if test="jtzz != null and jtzz != ''"> and jtzz like concat('%',#{jtzz},'%') </if>
            <if test="csny != null and csny != ''"> and csny like concat('%',#{csny},'%') </if>
            <if test="whcd != null and whcd != ''"> and whcd like concat('%',#{whcd},'%') </if>
            <if test="dzrq != null and dzrq != ''"> and dzrq like concat('%',#{dzrq},'%') </if>
            <if test="lzrq != null and lzrq != ''"> and lzrq like concat('%',#{lzrq},'%') </if>
            <if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
            <if test="glzt != null and glzt != ''"> and GLzt like concat('%',#{glzt},'%') </if>
            <if test="zyzp != null and zyzp != ''"> and zyzp like concat('%',#{zyzp},'%') </if>
            <if test="scgzzn != null"> and scgzzn like concat('%',#{scgzzn},'%') </if>
            <if test="jlrId != null"> and JLR_ID like concat('%',#{jlrId},'%') </if>
            <if test="jlRq != null and jlRq != ''"> and JL_RQ like concat('%',#{jlRq},'%') </if>
            <if test="xgrId != null"> and XGR_ID like concat('%',#{xgrId},'%') </if>
            <if test="xgRq != null and xgRq != ''"> and XG_RQ like concat('%',#{xgRq},'%') </if>
            <if test="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
            <if test="bz != null and bz != ''"> and bz like concat('%',#{bz},'%') </if>
            <if test="password != null and password != ''"> and password like concat('%',#{password},'%') </if>
            <if test="dfyh != null and dfyh != ''"> and DFYH like concat('%',#{dfyh},'%') </if>
            <if test="grzh != null and grzh != ''"> and GRZH like concat('%',#{grzh},'%') </if>
            <if test="gwkyh != null and gwkyh != ''"> and GWKYH like concat('%',#{gwkyh},'%') </if>
            <if test="gwkzh != null and gwkzh != ''"> and GWKZH like concat('%',#{gwkzh},'%') </if>
            <if test="wbdm != null and wbdm != ''"> and WBDM like concat('%',#{wbdm},'%') </if>
            <if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 like concat('%',#{zyzp1},'%') </if>
            <if test="appsw != null and appsw != ''"> and appsw like concat('%',#{appsw},'%') </if>
            <if test="imei != null and imei != ''"> and imei like concat('%',#{imei},'%') </if>
            <if test="bdmm != null and bdmm != ''"> and bdmm like concat('%',#{bdmm},'%') </if>
            <if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin like concat('%',#{isfirstlogin},'%') </if>
            <if test="zj != null and zj != ''"> and ZJ like concat('%',#{zj},'%') </if>
    </trim>
</select>

<!-- 查询列表 字段采用or格式 -->
<select id="SenderPubzyxxEntity_list_or" resultMap="get-SenderPubzyxxEntity-result" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity">
    select
    <include refid="SenderPubzyxxEntity_Base_Column_List" />
    from pubzyxx
    <trim prefix="where" prefixOverrides="and"> 
         <if test="gsdm != null and gsdm != ''"> or gsdm = #{gsdm} </if>
             <if test="kjnd != null and kjnd != ''"> or kjnd = #{kjnd} </if>
             <if test="zydm != null and zydm != ''"> or zydm = #{zydm} </if>
             <if test="zyxm != null and zyxm != ''"> or zyxm = #{zyxm} </if>
             <if test="zjm != null and zjm != ''"> or zjm = #{zjm} </if>
             <if test="xb != null and xb != ''"> or xb = #{xb} </if>
             <if test="bmdm != null and bmdm != ''"> or bmdm = #{bmdm} </if>
             <if test="zylb != null and zylb != ''"> or zylb = #{zylb} </if>
             <if test="sfzh != null and sfzh != ''"> or sfzh = #{sfzh} </if>
             <if test="zw != null and zw != ''"> or zw = #{zw} </if>
             <if test="tel != null and tel != ''"> or tel = #{tel} </if>
             <if test="email != null and email != ''"> or email = #{email} </if>
             <if test="jtzz != null and jtzz != ''"> or jtzz = #{jtzz} </if>
             <if test="csny != null and csny != ''"> or csny = #{csny} </if>
             <if test="whcd != null and whcd != ''"> or whcd = #{whcd} </if>
             <if test="dzrq != null and dzrq != ''"> or dzrq = #{dzrq} </if>
             <if test="lzrq != null and lzrq != ''"> or lzrq = #{lzrq} </if>
             <if test="syzt != null and syzt != ''"> or syzt = #{syzt} </if>
             <if test="glzt != null and glzt != ''"> or GLzt = #{glzt} </if>
             <if test="zyzp != null and zyzp != ''"> or zyzp = #{zyzp} </if>
             <if test="scgzzn != null"> or scgzzn = #{scgzzn} </if>
             <if test="jlrId != null"> or JLR_ID = #{jlrId} </if>
             <if test="jlRq != null and jlRq != ''"> or JL_RQ = #{jlRq} </if>
             <if test="xgrId != null"> or XGR_ID = #{xgrId} </if>
             <if test="xgRq != null and xgRq != ''"> or XG_RQ = #{xgRq} </if>
             <if test="sjly != null and sjly != ''"> or Sjly = #{sjly} </if>
             <if test="bz != null and bz != ''"> or bz = #{bz} </if>
             <if test="password != null and password != ''"> or password = #{password} </if>
             <if test="dfyh != null and dfyh != ''"> or DFYH = #{dfyh} </if>
             <if test="grzh != null and grzh != ''"> or GRZH = #{grzh} </if>
             <if test="gwkyh != null and gwkyh != ''"> or GWKYH = #{gwkyh} </if>
             <if test="gwkzh != null and gwkzh != ''"> or GWKZH = #{gwkzh} </if>
             <if test="wbdm != null and wbdm != ''"> or WBDM = #{wbdm} </if>
             <if test="zyzp1 != null and zyzp1 != ''"> or zyzp1 = #{zyzp1} </if>
             <if test="appsw != null and appsw != ''"> or appsw = #{appsw} </if>
             <if test="imei != null and imei != ''"> or imei = #{imei} </if>
             <if test="bdmm != null and bdmm != ''"> or bdmm = #{bdmm} </if>
             <if test="isfirstlogin != null and isfirstlogin != ''"> or isFirstLogin = #{isfirstlogin} </if>
             <if test="zj != null and zj != ''"> or ZJ = #{zj} </if>
    </trim>
</select>

<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" keyProperty="" useGeneratedKeys="true">
    insert into pubzyxx(
    <trim suffix="" suffixOverrides=",">
        <if test="gsdm != null and gsdm != ''"> gsdm , </if>
        <if test="zydm != null and zydm != ''"> zydm , </if>
        <if test="zyxm != null and zyxm != ''"> zyxm , </if>
        <if test="zjm != null and zjm != ''"> zjm , </if>
        <if test="xb != null and xb != ''"> xb , </if>
        <if test="bmdm != null and bmdm != ''"> bmdm , </if>
        <if test="zylb != null and zylb != ''"> zylb , </if>
        <if test="sfzh != null and sfzh != ''"> sfzh , </if>
        <if test="zw != null and zw != ''"> zw , </if>
        <if test="tel != null and tel != ''"> tel , </if>
        <if test="email != null and email != ''"> email , </if>
        <if test="jtzz != null and jtzz != ''"> jtzz , </if>
        <if test="csny != null and csny != ''"> csny , </if>
        <if test="whcd != null and whcd != ''"> whcd , </if>
        <if test="dzrq != null and dzrq != ''"> dzrq , </if>
        <if test="lzrq != null and lzrq != ''"> lzrq , </if>
        <if test="syzt != null and syzt != ''"> syzt , </if>
        <if test="glzt != null and glzt != ''"> GLzt , </if>
        <if test="zyzp != null and zyzp != ''"> zyzp , </if>
        <if test="scgzzn != null"> scgzzn , </if>
        <if test="jlrId != null"> JLR_ID , </if>
        <if test="jlRq != null and jlRq != ''"> JL_RQ , </if>
        <if test="xgrId != null"> XGR_ID , </if>
        <if test="xgRq != null and xgRq != ''"> XG_RQ , </if>
        <if test="sjly != null and sjly != ''"> Sjly , </if>
        <if test="bz != null and bz != ''"> bz , </if>
        <if test="password != null and password != ''"> password , </if>
        <if test="dfyh != null and dfyh != ''"> DFYH , </if>
        <if test="grzh != null and grzh != ''"> GRZH , </if>
        <if test="gwkyh != null and gwkyh != ''"> GWKYH , </if>
        <if test="gwkzh != null and gwkzh != ''"> GWKZH , </if>
        <if test="wbdm != null and wbdm != ''"> WBDM , </if>
        <if test="zyzp1 != null and zyzp1 != ''"> zyzp1 , </if>
        <if test="appsw != null and appsw != ''"> appsw , </if>
        <if test="imei != null and imei != ''"> imei , </if>
        <if test="bdmm != null and bdmm != ''"> bdmm , </if>
        <if test="isfirstlogin != null and isfirstlogin != ''"> isFirstLogin , </if>
        <if test="zj != null and zj != ''"> ZJ, </if>
        <if test="mmxgrq != null and mmxgrq != ''"> mmxgrq, </if>
        <if test="xh != null and xh != ''"> xh, </if>
        <if test="deviceid != null and deviceid != ''"> deviceid, </if>
        <if test="kjnd != null and kjnd != ''"> kjnd  </if>
    </trim>
    )values(
    <trim suffix="" suffixOverrides=",">
        <if test="gsdm != null and gsdm != ''"> #{gsdm} ,</if>
        <if test="zydm != null and zydm != ''"> #{zydm} ,</if>
        <if test="zyxm != null and zyxm != ''"> #{zyxm} ,</if>
        <if test="zjm != null and zjm != ''"> #{zjm} ,</if>
        <if test="xb != null and xb != ''"> #{xb} ,</if>
        <if test="bmdm != null and bmdm != ''"> #{bmdm} ,</if>
        <if test="zylb != null and zylb != ''"> #{zylb} ,</if>
        <if test="sfzh != null and sfzh != ''"> #{sfzh} ,</if>
        <if test="zw != null and zw != ''"> #{zw} ,</if>
        <if test="tel != null and tel != ''"> #{tel} ,</if>
        <if test="email != null and email != ''"> #{email} ,</if>
        <if test="jtzz != null and jtzz != ''"> #{jtzz} ,</if>
        <if test="csny != null and csny != ''"> #{csny} ,</if>
        <if test="whcd != null and whcd != ''"> #{whcd} ,</if>
        <if test="dzrq != null and dzrq != ''"> #{dzrq} ,</if>
        <if test="lzrq != null and lzrq != ''"> #{lzrq} ,</if>
        <if test="syzt != null and syzt != ''"> #{syzt} ,</if>
        <if test="glzt != null and glzt != ''"> #{glzt} ,</if>
        <if test="zyzp != null and zyzp != ''"> #{zyzp} ,</if>
        <if test="scgzzn != null"> #{scgzzn} ,</if>
        <if test="jlrId != null"> #{jlrId} ,</if>
        <if test="jlRq != null and jlRq != ''"> #{jlRq} ,</if>
        <if test="xgrId != null"> #{xgrId} ,</if>
        <if test="xgRq != null and xgRq != ''"> #{xgRq} ,</if>
        <if test="sjly != null and sjly != ''"> #{sjly} ,</if>
        <if test="bz != null and bz != ''"> #{bz} ,</if>
        <if test="password != null and password != ''"> #{password} ,</if>
        <if test="dfyh != null and dfyh != ''"> #{dfyh} ,</if>
        <if test="grzh != null and grzh != ''"> #{grzh} ,</if>
        <if test="gwkyh != null and gwkyh != ''"> #{gwkyh} ,</if>
        <if test="gwkzh != null and gwkzh != ''"> #{gwkzh} ,</if>
        <if test="wbdm != null and wbdm != ''"> #{wbdm} ,</if>
        <if test="zyzp1 != null and zyzp1 != ''"> #{zyzp1} ,</if>
        <if test="appsw != null and appsw != ''"> #{appsw} ,</if>
        <if test="imei != null and imei != ''"> #{imei} ,</if>
        <if test="bdmm != null and bdmm != ''"> #{bdmm} ,</if>
        <if test="isfirstlogin != null and isfirstlogin != ''"> #{isfirstlogin} ,</if>
        <if test="zj != null and zj != ''"> #{zj} ,</if>
        <if test="mmxgrq != null and mmxgrq != ''"> #{mmxgrq} ,</if>
        <if test="xh != null and xh != ''"> #{xh} ,</if>
        <if test="deviceid != null and deviceid != ''"> #{deviceid} ,</if>
        <if test="kjnd != null and kjnd != ''"> #{kjnd} </if>
    </trim>
    )
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
  insert into pubzyxx(gsdm, kjnd, zydm, zyxm, zjm, xb, bmdm, zylb, sfzh, zw, tel, email, jtzz, csny, whcd, dzrq, lzrq, syzt, GLzt, zyzp, scgzzn, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, bz, password, DFYH, GRZH, GWKYH, GWKZH, WBDM, zyzp1, appsw, imei, bdmm, isFirstLogin, ZJ)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.gsdm},#{entity.kjnd},#{entity.zydm},#{entity.zyxm},#{entity.zjm},#{entity.xb},#{entity.bmdm},#{entity.zylb},#{entity.sfzh},#{entity.zw},#{entity.tel},#{entity.email},#{entity.jtzz},#{entity.csny},#{entity.whcd},#{entity.dzrq},#{entity.lzrq},#{entity.syzt},#{entity.glzt},#{entity.zyzp},#{entity.scgzzn},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.bz},#{entity.password},#{entity.dfyh},#{entity.grzh},#{entity.gwkyh},#{entity.gwkzh},#{entity.wbdm},#{entity.zyzp1},#{entity.appsw},#{entity.imei},#{entity.bdmm},#{entity.isfirstlogin},#{entity.zj})
    </foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
    insert into pubzyxx(gsdm, kjnd, zydm, zyxm, zjm, xb, bmdm, zylb, sfzh, zw, tel, email, jtzz, csny, whcd, dzrq, lzrq, syzt, GLzt, zyzp, scgzzn, JLR_ID, JL_RQ, XGR_ID, XG_RQ, Sjly, bz, password, DFYH, GRZH, GWKYH, GWKZH, WBDM, zyzp1, appsw, imei, bdmm, isFirstLogin, ZJ)
    values
    <foreach collection="entities" item="entity" separator=",">
    (#{entity.gsdm},#{entity.kjnd},#{entity.zydm},#{entity.zyxm},#{entity.zjm},#{entity.xb},#{entity.bmdm},#{entity.zylb},#{entity.sfzh},#{entity.zw},#{entity.tel},#{entity.email},#{entity.jtzz},#{entity.csny},#{entity.whcd},#{entity.dzrq},#{entity.lzrq},#{entity.syzt},#{entity.glzt},#{entity.zyzp},#{entity.scgzzn},#{entity.jlrId},#{entity.jlRq},#{entity.xgrId},#{entity.xgRq},#{entity.sjly},#{entity.bz},#{entity.password},#{entity.dfyh},#{entity.grzh},#{entity.gwkyh},#{entity.gwkzh},#{entity.wbdm},#{entity.zyzp1},#{entity.appsw},#{entity.imei},#{entity.bdmm},#{entity.isfirstlogin},#{entity.zj})
    </foreach>
    on duplicate key update
    gsdm = values(gsdm),
    kjnd = values(kjnd),
    zydm = values(zydm),
    zyxm = values(zyxm),
    zjm = values(zjm),
    xb = values(xb),
    bmdm = values(bmdm),
    zylb = values(zylb),
    sfzh = values(sfzh),
    zw = values(zw),
    tel = values(tel),
    email = values(email),
    jtzz = values(jtzz),
    csny = values(csny),
    whcd = values(whcd),
    dzrq = values(dzrq),
    lzrq = values(lzrq),
    syzt = values(syzt),
    GLzt = values(GLzt),
    zyzp = values(zyzp),
    scgzzn = values(scgzzn),
    JLR_ID = values(JLR_ID),
    JL_RQ = values(JL_RQ),
    XGR_ID = values(XGR_ID),
    XG_RQ = values(XG_RQ),
    Sjly = values(Sjly),
    bz = values(bz),
    password = values(password),
    DFYH = values(DFYH),
    GRZH = values(GRZH),
    GWKYH = values(GWKYH),
    GWKZH = values(GWKZH),
    WBDM = values(WBDM),
    zyzp1 = values(zyzp1),
    appsw = values(appsw),
    imei = values(imei),
    bdmm = values(bdmm),
    isFirstLogin = values(isFirstLogin),
    ZJ = values(ZJ)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
    update pubzyxx  set
    <trim suffix="" suffixOverrides=",">
        <if test="gsdm != null and gsdm != ''"> gsdm = #{gsdm},</if>
        <if test="kjnd != null and kjnd != ''"> kjnd = #{kjnd},</if>
        <if test="zydm != null and zydm != ''"> zydm = #{zydm},</if>
        <if test="zyxm != null and zyxm != ''"> zyxm = #{zyxm},</if>
        <if test="zjm != null and zjm != ''"> zjm = #{zjm},</if>
        <if test="xb != null and xb != ''"> xb = #{xb},</if>
        <if test="bmdm != null and bmdm != ''"> bmdm = #{bmdm},</if>
        <if test="zylb != null and zylb != ''"> zylb = #{zylb},</if>
        <if test="sfzh != null and sfzh != ''"> sfzh = #{sfzh},</if>
        <if test="zw != null and zw != ''"> zw = #{zw},</if>
        <if test="tel != null and tel != ''"> tel = #{tel},</if>
        <if test="email != null and email != ''"> email = #{email},</if>
        <if test="jtzz != null and jtzz != ''"> jtzz = #{jtzz},</if>
        <if test="csny != null and csny != ''"> csny = #{csny},</if>
        <if test="whcd != null and whcd != ''"> whcd = #{whcd},</if>
        <if test="dzrq != null and dzrq != ''"> dzrq = #{dzrq},</if>
        <if test="lzrq != null and lzrq != ''"> lzrq = #{lzrq},</if>
        <if test="syzt != null and syzt != ''"> syzt = #{syzt},</if>
        <if test="glzt != null and glzt != ''"> GLzt = #{glzt},</if>
        <if test="zyzp != null and zyzp != ''"> zyzp = #{zyzp},</if>
        <if test="scgzzn != null"> scgzzn = #{scgzzn},</if>
        <if test="jlrId != null"> JLR_ID = #{jlrId},</if>
        <if test="jlRq != null and jlRq != ''"> JL_RQ = #{jlRq},</if>
        <if test="xgrId != null"> XGR_ID = #{xgrId},</if>
        <if test="xgRq != null and xgRq != ''"> XG_RQ = #{xgRq},</if>
        <if test="sjly != null and sjly != ''"> Sjly = #{sjly},</if>
        <if test="bz != null and bz != ''"> bz = #{bz},</if>
        <if test="password != null and password != ''"> password = #{password},</if>
        <if test="dfyh != null and dfyh != ''"> DFYH = #{dfyh},</if>
        <if test="grzh != null and grzh != ''"> GRZH = #{grzh},</if>
        <if test="gwkyh != null and gwkyh != ''"> GWKYH = #{gwkyh},</if>
        <if test="gwkzh != null and gwkzh != ''"> GWKZH = #{gwkzh},</if>
        <if test="wbdm != null and wbdm != ''"> WBDM = #{wbdm},</if>
        <if test="zyzp1 != null and zyzp1 != ''"> zyzp1 = #{zyzp1},</if>
        <if test="appsw != null and appsw != ''"> appsw = #{appsw},</if>
        <if test="imei != null and imei != ''"> imei = #{imei},</if>
        <if test="bdmm != null and bdmm != ''"> bdmm = #{bdmm},</if>
        <if test="isfirstlogin != null and isfirstlogin != ''"> isFirstLogin = #{isfirstlogin},</if>
        <if test="zj != null and zj != ''"> ZJ = #{zj},</if>
        <if test="mmxgrq != null and mmxgrq != ''"> mmxgrq = #{mmxgrq},</if>
        <if test="xh != null and xh != ''"> xh = #{xh},</if>
        <if test="deviceid != null and deviceid != ''"> deviceid = #{deviceid}</if>
    </trim>
    where  kjnd= #{kjnd} and gsdm=#{gsdm} and zydm=#{zydm}
</update>
<!-- 逻辑删除 -->
<update id="SenderPubzyxxEntity_logicDelete" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
update pubzyxx  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where  id= #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="SenderPubzyxxEntity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.grpU8.nxproof.pubzyxx.entity.SenderPubzyxxEntity" >
update pubzyxx  set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
 <trim prefix="where" prefixOverrides="and"> 
        <if test="gsdm != null and gsdm != ''"> and gsdm = #{gsdm} </if>
            <if test="kjnd != null and kjnd != ''"> and kjnd = #{kjnd} </if>
            <if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
            <if test="zyxm != null and zyxm != ''"> and zyxm = #{zyxm} </if>
            <if test="zjm != null and zjm != ''"> and zjm = #{zjm} </if>
            <if test="xb != null and xb != ''"> and xb = #{xb} </if>
            <if test="bmdm != null and bmdm != ''"> and bmdm = #{bmdm} </if>
            <if test="zylb != null and zylb != ''"> and zylb = #{zylb} </if>
            <if test="sfzh != null and sfzh != ''"> and sfzh = #{sfzh} </if>
            <if test="zw != null and zw != ''"> and zw = #{zw} </if>
            <if test="tel != null and tel != ''"> and tel = #{tel} </if>
            <if test="email != null and email != ''"> and email = #{email} </if>
            <if test="jtzz != null and jtzz != ''"> and jtzz = #{jtzz} </if>
            <if test="csny != null and csny != ''"> and csny = #{csny} </if>
            <if test="whcd != null and whcd != ''"> and whcd = #{whcd} </if>
            <if test="dzrq != null and dzrq != ''"> and dzrq = #{dzrq} </if>
            <if test="lzrq != null and lzrq != ''"> and lzrq = #{lzrq} </if>
            <if test="syzt != null and syzt != ''"> and syzt = #{syzt} </if>
            <if test="glzt != null and glzt != ''"> and GLzt = #{glzt} </if>
            <if test="zyzp != null and zyzp != ''"> and zyzp = #{zyzp} </if>
            <if test="scgzzn != null"> and scgzzn = #{scgzzn} </if>
            <if test="jlrId != null"> and JLR_ID = #{jlrId} </if>
            <if test="jlRq != null and jlRq != ''"> and JL_RQ = #{jlRq} </if>
            <if test="xgrId != null"> and XGR_ID = #{xgrId} </if>
            <if test="xgRq != null and xgRq != ''"> and XG_RQ = #{xgRq} </if>
            <if test="sjly != null and sjly != ''"> and Sjly = #{sjly} </if>
            <if test="bz != null and bz != ''"> and bz = #{bz} </if>
            <if test="password != null and password != ''"> and password = #{password} </if>
            <if test="dfyh != null and dfyh != ''"> and DFYH = #{dfyh} </if>
            <if test="grzh != null and grzh != ''"> and GRZH = #{grzh} </if>
            <if test="gwkyh != null and gwkyh != ''"> and GWKYH = #{gwkyh} </if>
            <if test="gwkzh != null and gwkzh != ''"> and GWKZH = #{gwkzh} </if>
            <if test="wbdm != null and wbdm != ''"> and WBDM = #{wbdm} </if>
            <if test="zyzp1 != null and zyzp1 != ''"> and zyzp1 = #{zyzp1} </if>
            <if test="appsw != null and appsw != ''"> and appsw = #{appsw} </if>
            <if test="imei != null and imei != ''"> and imei = #{imei} </if>
            <if test="bdmm != null and bdmm != ''"> and bdmm = #{bdmm} </if>
            <if test="isfirstlogin != null and isfirstlogin != ''"> and isFirstLogin = #{isfirstlogin} </if>
            <if test="zj != null and zj != ''"> and ZJ = #{zj} </if>
            and sts='Y'
    </trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
    delete from pubzyxx where id = #{id}
</delete>

    <!--通过主键删除-->
    <delete id="SenderPubzyxxEntity_delete_zyxx">
        delete from pubzyxx where kjnd = #{kjnd} and gsdm=#{gsdm}
        <if test="zydm != null and zydm != ''"> and zydm = #{zydm} </if>
    </delete>

</mapper>

