<?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="cn.superdesk.uniorder.dao.mapper.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxx">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="fpqqlsh" jdbcType="VARCHAR" property="fpqqlsh" />
    <result column="kpxm" jdbcType="VARCHAR" property="kpxm" />
    <result column="xhf_nsrsbh" jdbcType="VARCHAR" property="xhfNsrsbh" />
    <result column="xhfmc" jdbcType="VARCHAR" property="xhfmc" />
    <result column="xhf_dzdh" jdbcType="VARCHAR" property="xhfDzdh" />
    <result column="xhf_yhzh" jdbcType="VARCHAR" property="xhfYhzh" />
    <result column="ghfmc" jdbcType="VARCHAR" property="ghfmc" />
    <result column="ghf_nsrsbh" jdbcType="VARCHAR" property="ghfNsrsbh" />
    <result column="ghf_yhzh" jdbcType="VARCHAR" property="ghfYhzh" />
    <result column="ghf_dzdh" jdbcType="VARCHAR" property="ghfDzdh" />
    <result column="ghf_sj" jdbcType="VARCHAR" property="ghfSj" />
    <result column="ghf_email" jdbcType="VARCHAR" property="ghfEmail" />
    <result column="bill_sent_sign" jdbcType="VARCHAR" property="billSentSign" />
    <result column="call_back_url" jdbcType="VARCHAR" property="callBackUrl" />
    <result column="ghfqylx" jdbcType="VARCHAR" property="ghfqylx" />
    <result column="dkbz" jdbcType="VARCHAR" property="dkbz" />
    <result column="fjh" jdbcType="VARCHAR" property="fjh" />
    <result column="kpy" jdbcType="VARCHAR" property="kpy" />
    <result column="sky" jdbcType="VARCHAR" property="sky" />
    <result column="fhr" jdbcType="VARCHAR" property="fhr" />
    <result column="kplx" jdbcType="VARCHAR" property="kplx" />
    <result column="yfp_dm" jdbcType="VARCHAR" property="yfpDm" />
    <result column="yfp_hm" jdbcType="VARCHAR" property="yfpHm" />
    <result column="qd_bz" jdbcType="VARCHAR" property="qdBz" />
    <result column="qdxmmc" jdbcType="VARCHAR" property="qdxmmc" />
    <result column="kphjje" jdbcType="DECIMAL" property="kphjje" />
    <result column="hjbhsje" jdbcType="DECIMAL" property="hjbhsje" />
    <result column="hjse" jdbcType="DECIMAL" property="hjse" />
    <result column="bz" jdbcType="VARCHAR" property="bz" />
    <result column="return_code" jdbcType="VARCHAR" property="returnCode" />
    <result column="return_msg" jdbcType="VARCHAR" property="returnMsg" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
    <result column="create_user_name" jdbcType="VARCHAR" property="createUserName" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_user_id" jdbcType="BIGINT" property="updateUserId" />
    <result column="update_user_name" jdbcType="VARCHAR" property="updateUserName" />
    <result column="deleted" jdbcType="TINYINT" property="deleted" />
    <result column="batch_id" jdbcType="VARCHAR" property="batchId" />
    <result column="invoice_type" jdbcType="TINYINT" property="invoiceType" />
    <result column="red_reason" jdbcType="TINYINT" property="redReason" />
    <result column="blue_inv_date" jdbcType="VARCHAR" property="blueInvDate" />
    <result column="blue_inv_kind" jdbcType="VARCHAR" property="blueInvKind" />
    <result column="inv_reason" jdbcType="TINYINT" property="invReason" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    id, fpqqlsh, kpxm, xhf_nsrsbh, xhfmc, xhf_dzdh, xhf_yhzh, ghfmc, ghf_nsrsbh, ghf_yhzh, 
    ghf_dzdh, ghf_sj, ghf_email, bill_sent_sign, call_back_url, ghfqylx, dkbz, fjh, kpy, 
    sky, fhr, kplx, yfp_dm, yfp_hm, qd_bz, qdxmmc, kphjje, hjbhsje, hjse, bz, return_code, 
    return_msg, create_time, create_user_id, create_user_name, update_time, update_user_id, 
    update_user_name, deleted, batch_id, invoice_type, red_reason, blue_inv_date, blue_inv_kind, 
    inv_reason
  </sql>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from szhtxx_electronic_invoice_fptxx
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from szhtxx_electronic_invoice_fptxx
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from szhtxx_electronic_invoice_fptxx
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExample">
    delete from szhtxx_electronic_invoice_fptxx
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxx">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into szhtxx_electronic_invoice_fptxx (fpqqlsh, kpxm, xhf_nsrsbh, 
      xhfmc, xhf_dzdh, xhf_yhzh, 
      ghfmc, ghf_nsrsbh, ghf_yhzh, 
      ghf_dzdh, ghf_sj, ghf_email, 
      bill_sent_sign, call_back_url, ghfqylx, 
      dkbz, fjh, kpy, sky, 
      fhr, kplx, yfp_dm, yfp_hm, 
      qd_bz, qdxmmc, kphjje, 
      hjbhsje, hjse, bz, 
      return_code, return_msg, create_time, 
      create_user_id, create_user_name, update_time, 
      update_user_id, update_user_name, deleted, 
      batch_id, invoice_type, red_reason, 
      blue_inv_date, blue_inv_kind, inv_reason
      )
    values (#{fpqqlsh,jdbcType=VARCHAR}, #{kpxm,jdbcType=VARCHAR}, #{xhfNsrsbh,jdbcType=VARCHAR}, 
      #{xhfmc,jdbcType=VARCHAR}, #{xhfDzdh,jdbcType=VARCHAR}, #{xhfYhzh,jdbcType=VARCHAR}, 
      #{ghfmc,jdbcType=VARCHAR}, #{ghfNsrsbh,jdbcType=VARCHAR}, #{ghfYhzh,jdbcType=VARCHAR}, 
      #{ghfDzdh,jdbcType=VARCHAR}, #{ghfSj,jdbcType=VARCHAR}, #{ghfEmail,jdbcType=VARCHAR}, 
      #{billSentSign,jdbcType=VARCHAR}, #{callBackUrl,jdbcType=VARCHAR}, #{ghfqylx,jdbcType=VARCHAR}, 
      #{dkbz,jdbcType=VARCHAR}, #{fjh,jdbcType=VARCHAR}, #{kpy,jdbcType=VARCHAR}, #{sky,jdbcType=VARCHAR}, 
      #{fhr,jdbcType=VARCHAR}, #{kplx,jdbcType=VARCHAR}, #{yfpDm,jdbcType=VARCHAR}, #{yfpHm,jdbcType=VARCHAR}, 
      #{qdBz,jdbcType=VARCHAR}, #{qdxmmc,jdbcType=VARCHAR}, #{kphjje,jdbcType=DECIMAL}, 
      #{hjbhsje,jdbcType=DECIMAL}, #{hjse,jdbcType=DECIMAL}, #{bz,jdbcType=VARCHAR}, 
      #{returnCode,jdbcType=VARCHAR}, #{returnMsg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{createUserId,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{updateUserId,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, #{deleted,jdbcType=TINYINT}, 
      #{batchId,jdbcType=VARCHAR}, #{invoiceType,jdbcType=TINYINT}, #{redReason,jdbcType=TINYINT}, 
      #{blueInvDate,jdbcType=VARCHAR}, #{blueInvKind,jdbcType=VARCHAR}, #{invReason,jdbcType=TINYINT}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxx">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into szhtxx_electronic_invoice_fptxx
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fpqqlsh != null">
        fpqqlsh,
      </if>
      <if test="kpxm != null">
        kpxm,
      </if>
      <if test="xhfNsrsbh != null">
        xhf_nsrsbh,
      </if>
      <if test="xhfmc != null">
        xhfmc,
      </if>
      <if test="xhfDzdh != null">
        xhf_dzdh,
      </if>
      <if test="xhfYhzh != null">
        xhf_yhzh,
      </if>
      <if test="ghfmc != null">
        ghfmc,
      </if>
      <if test="ghfNsrsbh != null">
        ghf_nsrsbh,
      </if>
      <if test="ghfYhzh != null">
        ghf_yhzh,
      </if>
      <if test="ghfDzdh != null">
        ghf_dzdh,
      </if>
      <if test="ghfSj != null">
        ghf_sj,
      </if>
      <if test="ghfEmail != null">
        ghf_email,
      </if>
      <if test="billSentSign != null">
        bill_sent_sign,
      </if>
      <if test="callBackUrl != null">
        call_back_url,
      </if>
      <if test="ghfqylx != null">
        ghfqylx,
      </if>
      <if test="dkbz != null">
        dkbz,
      </if>
      <if test="fjh != null">
        fjh,
      </if>
      <if test="kpy != null">
        kpy,
      </if>
      <if test="sky != null">
        sky,
      </if>
      <if test="fhr != null">
        fhr,
      </if>
      <if test="kplx != null">
        kplx,
      </if>
      <if test="yfpDm != null">
        yfp_dm,
      </if>
      <if test="yfpHm != null">
        yfp_hm,
      </if>
      <if test="qdBz != null">
        qd_bz,
      </if>
      <if test="qdxmmc != null">
        qdxmmc,
      </if>
      <if test="kphjje != null">
        kphjje,
      </if>
      <if test="hjbhsje != null">
        hjbhsje,
      </if>
      <if test="hjse != null">
        hjse,
      </if>
      <if test="bz != null">
        bz,
      </if>
      <if test="returnCode != null">
        return_code,
      </if>
      <if test="returnMsg != null">
        return_msg,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createUserId != null">
        create_user_id,
      </if>
      <if test="createUserName != null">
        create_user_name,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateUserId != null">
        update_user_id,
      </if>
      <if test="updateUserName != null">
        update_user_name,
      </if>
      <if test="deleted != null">
        deleted,
      </if>
      <if test="batchId != null">
        batch_id,
      </if>
      <if test="invoiceType != null">
        invoice_type,
      </if>
      <if test="redReason != null">
        red_reason,
      </if>
      <if test="blueInvDate != null">
        blue_inv_date,
      </if>
      <if test="blueInvKind != null">
        blue_inv_kind,
      </if>
      <if test="invReason != null">
        inv_reason,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fpqqlsh != null">
        #{fpqqlsh,jdbcType=VARCHAR},
      </if>
      <if test="kpxm != null">
        #{kpxm,jdbcType=VARCHAR},
      </if>
      <if test="xhfNsrsbh != null">
        #{xhfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="xhfmc != null">
        #{xhfmc,jdbcType=VARCHAR},
      </if>
      <if test="xhfDzdh != null">
        #{xhfDzdh,jdbcType=VARCHAR},
      </if>
      <if test="xhfYhzh != null">
        #{xhfYhzh,jdbcType=VARCHAR},
      </if>
      <if test="ghfmc != null">
        #{ghfmc,jdbcType=VARCHAR},
      </if>
      <if test="ghfNsrsbh != null">
        #{ghfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="ghfYhzh != null">
        #{ghfYhzh,jdbcType=VARCHAR},
      </if>
      <if test="ghfDzdh != null">
        #{ghfDzdh,jdbcType=VARCHAR},
      </if>
      <if test="ghfSj != null">
        #{ghfSj,jdbcType=VARCHAR},
      </if>
      <if test="ghfEmail != null">
        #{ghfEmail,jdbcType=VARCHAR},
      </if>
      <if test="billSentSign != null">
        #{billSentSign,jdbcType=VARCHAR},
      </if>
      <if test="callBackUrl != null">
        #{callBackUrl,jdbcType=VARCHAR},
      </if>
      <if test="ghfqylx != null">
        #{ghfqylx,jdbcType=VARCHAR},
      </if>
      <if test="dkbz != null">
        #{dkbz,jdbcType=VARCHAR},
      </if>
      <if test="fjh != null">
        #{fjh,jdbcType=VARCHAR},
      </if>
      <if test="kpy != null">
        #{kpy,jdbcType=VARCHAR},
      </if>
      <if test="sky != null">
        #{sky,jdbcType=VARCHAR},
      </if>
      <if test="fhr != null">
        #{fhr,jdbcType=VARCHAR},
      </if>
      <if test="kplx != null">
        #{kplx,jdbcType=VARCHAR},
      </if>
      <if test="yfpDm != null">
        #{yfpDm,jdbcType=VARCHAR},
      </if>
      <if test="yfpHm != null">
        #{yfpHm,jdbcType=VARCHAR},
      </if>
      <if test="qdBz != null">
        #{qdBz,jdbcType=VARCHAR},
      </if>
      <if test="qdxmmc != null">
        #{qdxmmc,jdbcType=VARCHAR},
      </if>
      <if test="kphjje != null">
        #{kphjje,jdbcType=DECIMAL},
      </if>
      <if test="hjbhsje != null">
        #{hjbhsje,jdbcType=DECIMAL},
      </if>
      <if test="hjse != null">
        #{hjse,jdbcType=DECIMAL},
      </if>
      <if test="bz != null">
        #{bz,jdbcType=VARCHAR},
      </if>
      <if test="returnCode != null">
        #{returnCode,jdbcType=VARCHAR},
      </if>
      <if test="returnMsg != null">
        #{returnMsg,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="createUserName != null">
        #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="updateUserName != null">
        #{updateUserName,jdbcType=VARCHAR},
      </if>
      <if test="deleted != null">
        #{deleted,jdbcType=TINYINT},
      </if>
      <if test="batchId != null">
        #{batchId,jdbcType=VARCHAR},
      </if>
      <if test="invoiceType != null">
        #{invoiceType,jdbcType=TINYINT},
      </if>
      <if test="redReason != null">
        #{redReason,jdbcType=TINYINT},
      </if>
      <if test="blueInvDate != null">
        #{blueInvDate,jdbcType=VARCHAR},
      </if>
      <if test="blueInvKind != null">
        #{blueInvKind,jdbcType=VARCHAR},
      </if>
      <if test="invReason != null">
        #{invReason,jdbcType=TINYINT},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExample" resultType="java.lang.Long">
    select count(*) from szhtxx_electronic_invoice_fptxx
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update szhtxx_electronic_invoice_fptxx
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.fpqqlsh != null">
        fpqqlsh = #{record.fpqqlsh,jdbcType=VARCHAR},
      </if>
      <if test="record.kpxm != null">
        kpxm = #{record.kpxm,jdbcType=VARCHAR},
      </if>
      <if test="record.xhfNsrsbh != null">
        xhf_nsrsbh = #{record.xhfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="record.xhfmc != null">
        xhfmc = #{record.xhfmc,jdbcType=VARCHAR},
      </if>
      <if test="record.xhfDzdh != null">
        xhf_dzdh = #{record.xhfDzdh,jdbcType=VARCHAR},
      </if>
      <if test="record.xhfYhzh != null">
        xhf_yhzh = #{record.xhfYhzh,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfmc != null">
        ghfmc = #{record.ghfmc,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfNsrsbh != null">
        ghf_nsrsbh = #{record.ghfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfYhzh != null">
        ghf_yhzh = #{record.ghfYhzh,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfDzdh != null">
        ghf_dzdh = #{record.ghfDzdh,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfSj != null">
        ghf_sj = #{record.ghfSj,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfEmail != null">
        ghf_email = #{record.ghfEmail,jdbcType=VARCHAR},
      </if>
      <if test="record.billSentSign != null">
        bill_sent_sign = #{record.billSentSign,jdbcType=VARCHAR},
      </if>
      <if test="record.callBackUrl != null">
        call_back_url = #{record.callBackUrl,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfqylx != null">
        ghfqylx = #{record.ghfqylx,jdbcType=VARCHAR},
      </if>
      <if test="record.dkbz != null">
        dkbz = #{record.dkbz,jdbcType=VARCHAR},
      </if>
      <if test="record.fjh != null">
        fjh = #{record.fjh,jdbcType=VARCHAR},
      </if>
      <if test="record.kpy != null">
        kpy = #{record.kpy,jdbcType=VARCHAR},
      </if>
      <if test="record.sky != null">
        sky = #{record.sky,jdbcType=VARCHAR},
      </if>
      <if test="record.fhr != null">
        fhr = #{record.fhr,jdbcType=VARCHAR},
      </if>
      <if test="record.kplx != null">
        kplx = #{record.kplx,jdbcType=VARCHAR},
      </if>
      <if test="record.yfpDm != null">
        yfp_dm = #{record.yfpDm,jdbcType=VARCHAR},
      </if>
      <if test="record.yfpHm != null">
        yfp_hm = #{record.yfpHm,jdbcType=VARCHAR},
      </if>
      <if test="record.qdBz != null">
        qd_bz = #{record.qdBz,jdbcType=VARCHAR},
      </if>
      <if test="record.qdxmmc != null">
        qdxmmc = #{record.qdxmmc,jdbcType=VARCHAR},
      </if>
      <if test="record.kphjje != null">
        kphjje = #{record.kphjje,jdbcType=DECIMAL},
      </if>
      <if test="record.hjbhsje != null">
        hjbhsje = #{record.hjbhsje,jdbcType=DECIMAL},
      </if>
      <if test="record.hjse != null">
        hjse = #{record.hjse,jdbcType=DECIMAL},
      </if>
      <if test="record.bz != null">
        bz = #{record.bz,jdbcType=VARCHAR},
      </if>
      <if test="record.returnCode != null">
        return_code = #{record.returnCode,jdbcType=VARCHAR},
      </if>
      <if test="record.returnMsg != null">
        return_msg = #{record.returnMsg,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.createUserId != null">
        create_user_id = #{record.createUserId,jdbcType=BIGINT},
      </if>
      <if test="record.createUserName != null">
        create_user_name = #{record.createUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.updateUserId != null">
        update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      </if>
      <if test="record.updateUserName != null">
        update_user_name = #{record.updateUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.deleted != null">
        deleted = #{record.deleted,jdbcType=TINYINT},
      </if>
      <if test="record.batchId != null">
        batch_id = #{record.batchId,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceType != null">
        invoice_type = #{record.invoiceType,jdbcType=TINYINT},
      </if>
      <if test="record.redReason != null">
        red_reason = #{record.redReason,jdbcType=TINYINT},
      </if>
      <if test="record.blueInvDate != null">
        blue_inv_date = #{record.blueInvDate,jdbcType=VARCHAR},
      </if>
      <if test="record.blueInvKind != null">
        blue_inv_kind = #{record.blueInvKind,jdbcType=VARCHAR},
      </if>
      <if test="record.invReason != null">
        inv_reason = #{record.invReason,jdbcType=TINYINT},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update szhtxx_electronic_invoice_fptxx
    set id = #{record.id,jdbcType=BIGINT},
      fpqqlsh = #{record.fpqqlsh,jdbcType=VARCHAR},
      kpxm = #{record.kpxm,jdbcType=VARCHAR},
      xhf_nsrsbh = #{record.xhfNsrsbh,jdbcType=VARCHAR},
      xhfmc = #{record.xhfmc,jdbcType=VARCHAR},
      xhf_dzdh = #{record.xhfDzdh,jdbcType=VARCHAR},
      xhf_yhzh = #{record.xhfYhzh,jdbcType=VARCHAR},
      ghfmc = #{record.ghfmc,jdbcType=VARCHAR},
      ghf_nsrsbh = #{record.ghfNsrsbh,jdbcType=VARCHAR},
      ghf_yhzh = #{record.ghfYhzh,jdbcType=VARCHAR},
      ghf_dzdh = #{record.ghfDzdh,jdbcType=VARCHAR},
      ghf_sj = #{record.ghfSj,jdbcType=VARCHAR},
      ghf_email = #{record.ghfEmail,jdbcType=VARCHAR},
      bill_sent_sign = #{record.billSentSign,jdbcType=VARCHAR},
      call_back_url = #{record.callBackUrl,jdbcType=VARCHAR},
      ghfqylx = #{record.ghfqylx,jdbcType=VARCHAR},
      dkbz = #{record.dkbz,jdbcType=VARCHAR},
      fjh = #{record.fjh,jdbcType=VARCHAR},
      kpy = #{record.kpy,jdbcType=VARCHAR},
      sky = #{record.sky,jdbcType=VARCHAR},
      fhr = #{record.fhr,jdbcType=VARCHAR},
      kplx = #{record.kplx,jdbcType=VARCHAR},
      yfp_dm = #{record.yfpDm,jdbcType=VARCHAR},
      yfp_hm = #{record.yfpHm,jdbcType=VARCHAR},
      qd_bz = #{record.qdBz,jdbcType=VARCHAR},
      qdxmmc = #{record.qdxmmc,jdbcType=VARCHAR},
      kphjje = #{record.kphjje,jdbcType=DECIMAL},
      hjbhsje = #{record.hjbhsje,jdbcType=DECIMAL},
      hjse = #{record.hjse,jdbcType=DECIMAL},
      bz = #{record.bz,jdbcType=VARCHAR},
      return_code = #{record.returnCode,jdbcType=VARCHAR},
      return_msg = #{record.returnMsg,jdbcType=VARCHAR},
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
      create_user_id = #{record.createUserId,jdbcType=BIGINT},
      create_user_name = #{record.createUserName,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      update_user_name = #{record.updateUserName,jdbcType=VARCHAR},
      deleted = #{record.deleted,jdbcType=TINYINT},
      batch_id = #{record.batchId,jdbcType=VARCHAR},
      invoice_type = #{record.invoiceType,jdbcType=TINYINT},
      red_reason = #{record.redReason,jdbcType=TINYINT},
      blue_inv_date = #{record.blueInvDate,jdbcType=VARCHAR},
      blue_inv_kind = #{record.blueInvKind,jdbcType=VARCHAR},
      inv_reason = #{record.invReason,jdbcType=TINYINT}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxx">
    update szhtxx_electronic_invoice_fptxx
    <set>
      <if test="fpqqlsh != null">
        fpqqlsh = #{fpqqlsh,jdbcType=VARCHAR},
      </if>
      <if test="kpxm != null">
        kpxm = #{kpxm,jdbcType=VARCHAR},
      </if>
      <if test="xhfNsrsbh != null">
        xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="xhfmc != null">
        xhfmc = #{xhfmc,jdbcType=VARCHAR},
      </if>
      <if test="xhfDzdh != null">
        xhf_dzdh = #{xhfDzdh,jdbcType=VARCHAR},
      </if>
      <if test="xhfYhzh != null">
        xhf_yhzh = #{xhfYhzh,jdbcType=VARCHAR},
      </if>
      <if test="ghfmc != null">
        ghfmc = #{ghfmc,jdbcType=VARCHAR},
      </if>
      <if test="ghfNsrsbh != null">
        ghf_nsrsbh = #{ghfNsrsbh,jdbcType=VARCHAR},
      </if>
      <if test="ghfYhzh != null">
        ghf_yhzh = #{ghfYhzh,jdbcType=VARCHAR},
      </if>
      <if test="ghfDzdh != null">
        ghf_dzdh = #{ghfDzdh,jdbcType=VARCHAR},
      </if>
      <if test="ghfSj != null">
        ghf_sj = #{ghfSj,jdbcType=VARCHAR},
      </if>
      <if test="ghfEmail != null">
        ghf_email = #{ghfEmail,jdbcType=VARCHAR},
      </if>
      <if test="billSentSign != null">
        bill_sent_sign = #{billSentSign,jdbcType=VARCHAR},
      </if>
      <if test="callBackUrl != null">
        call_back_url = #{callBackUrl,jdbcType=VARCHAR},
      </if>
      <if test="ghfqylx != null">
        ghfqylx = #{ghfqylx,jdbcType=VARCHAR},
      </if>
      <if test="dkbz != null">
        dkbz = #{dkbz,jdbcType=VARCHAR},
      </if>
      <if test="fjh != null">
        fjh = #{fjh,jdbcType=VARCHAR},
      </if>
      <if test="kpy != null">
        kpy = #{kpy,jdbcType=VARCHAR},
      </if>
      <if test="sky != null">
        sky = #{sky,jdbcType=VARCHAR},
      </if>
      <if test="fhr != null">
        fhr = #{fhr,jdbcType=VARCHAR},
      </if>
      <if test="kplx != null">
        kplx = #{kplx,jdbcType=VARCHAR},
      </if>
      <if test="yfpDm != null">
        yfp_dm = #{yfpDm,jdbcType=VARCHAR},
      </if>
      <if test="yfpHm != null">
        yfp_hm = #{yfpHm,jdbcType=VARCHAR},
      </if>
      <if test="qdBz != null">
        qd_bz = #{qdBz,jdbcType=VARCHAR},
      </if>
      <if test="qdxmmc != null">
        qdxmmc = #{qdxmmc,jdbcType=VARCHAR},
      </if>
      <if test="kphjje != null">
        kphjje = #{kphjje,jdbcType=DECIMAL},
      </if>
      <if test="hjbhsje != null">
        hjbhsje = #{hjbhsje,jdbcType=DECIMAL},
      </if>
      <if test="hjse != null">
        hjse = #{hjse,jdbcType=DECIMAL},
      </if>
      <if test="bz != null">
        bz = #{bz,jdbcType=VARCHAR},
      </if>
      <if test="returnCode != null">
        return_code = #{returnCode,jdbcType=VARCHAR},
      </if>
      <if test="returnMsg != null">
        return_msg = #{returnMsg,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createUserId != null">
        create_user_id = #{createUserId,jdbcType=BIGINT},
      </if>
      <if test="createUserName != null">
        create_user_name = #{createUserName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        update_user_id = #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="updateUserName != null">
        update_user_name = #{updateUserName,jdbcType=VARCHAR},
      </if>
      <if test="deleted != null">
        deleted = #{deleted,jdbcType=TINYINT},
      </if>
      <if test="batchId != null">
        batch_id = #{batchId,jdbcType=VARCHAR},
      </if>
      <if test="invoiceType != null">
        invoice_type = #{invoiceType,jdbcType=TINYINT},
      </if>
      <if test="redReason != null">
        red_reason = #{redReason,jdbcType=TINYINT},
      </if>
      <if test="blueInvDate != null">
        blue_inv_date = #{blueInvDate,jdbcType=VARCHAR},
      </if>
      <if test="blueInvKind != null">
        blue_inv_kind = #{blueInvKind,jdbcType=VARCHAR},
      </if>
      <if test="invReason != null">
        inv_reason = #{invReason,jdbcType=TINYINT},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxx">
    update szhtxx_electronic_invoice_fptxx
    set fpqqlsh = #{fpqqlsh,jdbcType=VARCHAR},
      kpxm = #{kpxm,jdbcType=VARCHAR},
      xhf_nsrsbh = #{xhfNsrsbh,jdbcType=VARCHAR},
      xhfmc = #{xhfmc,jdbcType=VARCHAR},
      xhf_dzdh = #{xhfDzdh,jdbcType=VARCHAR},
      xhf_yhzh = #{xhfYhzh,jdbcType=VARCHAR},
      ghfmc = #{ghfmc,jdbcType=VARCHAR},
      ghf_nsrsbh = #{ghfNsrsbh,jdbcType=VARCHAR},
      ghf_yhzh = #{ghfYhzh,jdbcType=VARCHAR},
      ghf_dzdh = #{ghfDzdh,jdbcType=VARCHAR},
      ghf_sj = #{ghfSj,jdbcType=VARCHAR},
      ghf_email = #{ghfEmail,jdbcType=VARCHAR},
      bill_sent_sign = #{billSentSign,jdbcType=VARCHAR},
      call_back_url = #{callBackUrl,jdbcType=VARCHAR},
      ghfqylx = #{ghfqylx,jdbcType=VARCHAR},
      dkbz = #{dkbz,jdbcType=VARCHAR},
      fjh = #{fjh,jdbcType=VARCHAR},
      kpy = #{kpy,jdbcType=VARCHAR},
      sky = #{sky,jdbcType=VARCHAR},
      fhr = #{fhr,jdbcType=VARCHAR},
      kplx = #{kplx,jdbcType=VARCHAR},
      yfp_dm = #{yfpDm,jdbcType=VARCHAR},
      yfp_hm = #{yfpHm,jdbcType=VARCHAR},
      qd_bz = #{qdBz,jdbcType=VARCHAR},
      qdxmmc = #{qdxmmc,jdbcType=VARCHAR},
      kphjje = #{kphjje,jdbcType=DECIMAL},
      hjbhsje = #{hjbhsje,jdbcType=DECIMAL},
      hjse = #{hjse,jdbcType=DECIMAL},
      bz = #{bz,jdbcType=VARCHAR},
      return_code = #{returnCode,jdbcType=VARCHAR},
      return_msg = #{returnMsg,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_user_id = #{createUserId,jdbcType=BIGINT},
      create_user_name = #{createUserName,jdbcType=VARCHAR},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      update_user_name = #{updateUserName,jdbcType=VARCHAR},
      deleted = #{deleted,jdbcType=TINYINT},
      batch_id = #{batchId,jdbcType=VARCHAR},
      invoice_type = #{invoiceType,jdbcType=TINYINT},
      red_reason = #{redReason,jdbcType=TINYINT},
      blue_inv_date = #{blueInvDate,jdbcType=VARCHAR},
      blue_inv_kind = #{blueInvKind,jdbcType=VARCHAR},
      inv_reason = #{invReason,jdbcType=TINYINT}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>