<?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.SzhtxxElectronicInvoiceFptxxExtendInfoMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfo">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="fpqqlsh" jdbcType="VARCHAR" property="fpqqlsh" />
    <result column="bill_sent_sign_name" jdbcType="VARCHAR" property="billSentSignName" />
    <result column="pdf_url_original" jdbcType="VARCHAR" property="pdfUrlOriginal" />
    <result column="pdf_url_saved" jdbcType="VARCHAR" property="pdfUrlSaved" />
    <result column="ghfqylx_name" jdbcType="VARCHAR" property="ghfqylxName" />
    <result column="kplx_name" jdbcType="VARCHAR" property="kplxName" />
    <result column="qd_bz_name" jdbcType="VARCHAR" property="qdBzName" />
    <result column="reason_red_write" jdbcType="VARCHAR" property="reasonRedWrite" />
    <result column="is_red_write_off" jdbcType="TINYINT" property="isRedWriteOff" />
    <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="product_manager_requirements_blue_or_red_invoice_number" jdbcType="VARCHAR" property="productManagerRequirementsBlueOrRedInvoiceNumber" />
    <result column="product_manager_requirements_blue_or_red_invoice_code" jdbcType="VARCHAR" property="productManagerRequirementsBlueOrRedInvoiceCode" />
    <result column="pushed_out_status" jdbcType="TINYINT" property="pushedOutStatus" />
    <result column="sent_email_status" jdbcType="TINYINT" property="sentEmailStatus" />
    <result column="invoice_apply_id" jdbcType="BIGINT" property="invoiceApplyId" />
    <result column="invoice_apply_sn" jdbcType="VARCHAR" property="invoiceApplySn" />
    <result column="become_invalid_user_id" jdbcType="BIGINT" property="becomeInvalidUserId" />
    <result column="become_invalid_user_name" jdbcType="VARCHAR" property="becomeInvalidUserName" />
    <result column="become_invalid_time" jdbcType="TIMESTAMP" property="becomeInvalidTime" />
    <result column="become_invalid_reason" jdbcType="VARCHAR" property="becomeInvalidReason" />
    <result column="flag_void_sign" jdbcType="TINYINT" property="flagVoidSign" />
    <result column="flag_repair" jdbcType="TINYINT" property="flagRepair" />
    <result column="flag_list" jdbcType="TINYINT" property="flagList" />
    <result column="red_tax_info_sn" jdbcType="VARCHAR" property="redTaxInfoSn" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfo">
    <result column="remark2" jdbcType="LONGVARCHAR" property="remark2" />
  </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, bill_sent_sign_name, pdf_url_original, pdf_url_saved, ghfqylx_name, 
    kplx_name, qd_bz_name, reason_red_write, is_red_write_off, update_time, update_user_id, 
    update_user_name, deleted, batch_id, product_manager_requirements_blue_or_red_invoice_number, 
    product_manager_requirements_blue_or_red_invoice_code, pushed_out_status, sent_email_status, 
    invoice_apply_id, invoice_apply_sn, become_invalid_user_id, become_invalid_user_name, 
    become_invalid_time, become_invalid_reason, flag_void_sign, flag_repair, flag_list, 
    red_tax_info_sn
  </sql>
  <sql id="Blob_Column_List">
    remark2
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfoExample" resultMap="ResultMapWithBLOBs">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from szhtxx_electronic_invoice_fptxx_extend_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfoExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from szhtxx_electronic_invoice_fptxx_extend_info
    <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="ResultMapWithBLOBs">
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from szhtxx_electronic_invoice_fptxx_extend_info
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from szhtxx_electronic_invoice_fptxx_extend_info
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfoExample">
    delete from szhtxx_electronic_invoice_fptxx_extend_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfo">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into szhtxx_electronic_invoice_fptxx_extend_info (fpqqlsh, bill_sent_sign_name, pdf_url_original, 
      pdf_url_saved, ghfqylx_name, kplx_name, 
      qd_bz_name, reason_red_write, is_red_write_off, 
      update_time, update_user_id, update_user_name, 
      deleted, batch_id, product_manager_requirements_blue_or_red_invoice_number, 
      product_manager_requirements_blue_or_red_invoice_code, pushed_out_status, 
      sent_email_status, invoice_apply_id, invoice_apply_sn, 
      become_invalid_user_id, become_invalid_user_name, 
      become_invalid_time, become_invalid_reason, 
      flag_void_sign, flag_repair, flag_list, 
      red_tax_info_sn, remark2)
    values (#{fpqqlsh,jdbcType=VARCHAR}, #{billSentSignName,jdbcType=VARCHAR}, #{pdfUrlOriginal,jdbcType=VARCHAR}, 
      #{pdfUrlSaved,jdbcType=VARCHAR}, #{ghfqylxName,jdbcType=VARCHAR}, #{kplxName,jdbcType=VARCHAR}, 
      #{qdBzName,jdbcType=VARCHAR}, #{reasonRedWrite,jdbcType=VARCHAR}, #{isRedWriteOff,jdbcType=TINYINT}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{updateUserId,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, 
      #{deleted,jdbcType=TINYINT}, #{batchId,jdbcType=VARCHAR}, #{productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR}, 
      #{productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR}, #{pushedOutStatus,jdbcType=TINYINT}, 
      #{sentEmailStatus,jdbcType=TINYINT}, #{invoiceApplyId,jdbcType=BIGINT}, #{invoiceApplySn,jdbcType=VARCHAR}, 
      #{becomeInvalidUserId,jdbcType=BIGINT}, #{becomeInvalidUserName,jdbcType=VARCHAR}, 
      #{becomeInvalidTime,jdbcType=TIMESTAMP}, #{becomeInvalidReason,jdbcType=VARCHAR}, 
      #{flagVoidSign,jdbcType=TINYINT}, #{flagRepair,jdbcType=TINYINT}, #{flagList,jdbcType=TINYINT}, 
      #{redTaxInfoSn,jdbcType=VARCHAR}, #{remark2,jdbcType=LONGVARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfo">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into szhtxx_electronic_invoice_fptxx_extend_info
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="fpqqlsh != null">
        fpqqlsh,
      </if>
      <if test="billSentSignName != null">
        bill_sent_sign_name,
      </if>
      <if test="pdfUrlOriginal != null">
        pdf_url_original,
      </if>
      <if test="pdfUrlSaved != null">
        pdf_url_saved,
      </if>
      <if test="ghfqylxName != null">
        ghfqylx_name,
      </if>
      <if test="kplxName != null">
        kplx_name,
      </if>
      <if test="qdBzName != null">
        qd_bz_name,
      </if>
      <if test="reasonRedWrite != null">
        reason_red_write,
      </if>
      <if test="isRedWriteOff != null">
        is_red_write_off,
      </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="productManagerRequirementsBlueOrRedInvoiceNumber != null">
        product_manager_requirements_blue_or_red_invoice_number,
      </if>
      <if test="productManagerRequirementsBlueOrRedInvoiceCode != null">
        product_manager_requirements_blue_or_red_invoice_code,
      </if>
      <if test="pushedOutStatus != null">
        pushed_out_status,
      </if>
      <if test="sentEmailStatus != null">
        sent_email_status,
      </if>
      <if test="invoiceApplyId != null">
        invoice_apply_id,
      </if>
      <if test="invoiceApplySn != null">
        invoice_apply_sn,
      </if>
      <if test="becomeInvalidUserId != null">
        become_invalid_user_id,
      </if>
      <if test="becomeInvalidUserName != null">
        become_invalid_user_name,
      </if>
      <if test="becomeInvalidTime != null">
        become_invalid_time,
      </if>
      <if test="becomeInvalidReason != null">
        become_invalid_reason,
      </if>
      <if test="flagVoidSign != null">
        flag_void_sign,
      </if>
      <if test="flagRepair != null">
        flag_repair,
      </if>
      <if test="flagList != null">
        flag_list,
      </if>
      <if test="redTaxInfoSn != null">
        red_tax_info_sn,
      </if>
      <if test="remark2 != null">
        remark2,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="fpqqlsh != null">
        #{fpqqlsh,jdbcType=VARCHAR},
      </if>
      <if test="billSentSignName != null">
        #{billSentSignName,jdbcType=VARCHAR},
      </if>
      <if test="pdfUrlOriginal != null">
        #{pdfUrlOriginal,jdbcType=VARCHAR},
      </if>
      <if test="pdfUrlSaved != null">
        #{pdfUrlSaved,jdbcType=VARCHAR},
      </if>
      <if test="ghfqylxName != null">
        #{ghfqylxName,jdbcType=VARCHAR},
      </if>
      <if test="kplxName != null">
        #{kplxName,jdbcType=VARCHAR},
      </if>
      <if test="qdBzName != null">
        #{qdBzName,jdbcType=VARCHAR},
      </if>
      <if test="reasonRedWrite != null">
        #{reasonRedWrite,jdbcType=VARCHAR},
      </if>
      <if test="isRedWriteOff != null">
        #{isRedWriteOff,jdbcType=TINYINT},
      </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="productManagerRequirementsBlueOrRedInvoiceNumber != null">
        #{productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="productManagerRequirementsBlueOrRedInvoiceCode != null">
        #{productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      </if>
      <if test="pushedOutStatus != null">
        #{pushedOutStatus,jdbcType=TINYINT},
      </if>
      <if test="sentEmailStatus != null">
        #{sentEmailStatus,jdbcType=TINYINT},
      </if>
      <if test="invoiceApplyId != null">
        #{invoiceApplyId,jdbcType=BIGINT},
      </if>
      <if test="invoiceApplySn != null">
        #{invoiceApplySn,jdbcType=VARCHAR},
      </if>
      <if test="becomeInvalidUserId != null">
        #{becomeInvalidUserId,jdbcType=BIGINT},
      </if>
      <if test="becomeInvalidUserName != null">
        #{becomeInvalidUserName,jdbcType=VARCHAR},
      </if>
      <if test="becomeInvalidTime != null">
        #{becomeInvalidTime,jdbcType=TIMESTAMP},
      </if>
      <if test="becomeInvalidReason != null">
        #{becomeInvalidReason,jdbcType=VARCHAR},
      </if>
      <if test="flagVoidSign != null">
        #{flagVoidSign,jdbcType=TINYINT},
      </if>
      <if test="flagRepair != null">
        #{flagRepair,jdbcType=TINYINT},
      </if>
      <if test="flagList != null">
        #{flagList,jdbcType=TINYINT},
      </if>
      <if test="redTaxInfoSn != null">
        #{redTaxInfoSn,jdbcType=VARCHAR},
      </if>
      <if test="remark2 != null">
        #{remark2,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfoExample" resultType="java.lang.Long">
    select count(*) from szhtxx_electronic_invoice_fptxx_extend_info
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update szhtxx_electronic_invoice_fptxx_extend_info
    <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.billSentSignName != null">
        bill_sent_sign_name = #{record.billSentSignName,jdbcType=VARCHAR},
      </if>
      <if test="record.pdfUrlOriginal != null">
        pdf_url_original = #{record.pdfUrlOriginal,jdbcType=VARCHAR},
      </if>
      <if test="record.pdfUrlSaved != null">
        pdf_url_saved = #{record.pdfUrlSaved,jdbcType=VARCHAR},
      </if>
      <if test="record.ghfqylxName != null">
        ghfqylx_name = #{record.ghfqylxName,jdbcType=VARCHAR},
      </if>
      <if test="record.kplxName != null">
        kplx_name = #{record.kplxName,jdbcType=VARCHAR},
      </if>
      <if test="record.qdBzName != null">
        qd_bz_name = #{record.qdBzName,jdbcType=VARCHAR},
      </if>
      <if test="record.reasonRedWrite != null">
        reason_red_write = #{record.reasonRedWrite,jdbcType=VARCHAR},
      </if>
      <if test="record.isRedWriteOff != null">
        is_red_write_off = #{record.isRedWriteOff,jdbcType=TINYINT},
      </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.productManagerRequirementsBlueOrRedInvoiceNumber != null">
        product_manager_requirements_blue_or_red_invoice_number = #{record.productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.productManagerRequirementsBlueOrRedInvoiceCode != null">
        product_manager_requirements_blue_or_red_invoice_code = #{record.productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      </if>
      <if test="record.pushedOutStatus != null">
        pushed_out_status = #{record.pushedOutStatus,jdbcType=TINYINT},
      </if>
      <if test="record.sentEmailStatus != null">
        sent_email_status = #{record.sentEmailStatus,jdbcType=TINYINT},
      </if>
      <if test="record.invoiceApplyId != null">
        invoice_apply_id = #{record.invoiceApplyId,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceApplySn != null">
        invoice_apply_sn = #{record.invoiceApplySn,jdbcType=VARCHAR},
      </if>
      <if test="record.becomeInvalidUserId != null">
        become_invalid_user_id = #{record.becomeInvalidUserId,jdbcType=BIGINT},
      </if>
      <if test="record.becomeInvalidUserName != null">
        become_invalid_user_name = #{record.becomeInvalidUserName,jdbcType=VARCHAR},
      </if>
      <if test="record.becomeInvalidTime != null">
        become_invalid_time = #{record.becomeInvalidTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.becomeInvalidReason != null">
        become_invalid_reason = #{record.becomeInvalidReason,jdbcType=VARCHAR},
      </if>
      <if test="record.flagVoidSign != null">
        flag_void_sign = #{record.flagVoidSign,jdbcType=TINYINT},
      </if>
      <if test="record.flagRepair != null">
        flag_repair = #{record.flagRepair,jdbcType=TINYINT},
      </if>
      <if test="record.flagList != null">
        flag_list = #{record.flagList,jdbcType=TINYINT},
      </if>
      <if test="record.redTaxInfoSn != null">
        red_tax_info_sn = #{record.redTaxInfoSn,jdbcType=VARCHAR},
      </if>
      <if test="record.remark2 != null">
        remark2 = #{record.remark2,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    update szhtxx_electronic_invoice_fptxx_extend_info
    set id = #{record.id,jdbcType=BIGINT},
      fpqqlsh = #{record.fpqqlsh,jdbcType=VARCHAR},
      bill_sent_sign_name = #{record.billSentSignName,jdbcType=VARCHAR},
      pdf_url_original = #{record.pdfUrlOriginal,jdbcType=VARCHAR},
      pdf_url_saved = #{record.pdfUrlSaved,jdbcType=VARCHAR},
      ghfqylx_name = #{record.ghfqylxName,jdbcType=VARCHAR},
      kplx_name = #{record.kplxName,jdbcType=VARCHAR},
      qd_bz_name = #{record.qdBzName,jdbcType=VARCHAR},
      reason_red_write = #{record.reasonRedWrite,jdbcType=VARCHAR},
      is_red_write_off = #{record.isRedWriteOff,jdbcType=TINYINT},
      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},
      product_manager_requirements_blue_or_red_invoice_number = #{record.productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      product_manager_requirements_blue_or_red_invoice_code = #{record.productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      pushed_out_status = #{record.pushedOutStatus,jdbcType=TINYINT},
      sent_email_status = #{record.sentEmailStatus,jdbcType=TINYINT},
      invoice_apply_id = #{record.invoiceApplyId,jdbcType=BIGINT},
      invoice_apply_sn = #{record.invoiceApplySn,jdbcType=VARCHAR},
      become_invalid_user_id = #{record.becomeInvalidUserId,jdbcType=BIGINT},
      become_invalid_user_name = #{record.becomeInvalidUserName,jdbcType=VARCHAR},
      become_invalid_time = #{record.becomeInvalidTime,jdbcType=TIMESTAMP},
      become_invalid_reason = #{record.becomeInvalidReason,jdbcType=VARCHAR},
      flag_void_sign = #{record.flagVoidSign,jdbcType=TINYINT},
      flag_repair = #{record.flagRepair,jdbcType=TINYINT},
      flag_list = #{record.flagList,jdbcType=TINYINT},
      red_tax_info_sn = #{record.redTaxInfoSn,jdbcType=VARCHAR},
      remark2 = #{record.remark2,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update szhtxx_electronic_invoice_fptxx_extend_info
    set id = #{record.id,jdbcType=BIGINT},
      fpqqlsh = #{record.fpqqlsh,jdbcType=VARCHAR},
      bill_sent_sign_name = #{record.billSentSignName,jdbcType=VARCHAR},
      pdf_url_original = #{record.pdfUrlOriginal,jdbcType=VARCHAR},
      pdf_url_saved = #{record.pdfUrlSaved,jdbcType=VARCHAR},
      ghfqylx_name = #{record.ghfqylxName,jdbcType=VARCHAR},
      kplx_name = #{record.kplxName,jdbcType=VARCHAR},
      qd_bz_name = #{record.qdBzName,jdbcType=VARCHAR},
      reason_red_write = #{record.reasonRedWrite,jdbcType=VARCHAR},
      is_red_write_off = #{record.isRedWriteOff,jdbcType=TINYINT},
      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},
      product_manager_requirements_blue_or_red_invoice_number = #{record.productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      product_manager_requirements_blue_or_red_invoice_code = #{record.productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      pushed_out_status = #{record.pushedOutStatus,jdbcType=TINYINT},
      sent_email_status = #{record.sentEmailStatus,jdbcType=TINYINT},
      invoice_apply_id = #{record.invoiceApplyId,jdbcType=BIGINT},
      invoice_apply_sn = #{record.invoiceApplySn,jdbcType=VARCHAR},
      become_invalid_user_id = #{record.becomeInvalidUserId,jdbcType=BIGINT},
      become_invalid_user_name = #{record.becomeInvalidUserName,jdbcType=VARCHAR},
      become_invalid_time = #{record.becomeInvalidTime,jdbcType=TIMESTAMP},
      become_invalid_reason = #{record.becomeInvalidReason,jdbcType=VARCHAR},
      flag_void_sign = #{record.flagVoidSign,jdbcType=TINYINT},
      flag_repair = #{record.flagRepair,jdbcType=TINYINT},
      flag_list = #{record.flagList,jdbcType=TINYINT},
      red_tax_info_sn = #{record.redTaxInfoSn,jdbcType=VARCHAR}
    <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.SzhtxxElectronicInvoiceFptxxExtendInfo">
    update szhtxx_electronic_invoice_fptxx_extend_info
    <set>
      <if test="fpqqlsh != null">
        fpqqlsh = #{fpqqlsh,jdbcType=VARCHAR},
      </if>
      <if test="billSentSignName != null">
        bill_sent_sign_name = #{billSentSignName,jdbcType=VARCHAR},
      </if>
      <if test="pdfUrlOriginal != null">
        pdf_url_original = #{pdfUrlOriginal,jdbcType=VARCHAR},
      </if>
      <if test="pdfUrlSaved != null">
        pdf_url_saved = #{pdfUrlSaved,jdbcType=VARCHAR},
      </if>
      <if test="ghfqylxName != null">
        ghfqylx_name = #{ghfqylxName,jdbcType=VARCHAR},
      </if>
      <if test="kplxName != null">
        kplx_name = #{kplxName,jdbcType=VARCHAR},
      </if>
      <if test="qdBzName != null">
        qd_bz_name = #{qdBzName,jdbcType=VARCHAR},
      </if>
      <if test="reasonRedWrite != null">
        reason_red_write = #{reasonRedWrite,jdbcType=VARCHAR},
      </if>
      <if test="isRedWriteOff != null">
        is_red_write_off = #{isRedWriteOff,jdbcType=TINYINT},
      </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="productManagerRequirementsBlueOrRedInvoiceNumber != null">
        product_manager_requirements_blue_or_red_invoice_number = #{productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="productManagerRequirementsBlueOrRedInvoiceCode != null">
        product_manager_requirements_blue_or_red_invoice_code = #{productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      </if>
      <if test="pushedOutStatus != null">
        pushed_out_status = #{pushedOutStatus,jdbcType=TINYINT},
      </if>
      <if test="sentEmailStatus != null">
        sent_email_status = #{sentEmailStatus,jdbcType=TINYINT},
      </if>
      <if test="invoiceApplyId != null">
        invoice_apply_id = #{invoiceApplyId,jdbcType=BIGINT},
      </if>
      <if test="invoiceApplySn != null">
        invoice_apply_sn = #{invoiceApplySn,jdbcType=VARCHAR},
      </if>
      <if test="becomeInvalidUserId != null">
        become_invalid_user_id = #{becomeInvalidUserId,jdbcType=BIGINT},
      </if>
      <if test="becomeInvalidUserName != null">
        become_invalid_user_name = #{becomeInvalidUserName,jdbcType=VARCHAR},
      </if>
      <if test="becomeInvalidTime != null">
        become_invalid_time = #{becomeInvalidTime,jdbcType=TIMESTAMP},
      </if>
      <if test="becomeInvalidReason != null">
        become_invalid_reason = #{becomeInvalidReason,jdbcType=VARCHAR},
      </if>
      <if test="flagVoidSign != null">
        flag_void_sign = #{flagVoidSign,jdbcType=TINYINT},
      </if>
      <if test="flagRepair != null">
        flag_repair = #{flagRepair,jdbcType=TINYINT},
      </if>
      <if test="flagList != null">
        flag_list = #{flagList,jdbcType=TINYINT},
      </if>
      <if test="redTaxInfoSn != null">
        red_tax_info_sn = #{redTaxInfoSn,jdbcType=VARCHAR},
      </if>
      <if test="remark2 != null">
        remark2 = #{remark2,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfo">
    update szhtxx_electronic_invoice_fptxx_extend_info
    set fpqqlsh = #{fpqqlsh,jdbcType=VARCHAR},
      bill_sent_sign_name = #{billSentSignName,jdbcType=VARCHAR},
      pdf_url_original = #{pdfUrlOriginal,jdbcType=VARCHAR},
      pdf_url_saved = #{pdfUrlSaved,jdbcType=VARCHAR},
      ghfqylx_name = #{ghfqylxName,jdbcType=VARCHAR},
      kplx_name = #{kplxName,jdbcType=VARCHAR},
      qd_bz_name = #{qdBzName,jdbcType=VARCHAR},
      reason_red_write = #{reasonRedWrite,jdbcType=VARCHAR},
      is_red_write_off = #{isRedWriteOff,jdbcType=TINYINT},
      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},
      product_manager_requirements_blue_or_red_invoice_number = #{productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      product_manager_requirements_blue_or_red_invoice_code = #{productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      pushed_out_status = #{pushedOutStatus,jdbcType=TINYINT},
      sent_email_status = #{sentEmailStatus,jdbcType=TINYINT},
      invoice_apply_id = #{invoiceApplyId,jdbcType=BIGINT},
      invoice_apply_sn = #{invoiceApplySn,jdbcType=VARCHAR},
      become_invalid_user_id = #{becomeInvalidUserId,jdbcType=BIGINT},
      become_invalid_user_name = #{becomeInvalidUserName,jdbcType=VARCHAR},
      become_invalid_time = #{becomeInvalidTime,jdbcType=TIMESTAMP},
      become_invalid_reason = #{becomeInvalidReason,jdbcType=VARCHAR},
      flag_void_sign = #{flagVoidSign,jdbcType=TINYINT},
      flag_repair = #{flagRepair,jdbcType=TINYINT},
      flag_list = #{flagList,jdbcType=TINYINT},
      red_tax_info_sn = #{redTaxInfoSn,jdbcType=VARCHAR},
      remark2 = #{remark2,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.thirdpart.szhtxx.electronicInvoice.SzhtxxElectronicInvoiceFptxxExtendInfo">
    update szhtxx_electronic_invoice_fptxx_extend_info
    set fpqqlsh = #{fpqqlsh,jdbcType=VARCHAR},
      bill_sent_sign_name = #{billSentSignName,jdbcType=VARCHAR},
      pdf_url_original = #{pdfUrlOriginal,jdbcType=VARCHAR},
      pdf_url_saved = #{pdfUrlSaved,jdbcType=VARCHAR},
      ghfqylx_name = #{ghfqylxName,jdbcType=VARCHAR},
      kplx_name = #{kplxName,jdbcType=VARCHAR},
      qd_bz_name = #{qdBzName,jdbcType=VARCHAR},
      reason_red_write = #{reasonRedWrite,jdbcType=VARCHAR},
      is_red_write_off = #{isRedWriteOff,jdbcType=TINYINT},
      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},
      product_manager_requirements_blue_or_red_invoice_number = #{productManagerRequirementsBlueOrRedInvoiceNumber,jdbcType=VARCHAR},
      product_manager_requirements_blue_or_red_invoice_code = #{productManagerRequirementsBlueOrRedInvoiceCode,jdbcType=VARCHAR},
      pushed_out_status = #{pushedOutStatus,jdbcType=TINYINT},
      sent_email_status = #{sentEmailStatus,jdbcType=TINYINT},
      invoice_apply_id = #{invoiceApplyId,jdbcType=BIGINT},
      invoice_apply_sn = #{invoiceApplySn,jdbcType=VARCHAR},
      become_invalid_user_id = #{becomeInvalidUserId,jdbcType=BIGINT},
      become_invalid_user_name = #{becomeInvalidUserName,jdbcType=VARCHAR},
      become_invalid_time = #{becomeInvalidTime,jdbcType=TIMESTAMP},
      become_invalid_reason = #{becomeInvalidReason,jdbcType=VARCHAR},
      flag_void_sign = #{flagVoidSign,jdbcType=TINYINT},
      flag_repair = #{flagRepair,jdbcType=TINYINT},
      flag_list = #{flagList,jdbcType=TINYINT},
      red_tax_info_sn = #{redTaxInfoSn,jdbcType=VARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>