<?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.invoice.customer.InvoiceApplyMapper">
  <resultMap id="BaseResultMap" type="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="accounting_order_type" jdbcType="TINYINT" property="accountingOrderType" />
    <result column="accounting_order_id" jdbcType="BIGINT" property="accountingOrderId" />
    <result column="accounting_order_sn" jdbcType="VARCHAR" property="accountingOrderSn" />
    <result column="dim_create_by" jdbcType="TINYINT" property="dimCreateBy" />
    <result column="invoice_apply_sn" jdbcType="VARCHAR" property="invoiceApplySn" />
    <result column="invoice_apply_amount" jdbcType="DECIMAL" property="invoiceApplyAmount" />
    <result column="free_amount" jdbcType="DECIMAL" property="freeAmount" />
    <result column="un_accounting_amount" jdbcType="DECIMAL" property="unAccountingAmount" />
    <result column="real_amount" jdbcType="DECIMAL" property="realAmount" />
    <result column="no_check_count" jdbcType="DECIMAL" property="noCheckCount" />
    <result column="tax_rate" jdbcType="VARCHAR" property="taxRate" />
    <result column="invoice_title" jdbcType="VARCHAR" property="invoiceTitle" />
    <result column="sys_enterprise_ext_invoice_id" jdbcType="BIGINT" property="sysEnterpriseExtInvoiceId" />
    <result column="invoice_type" jdbcType="BIGINT" property="invoiceType" />
    <result column="invoice_mode" jdbcType="VARCHAR" property="invoiceMode" />
    <result column="apply_user_id" jdbcType="BIGINT" property="applyUserId" />
    <result column="apply_time" jdbcType="TIMESTAMP" property="applyTime" />
    <result column="audit_user_id" jdbcType="BIGINT" property="auditUserId" />
    <result column="audit_status" jdbcType="TINYINT" property="auditStatus" />
    <result column="audit_time" jdbcType="TIMESTAMP" property="auditTime" />
    <result column="invoice_status" jdbcType="TINYINT" property="invoiceStatus" />
    <result column="invoice_progressing_user_id" jdbcType="BIGINT" property="invoiceProgressingUserId" />
    <result column="invoice_progressing_time" jdbcType="TIMESTAMP" property="invoiceProgressingTime" />
    <result column="make_invoice_user_id" jdbcType="BIGINT" property="makeInvoiceUserId" />
    <result column="make_invoice_status" jdbcType="TINYINT" property="makeInvoiceStatus" />
    <result column="make_invoice_time" jdbcType="TIMESTAMP" property="makeInvoiceTime" />
    <result column="receive_invoice_status" jdbcType="TINYINT" property="receiveInvoiceStatus" />
    <result column="receive_invoice_user_id" jdbcType="BIGINT" property="receiveInvoiceUserId" />
    <result column="receive_invoice_time" jdbcType="TIMESTAMP" property="receiveInvoiceTime" />
    <result column="invoice_number" jdbcType="VARCHAR" property="invoiceNumber" />
    <result column="mail_tick_user_id" jdbcType="BIGINT" property="mailTickUserId" />
    <result column="mail_tick_status" jdbcType="TINYINT" property="mailTickStatus" />
    <result column="mail_tick_time" jdbcType="TIMESTAMP" property="mailTickTime" />
    <result column="express_company_id" jdbcType="BIGINT" property="expressCompanyId" />
    <result column="express_no" jdbcType="VARCHAR" property="expressNo" />
    <result column="back_account_status" jdbcType="TINYINT" property="backAccountStatus" />
    <result column="back_account_mode_record" jdbcType="TINYINT" property="backAccountModeRecord" />
    <result column="back_account_user_id" jdbcType="BIGINT" property="backAccountUserId" />
    <result column="back_account_time" jdbcType="TIMESTAMP" property="backAccountTime" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
    <result column="remark2" jdbcType="VARCHAR" property="remark2" />
    <result column="attachment_upload_files_uids" jdbcType="VARCHAR" property="attachmentUploadFilesUids" />
    <result column="service_id" jdbcType="INTEGER" property="serviceId" />
    <result column="service_no" jdbcType="VARCHAR" property="serviceNo" />
    <result column="source_from" jdbcType="VARCHAR" property="sourceFrom" />
    <result column="service_name" jdbcType="VARCHAR" property="serviceName" />
    <result column="sys_org_id" jdbcType="BIGINT" property="sysOrgId" />
    <result column="sys_virt_id" jdbcType="BIGINT" property="sysVirtId" />
    <result column="out_org_id" jdbcType="BIGINT" property="outOrgId" />
    <result column="out_virt_id" jdbcType="BIGINT" property="outVirtId" />
    <result column="relation_mode" jdbcType="TINYINT" property="relationMode" />
    <result column="error_check_relation_01" jdbcType="BIGINT" property="errorCheckRelation01" />
    <result column="error_check_relation_02" jdbcType="BIGINT" property="errorCheckRelation02" />
    <result column="accounting_order_quantity" jdbcType="INTEGER" property="accountingOrderQuantity" />
    <result column="order_quantity" jdbcType="INTEGER" property="orderQuantity" />
    <result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
    <result column="goods_quantity" jdbcType="INTEGER" property="goodsQuantity" />
    <result column="goods_item_quantity" jdbcType="INTEGER" property="goodsItemQuantity" />
    <result column="credit_quantity" jdbcType="INTEGER" property="creditQuantity" />
    <result column="goods_amount" jdbcType="DECIMAL" property="goodsAmount" />
    <result column="goods_cost_amount" jdbcType="DECIMAL" property="goodsCostAmount" />
    <result column="order_cost_amount" jdbcType="DECIMAL" property="orderCostAmount" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="update_user_id" jdbcType="BIGINT" property="updateUserId" />
    <result column="need_revise_mark" jdbcType="TINYINT" property="needReviseMark" />
    <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" />
  </resultMap>
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    <result column="sys_enterprise_ext_invoice_snapshot" jdbcType="LONGVARCHAR" property="sysEnterpriseExtInvoiceSnapshot" />
  </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, accounting_order_type, accounting_order_id, accounting_order_sn, dim_create_by, 
    invoice_apply_sn, invoice_apply_amount, free_amount, un_accounting_amount, real_amount, 
    no_check_count, tax_rate, invoice_title, sys_enterprise_ext_invoice_id, invoice_type, 
    invoice_mode, apply_user_id, apply_time, audit_user_id, audit_status, audit_time, 
    invoice_status, invoice_progressing_user_id, invoice_progressing_time, make_invoice_user_id, 
    make_invoice_status, make_invoice_time, receive_invoice_status, receive_invoice_user_id, 
    receive_invoice_time, invoice_number, mail_tick_user_id, mail_tick_status, mail_tick_time, 
    express_company_id, express_no, back_account_status, back_account_mode_record, back_account_user_id, 
    back_account_time, remark, remark2, attachment_upload_files_uids, service_id, service_no, 
    source_from, service_name, sys_org_id, sys_virt_id, out_org_id, out_virt_id, relation_mode, 
    error_check_relation_01, error_check_relation_02, accounting_order_quantity, order_quantity, 
    order_amount, goods_quantity, goods_item_quantity, credit_quantity, goods_amount, 
    goods_cost_amount, order_cost_amount, update_time, update_user_id, need_revise_mark, 
    become_invalid_user_id, become_invalid_user_name, become_invalid_time, become_invalid_reason
  </sql>
  <sql id="Blob_Column_List">
    sys_enterprise_ext_invoice_snapshot
  </sql>
  <select id="selectByExampleWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApplyExample" resultMap="ResultMapWithBLOBs">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from invoice_apply
    <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.invoice.customer.InvoiceApplyExample" resultMap="BaseResultMap">
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from invoice_apply
    <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 invoice_apply
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    delete from invoice_apply
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <delete id="deleteByExample" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApplyExample">
    delete from invoice_apply
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into invoice_apply (accounting_order_type, accounting_order_id, 
      accounting_order_sn, dim_create_by, invoice_apply_sn, 
      invoice_apply_amount, free_amount, un_accounting_amount, 
      real_amount, no_check_count, tax_rate, 
      invoice_title, sys_enterprise_ext_invoice_id, 
      invoice_type, invoice_mode, apply_user_id, 
      apply_time, audit_user_id, audit_status, 
      audit_time, invoice_status, invoice_progressing_user_id, 
      invoice_progressing_time, make_invoice_user_id, 
      make_invoice_status, make_invoice_time, receive_invoice_status, 
      receive_invoice_user_id, receive_invoice_time, 
      invoice_number, mail_tick_user_id, mail_tick_status, 
      mail_tick_time, express_company_id, express_no, 
      back_account_status, back_account_mode_record, 
      back_account_user_id, back_account_time, remark, 
      remark2, attachment_upload_files_uids, service_id, 
      service_no, source_from, service_name, 
      sys_org_id, sys_virt_id, out_org_id, 
      out_virt_id, relation_mode, error_check_relation_01, 
      error_check_relation_02, accounting_order_quantity, 
      order_quantity, order_amount, goods_quantity, 
      goods_item_quantity, credit_quantity, goods_amount, 
      goods_cost_amount, order_cost_amount, update_time, 
      update_user_id, need_revise_mark, become_invalid_user_id, 
      become_invalid_user_name, become_invalid_time, 
      become_invalid_reason, sys_enterprise_ext_invoice_snapshot
      )
    values (#{accountingOrderType,jdbcType=TINYINT}, #{accountingOrderId,jdbcType=BIGINT}, 
      #{accountingOrderSn,jdbcType=VARCHAR}, #{dimCreateBy,jdbcType=TINYINT}, #{invoiceApplySn,jdbcType=VARCHAR}, 
      #{invoiceApplyAmount,jdbcType=DECIMAL}, #{freeAmount,jdbcType=DECIMAL}, #{unAccountingAmount,jdbcType=DECIMAL}, 
      #{realAmount,jdbcType=DECIMAL}, #{noCheckCount,jdbcType=DECIMAL}, #{taxRate,jdbcType=VARCHAR}, 
      #{invoiceTitle,jdbcType=VARCHAR}, #{sysEnterpriseExtInvoiceId,jdbcType=BIGINT}, 
      #{invoiceType,jdbcType=BIGINT}, #{invoiceMode,jdbcType=VARCHAR}, #{applyUserId,jdbcType=BIGINT}, 
      #{applyTime,jdbcType=TIMESTAMP}, #{auditUserId,jdbcType=BIGINT}, #{auditStatus,jdbcType=TINYINT}, 
      #{auditTime,jdbcType=TIMESTAMP}, #{invoiceStatus,jdbcType=TINYINT}, #{invoiceProgressingUserId,jdbcType=BIGINT}, 
      #{invoiceProgressingTime,jdbcType=TIMESTAMP}, #{makeInvoiceUserId,jdbcType=BIGINT}, 
      #{makeInvoiceStatus,jdbcType=TINYINT}, #{makeInvoiceTime,jdbcType=TIMESTAMP}, #{receiveInvoiceStatus,jdbcType=TINYINT}, 
      #{receiveInvoiceUserId,jdbcType=BIGINT}, #{receiveInvoiceTime,jdbcType=TIMESTAMP}, 
      #{invoiceNumber,jdbcType=VARCHAR}, #{mailTickUserId,jdbcType=BIGINT}, #{mailTickStatus,jdbcType=TINYINT}, 
      #{mailTickTime,jdbcType=TIMESTAMP}, #{expressCompanyId,jdbcType=BIGINT}, #{expressNo,jdbcType=VARCHAR}, 
      #{backAccountStatus,jdbcType=TINYINT}, #{backAccountModeRecord,jdbcType=TINYINT}, 
      #{backAccountUserId,jdbcType=BIGINT}, #{backAccountTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, 
      #{remark2,jdbcType=VARCHAR}, #{attachmentUploadFilesUids,jdbcType=VARCHAR}, #{serviceId,jdbcType=INTEGER}, 
      #{serviceNo,jdbcType=VARCHAR}, #{sourceFrom,jdbcType=VARCHAR}, #{serviceName,jdbcType=VARCHAR}, 
      #{sysOrgId,jdbcType=BIGINT}, #{sysVirtId,jdbcType=BIGINT}, #{outOrgId,jdbcType=BIGINT}, 
      #{outVirtId,jdbcType=BIGINT}, #{relationMode,jdbcType=TINYINT}, #{errorCheckRelation01,jdbcType=BIGINT}, 
      #{errorCheckRelation02,jdbcType=BIGINT}, #{accountingOrderQuantity,jdbcType=INTEGER}, 
      #{orderQuantity,jdbcType=INTEGER}, #{orderAmount,jdbcType=DECIMAL}, #{goodsQuantity,jdbcType=INTEGER}, 
      #{goodsItemQuantity,jdbcType=INTEGER}, #{creditQuantity,jdbcType=INTEGER}, #{goodsAmount,jdbcType=DECIMAL}, 
      #{goodsCostAmount,jdbcType=DECIMAL}, #{orderCostAmount,jdbcType=DECIMAL}, #{updateTime,jdbcType=TIMESTAMP}, 
      #{updateUserId,jdbcType=BIGINT}, #{needReviseMark,jdbcType=TINYINT}, #{becomeInvalidUserId,jdbcType=BIGINT}, 
      #{becomeInvalidUserName,jdbcType=VARCHAR}, #{becomeInvalidTime,jdbcType=TIMESTAMP}, 
      #{becomeInvalidReason,jdbcType=VARCHAR}, #{sysEnterpriseExtInvoiceSnapshot,jdbcType=LONGVARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into invoice_apply
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="accountingOrderType != null">
        accounting_order_type,
      </if>
      <if test="accountingOrderId != null">
        accounting_order_id,
      </if>
      <if test="accountingOrderSn != null">
        accounting_order_sn,
      </if>
      <if test="dimCreateBy != null">
        dim_create_by,
      </if>
      <if test="invoiceApplySn != null">
        invoice_apply_sn,
      </if>
      <if test="invoiceApplyAmount != null">
        invoice_apply_amount,
      </if>
      <if test="freeAmount != null">
        free_amount,
      </if>
      <if test="unAccountingAmount != null">
        un_accounting_amount,
      </if>
      <if test="realAmount != null">
        real_amount,
      </if>
      <if test="noCheckCount != null">
        no_check_count,
      </if>
      <if test="taxRate != null">
        tax_rate,
      </if>
      <if test="invoiceTitle != null">
        invoice_title,
      </if>
      <if test="sysEnterpriseExtInvoiceId != null">
        sys_enterprise_ext_invoice_id,
      </if>
      <if test="invoiceType != null">
        invoice_type,
      </if>
      <if test="invoiceMode != null">
        invoice_mode,
      </if>
      <if test="applyUserId != null">
        apply_user_id,
      </if>
      <if test="applyTime != null">
        apply_time,
      </if>
      <if test="auditUserId != null">
        audit_user_id,
      </if>
      <if test="auditStatus != null">
        audit_status,
      </if>
      <if test="auditTime != null">
        audit_time,
      </if>
      <if test="invoiceStatus != null">
        invoice_status,
      </if>
      <if test="invoiceProgressingUserId != null">
        invoice_progressing_user_id,
      </if>
      <if test="invoiceProgressingTime != null">
        invoice_progressing_time,
      </if>
      <if test="makeInvoiceUserId != null">
        make_invoice_user_id,
      </if>
      <if test="makeInvoiceStatus != null">
        make_invoice_status,
      </if>
      <if test="makeInvoiceTime != null">
        make_invoice_time,
      </if>
      <if test="receiveInvoiceStatus != null">
        receive_invoice_status,
      </if>
      <if test="receiveInvoiceUserId != null">
        receive_invoice_user_id,
      </if>
      <if test="receiveInvoiceTime != null">
        receive_invoice_time,
      </if>
      <if test="invoiceNumber != null">
        invoice_number,
      </if>
      <if test="mailTickUserId != null">
        mail_tick_user_id,
      </if>
      <if test="mailTickStatus != null">
        mail_tick_status,
      </if>
      <if test="mailTickTime != null">
        mail_tick_time,
      </if>
      <if test="expressCompanyId != null">
        express_company_id,
      </if>
      <if test="expressNo != null">
        express_no,
      </if>
      <if test="backAccountStatus != null">
        back_account_status,
      </if>
      <if test="backAccountModeRecord != null">
        back_account_mode_record,
      </if>
      <if test="backAccountUserId != null">
        back_account_user_id,
      </if>
      <if test="backAccountTime != null">
        back_account_time,
      </if>
      <if test="remark != null">
        remark,
      </if>
      <if test="remark2 != null">
        remark2,
      </if>
      <if test="attachmentUploadFilesUids != null">
        attachment_upload_files_uids,
      </if>
      <if test="serviceId != null">
        service_id,
      </if>
      <if test="serviceNo != null">
        service_no,
      </if>
      <if test="sourceFrom != null">
        source_from,
      </if>
      <if test="serviceName != null">
        service_name,
      </if>
      <if test="sysOrgId != null">
        sys_org_id,
      </if>
      <if test="sysVirtId != null">
        sys_virt_id,
      </if>
      <if test="outOrgId != null">
        out_org_id,
      </if>
      <if test="outVirtId != null">
        out_virt_id,
      </if>
      <if test="relationMode != null">
        relation_mode,
      </if>
      <if test="errorCheckRelation01 != null">
        error_check_relation_01,
      </if>
      <if test="errorCheckRelation02 != null">
        error_check_relation_02,
      </if>
      <if test="accountingOrderQuantity != null">
        accounting_order_quantity,
      </if>
      <if test="orderQuantity != null">
        order_quantity,
      </if>
      <if test="orderAmount != null">
        order_amount,
      </if>
      <if test="goodsQuantity != null">
        goods_quantity,
      </if>
      <if test="goodsItemQuantity != null">
        goods_item_quantity,
      </if>
      <if test="creditQuantity != null">
        credit_quantity,
      </if>
      <if test="goodsAmount != null">
        goods_amount,
      </if>
      <if test="goodsCostAmount != null">
        goods_cost_amount,
      </if>
      <if test="orderCostAmount != null">
        order_cost_amount,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="updateUserId != null">
        update_user_id,
      </if>
      <if test="needReviseMark != null">
        need_revise_mark,
      </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="sysEnterpriseExtInvoiceSnapshot != null">
        sys_enterprise_ext_invoice_snapshot,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="accountingOrderType != null">
        #{accountingOrderType,jdbcType=TINYINT},
      </if>
      <if test="accountingOrderId != null">
        #{accountingOrderId,jdbcType=BIGINT},
      </if>
      <if test="accountingOrderSn != null">
        #{accountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="dimCreateBy != null">
        #{dimCreateBy,jdbcType=TINYINT},
      </if>
      <if test="invoiceApplySn != null">
        #{invoiceApplySn,jdbcType=VARCHAR},
      </if>
      <if test="invoiceApplyAmount != null">
        #{invoiceApplyAmount,jdbcType=DECIMAL},
      </if>
      <if test="freeAmount != null">
        #{freeAmount,jdbcType=DECIMAL},
      </if>
      <if test="unAccountingAmount != null">
        #{unAccountingAmount,jdbcType=DECIMAL},
      </if>
      <if test="realAmount != null">
        #{realAmount,jdbcType=DECIMAL},
      </if>
      <if test="noCheckCount != null">
        #{noCheckCount,jdbcType=DECIMAL},
      </if>
      <if test="taxRate != null">
        #{taxRate,jdbcType=VARCHAR},
      </if>
      <if test="invoiceTitle != null">
        #{invoiceTitle,jdbcType=VARCHAR},
      </if>
      <if test="sysEnterpriseExtInvoiceId != null">
        #{sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      </if>
      <if test="invoiceType != null">
        #{invoiceType,jdbcType=BIGINT},
      </if>
      <if test="invoiceMode != null">
        #{invoiceMode,jdbcType=VARCHAR},
      </if>
      <if test="applyUserId != null">
        #{applyUserId,jdbcType=BIGINT},
      </if>
      <if test="applyTime != null">
        #{applyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="auditUserId != null">
        #{auditUserId,jdbcType=BIGINT},
      </if>
      <if test="auditStatus != null">
        #{auditStatus,jdbcType=TINYINT},
      </if>
      <if test="auditTime != null">
        #{auditTime,jdbcType=TIMESTAMP},
      </if>
      <if test="invoiceStatus != null">
        #{invoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="invoiceProgressingUserId != null">
        #{invoiceProgressingUserId,jdbcType=BIGINT},
      </if>
      <if test="invoiceProgressingTime != null">
        #{invoiceProgressingTime,jdbcType=TIMESTAMP},
      </if>
      <if test="makeInvoiceUserId != null">
        #{makeInvoiceUserId,jdbcType=BIGINT},
      </if>
      <if test="makeInvoiceStatus != null">
        #{makeInvoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="makeInvoiceTime != null">
        #{makeInvoiceTime,jdbcType=TIMESTAMP},
      </if>
      <if test="receiveInvoiceStatus != null">
        #{receiveInvoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="receiveInvoiceUserId != null">
        #{receiveInvoiceUserId,jdbcType=BIGINT},
      </if>
      <if test="receiveInvoiceTime != null">
        #{receiveInvoiceTime,jdbcType=TIMESTAMP},
      </if>
      <if test="invoiceNumber != null">
        #{invoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="mailTickUserId != null">
        #{mailTickUserId,jdbcType=BIGINT},
      </if>
      <if test="mailTickStatus != null">
        #{mailTickStatus,jdbcType=TINYINT},
      </if>
      <if test="mailTickTime != null">
        #{mailTickTime,jdbcType=TIMESTAMP},
      </if>
      <if test="expressCompanyId != null">
        #{expressCompanyId,jdbcType=BIGINT},
      </if>
      <if test="expressNo != null">
        #{expressNo,jdbcType=VARCHAR},
      </if>
      <if test="backAccountStatus != null">
        #{backAccountStatus,jdbcType=TINYINT},
      </if>
      <if test="backAccountModeRecord != null">
        #{backAccountModeRecord,jdbcType=TINYINT},
      </if>
      <if test="backAccountUserId != null">
        #{backAccountUserId,jdbcType=BIGINT},
      </if>
      <if test="backAccountTime != null">
        #{backAccountTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="remark2 != null">
        #{remark2,jdbcType=VARCHAR},
      </if>
      <if test="attachmentUploadFilesUids != null">
        #{attachmentUploadFilesUids,jdbcType=VARCHAR},
      </if>
      <if test="serviceId != null">
        #{serviceId,jdbcType=INTEGER},
      </if>
      <if test="serviceNo != null">
        #{serviceNo,jdbcType=VARCHAR},
      </if>
      <if test="sourceFrom != null">
        #{sourceFrom,jdbcType=VARCHAR},
      </if>
      <if test="serviceName != null">
        #{serviceName,jdbcType=VARCHAR},
      </if>
      <if test="sysOrgId != null">
        #{sysOrgId,jdbcType=BIGINT},
      </if>
      <if test="sysVirtId != null">
        #{sysVirtId,jdbcType=BIGINT},
      </if>
      <if test="outOrgId != null">
        #{outOrgId,jdbcType=BIGINT},
      </if>
      <if test="outVirtId != null">
        #{outVirtId,jdbcType=BIGINT},
      </if>
      <if test="relationMode != null">
        #{relationMode,jdbcType=TINYINT},
      </if>
      <if test="errorCheckRelation01 != null">
        #{errorCheckRelation01,jdbcType=BIGINT},
      </if>
      <if test="errorCheckRelation02 != null">
        #{errorCheckRelation02,jdbcType=BIGINT},
      </if>
      <if test="accountingOrderQuantity != null">
        #{accountingOrderQuantity,jdbcType=INTEGER},
      </if>
      <if test="orderQuantity != null">
        #{orderQuantity,jdbcType=INTEGER},
      </if>
      <if test="orderAmount != null">
        #{orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsQuantity != null">
        #{goodsQuantity,jdbcType=INTEGER},
      </if>
      <if test="goodsItemQuantity != null">
        #{goodsItemQuantity,jdbcType=INTEGER},
      </if>
      <if test="creditQuantity != null">
        #{creditQuantity,jdbcType=INTEGER},
      </if>
      <if test="goodsAmount != null">
        #{goodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsCostAmount != null">
        #{goodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="orderCostAmount != null">
        #{orderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="needReviseMark != null">
        #{needReviseMark,jdbcType=TINYINT},
      </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="sysEnterpriseExtInvoiceSnapshot != null">
        #{sysEnterpriseExtInvoiceSnapshot,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApplyExample" resultType="java.lang.Long">
    select count(*) from invoice_apply
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    update invoice_apply
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.accountingOrderType != null">
        accounting_order_type = #{record.accountingOrderType,jdbcType=TINYINT},
      </if>
      <if test="record.accountingOrderId != null">
        accounting_order_id = #{record.accountingOrderId,jdbcType=BIGINT},
      </if>
      <if test="record.accountingOrderSn != null">
        accounting_order_sn = #{record.accountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="record.dimCreateBy != null">
        dim_create_by = #{record.dimCreateBy,jdbcType=TINYINT},
      </if>
      <if test="record.invoiceApplySn != null">
        invoice_apply_sn = #{record.invoiceApplySn,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceApplyAmount != null">
        invoice_apply_amount = #{record.invoiceApplyAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.freeAmount != null">
        free_amount = #{record.freeAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.unAccountingAmount != null">
        un_accounting_amount = #{record.unAccountingAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.realAmount != null">
        real_amount = #{record.realAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.noCheckCount != null">
        no_check_count = #{record.noCheckCount,jdbcType=DECIMAL},
      </if>
      <if test="record.taxRate != null">
        tax_rate = #{record.taxRate,jdbcType=VARCHAR},
      </if>
      <if test="record.invoiceTitle != null">
        invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
      </if>
      <if test="record.sysEnterpriseExtInvoiceId != null">
        sys_enterprise_ext_invoice_id = #{record.sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceType != null">
        invoice_type = #{record.invoiceType,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceMode != null">
        invoice_mode = #{record.invoiceMode,jdbcType=VARCHAR},
      </if>
      <if test="record.applyUserId != null">
        apply_user_id = #{record.applyUserId,jdbcType=BIGINT},
      </if>
      <if test="record.applyTime != null">
        apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.auditUserId != null">
        audit_user_id = #{record.auditUserId,jdbcType=BIGINT},
      </if>
      <if test="record.auditStatus != null">
        audit_status = #{record.auditStatus,jdbcType=TINYINT},
      </if>
      <if test="record.auditTime != null">
        audit_time = #{record.auditTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.invoiceStatus != null">
        invoice_status = #{record.invoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="record.invoiceProgressingUserId != null">
        invoice_progressing_user_id = #{record.invoiceProgressingUserId,jdbcType=BIGINT},
      </if>
      <if test="record.invoiceProgressingTime != null">
        invoice_progressing_time = #{record.invoiceProgressingTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.makeInvoiceUserId != null">
        make_invoice_user_id = #{record.makeInvoiceUserId,jdbcType=BIGINT},
      </if>
      <if test="record.makeInvoiceStatus != null">
        make_invoice_status = #{record.makeInvoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="record.makeInvoiceTime != null">
        make_invoice_time = #{record.makeInvoiceTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.receiveInvoiceStatus != null">
        receive_invoice_status = #{record.receiveInvoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="record.receiveInvoiceUserId != null">
        receive_invoice_user_id = #{record.receiveInvoiceUserId,jdbcType=BIGINT},
      </if>
      <if test="record.receiveInvoiceTime != null">
        receive_invoice_time = #{record.receiveInvoiceTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.invoiceNumber != null">
        invoice_number = #{record.invoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="record.mailTickUserId != null">
        mail_tick_user_id = #{record.mailTickUserId,jdbcType=BIGINT},
      </if>
      <if test="record.mailTickStatus != null">
        mail_tick_status = #{record.mailTickStatus,jdbcType=TINYINT},
      </if>
      <if test="record.mailTickTime != null">
        mail_tick_time = #{record.mailTickTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.expressCompanyId != null">
        express_company_id = #{record.expressCompanyId,jdbcType=BIGINT},
      </if>
      <if test="record.expressNo != null">
        express_no = #{record.expressNo,jdbcType=VARCHAR},
      </if>
      <if test="record.backAccountStatus != null">
        back_account_status = #{record.backAccountStatus,jdbcType=TINYINT},
      </if>
      <if test="record.backAccountModeRecord != null">
        back_account_mode_record = #{record.backAccountModeRecord,jdbcType=TINYINT},
      </if>
      <if test="record.backAccountUserId != null">
        back_account_user_id = #{record.backAccountUserId,jdbcType=BIGINT},
      </if>
      <if test="record.backAccountTime != null">
        back_account_time = #{record.backAccountTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.remark != null">
        remark = #{record.remark,jdbcType=VARCHAR},
      </if>
      <if test="record.remark2 != null">
        remark2 = #{record.remark2,jdbcType=VARCHAR},
      </if>
      <if test="record.attachmentUploadFilesUids != null">
        attachment_upload_files_uids = #{record.attachmentUploadFilesUids,jdbcType=VARCHAR},
      </if>
      <if test="record.serviceId != null">
        service_id = #{record.serviceId,jdbcType=INTEGER},
      </if>
      <if test="record.serviceNo != null">
        service_no = #{record.serviceNo,jdbcType=VARCHAR},
      </if>
      <if test="record.sourceFrom != null">
        source_from = #{record.sourceFrom,jdbcType=VARCHAR},
      </if>
      <if test="record.serviceName != null">
        service_name = #{record.serviceName,jdbcType=VARCHAR},
      </if>
      <if test="record.sysOrgId != null">
        sys_org_id = #{record.sysOrgId,jdbcType=BIGINT},
      </if>
      <if test="record.sysVirtId != null">
        sys_virt_id = #{record.sysVirtId,jdbcType=BIGINT},
      </if>
      <if test="record.outOrgId != null">
        out_org_id = #{record.outOrgId,jdbcType=BIGINT},
      </if>
      <if test="record.outVirtId != null">
        out_virt_id = #{record.outVirtId,jdbcType=BIGINT},
      </if>
      <if test="record.relationMode != null">
        relation_mode = #{record.relationMode,jdbcType=TINYINT},
      </if>
      <if test="record.errorCheckRelation01 != null">
        error_check_relation_01 = #{record.errorCheckRelation01,jdbcType=BIGINT},
      </if>
      <if test="record.errorCheckRelation02 != null">
        error_check_relation_02 = #{record.errorCheckRelation02,jdbcType=BIGINT},
      </if>
      <if test="record.accountingOrderQuantity != null">
        accounting_order_quantity = #{record.accountingOrderQuantity,jdbcType=INTEGER},
      </if>
      <if test="record.orderQuantity != null">
        order_quantity = #{record.orderQuantity,jdbcType=INTEGER},
      </if>
      <if test="record.orderAmount != null">
        order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.goodsQuantity != null">
        goods_quantity = #{record.goodsQuantity,jdbcType=INTEGER},
      </if>
      <if test="record.goodsItemQuantity != null">
        goods_item_quantity = #{record.goodsItemQuantity,jdbcType=INTEGER},
      </if>
      <if test="record.creditQuantity != null">
        credit_quantity = #{record.creditQuantity,jdbcType=INTEGER},
      </if>
      <if test="record.goodsAmount != null">
        goods_amount = #{record.goodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.goodsCostAmount != null">
        goods_cost_amount = #{record.goodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="record.orderCostAmount != null">
        order_cost_amount = #{record.orderCostAmount,jdbcType=DECIMAL},
      </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.needReviseMark != null">
        need_revise_mark = #{record.needReviseMark,jdbcType=TINYINT},
      </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.sysEnterpriseExtInvoiceSnapshot != null">
        sys_enterprise_ext_invoice_snapshot = #{record.sysEnterpriseExtInvoiceSnapshot,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    update invoice_apply
    set id = #{record.id,jdbcType=BIGINT},
      accounting_order_type = #{record.accountingOrderType,jdbcType=TINYINT},
      accounting_order_id = #{record.accountingOrderId,jdbcType=BIGINT},
      accounting_order_sn = #{record.accountingOrderSn,jdbcType=VARCHAR},
      dim_create_by = #{record.dimCreateBy,jdbcType=TINYINT},
      invoice_apply_sn = #{record.invoiceApplySn,jdbcType=VARCHAR},
      invoice_apply_amount = #{record.invoiceApplyAmount,jdbcType=DECIMAL},
      free_amount = #{record.freeAmount,jdbcType=DECIMAL},
      un_accounting_amount = #{record.unAccountingAmount,jdbcType=DECIMAL},
      real_amount = #{record.realAmount,jdbcType=DECIMAL},
      no_check_count = #{record.noCheckCount,jdbcType=DECIMAL},
      tax_rate = #{record.taxRate,jdbcType=VARCHAR},
      invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
      sys_enterprise_ext_invoice_id = #{record.sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      invoice_type = #{record.invoiceType,jdbcType=BIGINT},
      invoice_mode = #{record.invoiceMode,jdbcType=VARCHAR},
      apply_user_id = #{record.applyUserId,jdbcType=BIGINT},
      apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
      audit_user_id = #{record.auditUserId,jdbcType=BIGINT},
      audit_status = #{record.auditStatus,jdbcType=TINYINT},
      audit_time = #{record.auditTime,jdbcType=TIMESTAMP},
      invoice_status = #{record.invoiceStatus,jdbcType=TINYINT},
      invoice_progressing_user_id = #{record.invoiceProgressingUserId,jdbcType=BIGINT},
      invoice_progressing_time = #{record.invoiceProgressingTime,jdbcType=TIMESTAMP},
      make_invoice_user_id = #{record.makeInvoiceUserId,jdbcType=BIGINT},
      make_invoice_status = #{record.makeInvoiceStatus,jdbcType=TINYINT},
      make_invoice_time = #{record.makeInvoiceTime,jdbcType=TIMESTAMP},
      receive_invoice_status = #{record.receiveInvoiceStatus,jdbcType=TINYINT},
      receive_invoice_user_id = #{record.receiveInvoiceUserId,jdbcType=BIGINT},
      receive_invoice_time = #{record.receiveInvoiceTime,jdbcType=TIMESTAMP},
      invoice_number = #{record.invoiceNumber,jdbcType=VARCHAR},
      mail_tick_user_id = #{record.mailTickUserId,jdbcType=BIGINT},
      mail_tick_status = #{record.mailTickStatus,jdbcType=TINYINT},
      mail_tick_time = #{record.mailTickTime,jdbcType=TIMESTAMP},
      express_company_id = #{record.expressCompanyId,jdbcType=BIGINT},
      express_no = #{record.expressNo,jdbcType=VARCHAR},
      back_account_status = #{record.backAccountStatus,jdbcType=TINYINT},
      back_account_mode_record = #{record.backAccountModeRecord,jdbcType=TINYINT},
      back_account_user_id = #{record.backAccountUserId,jdbcType=BIGINT},
      back_account_time = #{record.backAccountTime,jdbcType=TIMESTAMP},
      remark = #{record.remark,jdbcType=VARCHAR},
      remark2 = #{record.remark2,jdbcType=VARCHAR},
      attachment_upload_files_uids = #{record.attachmentUploadFilesUids,jdbcType=VARCHAR},
      service_id = #{record.serviceId,jdbcType=INTEGER},
      service_no = #{record.serviceNo,jdbcType=VARCHAR},
      source_from = #{record.sourceFrom,jdbcType=VARCHAR},
      service_name = #{record.serviceName,jdbcType=VARCHAR},
      sys_org_id = #{record.sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{record.sysVirtId,jdbcType=BIGINT},
      out_org_id = #{record.outOrgId,jdbcType=BIGINT},
      out_virt_id = #{record.outVirtId,jdbcType=BIGINT},
      relation_mode = #{record.relationMode,jdbcType=TINYINT},
      error_check_relation_01 = #{record.errorCheckRelation01,jdbcType=BIGINT},
      error_check_relation_02 = #{record.errorCheckRelation02,jdbcType=BIGINT},
      accounting_order_quantity = #{record.accountingOrderQuantity,jdbcType=INTEGER},
      order_quantity = #{record.orderQuantity,jdbcType=INTEGER},
      order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      goods_quantity = #{record.goodsQuantity,jdbcType=INTEGER},
      goods_item_quantity = #{record.goodsItemQuantity,jdbcType=INTEGER},
      credit_quantity = #{record.creditQuantity,jdbcType=INTEGER},
      goods_amount = #{record.goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{record.goodsCostAmount,jdbcType=DECIMAL},
      order_cost_amount = #{record.orderCostAmount,jdbcType=DECIMAL},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      need_revise_mark = #{record.needReviseMark,jdbcType=TINYINT},
      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},
      sys_enterprise_ext_invoice_snapshot = #{record.sysEnterpriseExtInvoiceSnapshot,jdbcType=LONGVARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    update invoice_apply
    set id = #{record.id,jdbcType=BIGINT},
      accounting_order_type = #{record.accountingOrderType,jdbcType=TINYINT},
      accounting_order_id = #{record.accountingOrderId,jdbcType=BIGINT},
      accounting_order_sn = #{record.accountingOrderSn,jdbcType=VARCHAR},
      dim_create_by = #{record.dimCreateBy,jdbcType=TINYINT},
      invoice_apply_sn = #{record.invoiceApplySn,jdbcType=VARCHAR},
      invoice_apply_amount = #{record.invoiceApplyAmount,jdbcType=DECIMAL},
      free_amount = #{record.freeAmount,jdbcType=DECIMAL},
      un_accounting_amount = #{record.unAccountingAmount,jdbcType=DECIMAL},
      real_amount = #{record.realAmount,jdbcType=DECIMAL},
      no_check_count = #{record.noCheckCount,jdbcType=DECIMAL},
      tax_rate = #{record.taxRate,jdbcType=VARCHAR},
      invoice_title = #{record.invoiceTitle,jdbcType=VARCHAR},
      sys_enterprise_ext_invoice_id = #{record.sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      invoice_type = #{record.invoiceType,jdbcType=BIGINT},
      invoice_mode = #{record.invoiceMode,jdbcType=VARCHAR},
      apply_user_id = #{record.applyUserId,jdbcType=BIGINT},
      apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
      audit_user_id = #{record.auditUserId,jdbcType=BIGINT},
      audit_status = #{record.auditStatus,jdbcType=TINYINT},
      audit_time = #{record.auditTime,jdbcType=TIMESTAMP},
      invoice_status = #{record.invoiceStatus,jdbcType=TINYINT},
      invoice_progressing_user_id = #{record.invoiceProgressingUserId,jdbcType=BIGINT},
      invoice_progressing_time = #{record.invoiceProgressingTime,jdbcType=TIMESTAMP},
      make_invoice_user_id = #{record.makeInvoiceUserId,jdbcType=BIGINT},
      make_invoice_status = #{record.makeInvoiceStatus,jdbcType=TINYINT},
      make_invoice_time = #{record.makeInvoiceTime,jdbcType=TIMESTAMP},
      receive_invoice_status = #{record.receiveInvoiceStatus,jdbcType=TINYINT},
      receive_invoice_user_id = #{record.receiveInvoiceUserId,jdbcType=BIGINT},
      receive_invoice_time = #{record.receiveInvoiceTime,jdbcType=TIMESTAMP},
      invoice_number = #{record.invoiceNumber,jdbcType=VARCHAR},
      mail_tick_user_id = #{record.mailTickUserId,jdbcType=BIGINT},
      mail_tick_status = #{record.mailTickStatus,jdbcType=TINYINT},
      mail_tick_time = #{record.mailTickTime,jdbcType=TIMESTAMP},
      express_company_id = #{record.expressCompanyId,jdbcType=BIGINT},
      express_no = #{record.expressNo,jdbcType=VARCHAR},
      back_account_status = #{record.backAccountStatus,jdbcType=TINYINT},
      back_account_mode_record = #{record.backAccountModeRecord,jdbcType=TINYINT},
      back_account_user_id = #{record.backAccountUserId,jdbcType=BIGINT},
      back_account_time = #{record.backAccountTime,jdbcType=TIMESTAMP},
      remark = #{record.remark,jdbcType=VARCHAR},
      remark2 = #{record.remark2,jdbcType=VARCHAR},
      attachment_upload_files_uids = #{record.attachmentUploadFilesUids,jdbcType=VARCHAR},
      service_id = #{record.serviceId,jdbcType=INTEGER},
      service_no = #{record.serviceNo,jdbcType=VARCHAR},
      source_from = #{record.sourceFrom,jdbcType=VARCHAR},
      service_name = #{record.serviceName,jdbcType=VARCHAR},
      sys_org_id = #{record.sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{record.sysVirtId,jdbcType=BIGINT},
      out_org_id = #{record.outOrgId,jdbcType=BIGINT},
      out_virt_id = #{record.outVirtId,jdbcType=BIGINT},
      relation_mode = #{record.relationMode,jdbcType=TINYINT},
      error_check_relation_01 = #{record.errorCheckRelation01,jdbcType=BIGINT},
      error_check_relation_02 = #{record.errorCheckRelation02,jdbcType=BIGINT},
      accounting_order_quantity = #{record.accountingOrderQuantity,jdbcType=INTEGER},
      order_quantity = #{record.orderQuantity,jdbcType=INTEGER},
      order_amount = #{record.orderAmount,jdbcType=DECIMAL},
      goods_quantity = #{record.goodsQuantity,jdbcType=INTEGER},
      goods_item_quantity = #{record.goodsItemQuantity,jdbcType=INTEGER},
      credit_quantity = #{record.creditQuantity,jdbcType=INTEGER},
      goods_amount = #{record.goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{record.goodsCostAmount,jdbcType=DECIMAL},
      order_cost_amount = #{record.orderCostAmount,jdbcType=DECIMAL},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{record.updateUserId,jdbcType=BIGINT},
      need_revise_mark = #{record.needReviseMark,jdbcType=TINYINT},
      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}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    update invoice_apply
    <set>
      <if test="accountingOrderType != null">
        accounting_order_type = #{accountingOrderType,jdbcType=TINYINT},
      </if>
      <if test="accountingOrderId != null">
        accounting_order_id = #{accountingOrderId,jdbcType=BIGINT},
      </if>
      <if test="accountingOrderSn != null">
        accounting_order_sn = #{accountingOrderSn,jdbcType=VARCHAR},
      </if>
      <if test="dimCreateBy != null">
        dim_create_by = #{dimCreateBy,jdbcType=TINYINT},
      </if>
      <if test="invoiceApplySn != null">
        invoice_apply_sn = #{invoiceApplySn,jdbcType=VARCHAR},
      </if>
      <if test="invoiceApplyAmount != null">
        invoice_apply_amount = #{invoiceApplyAmount,jdbcType=DECIMAL},
      </if>
      <if test="freeAmount != null">
        free_amount = #{freeAmount,jdbcType=DECIMAL},
      </if>
      <if test="unAccountingAmount != null">
        un_accounting_amount = #{unAccountingAmount,jdbcType=DECIMAL},
      </if>
      <if test="realAmount != null">
        real_amount = #{realAmount,jdbcType=DECIMAL},
      </if>
      <if test="noCheckCount != null">
        no_check_count = #{noCheckCount,jdbcType=DECIMAL},
      </if>
      <if test="taxRate != null">
        tax_rate = #{taxRate,jdbcType=VARCHAR},
      </if>
      <if test="invoiceTitle != null">
        invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
      </if>
      <if test="sysEnterpriseExtInvoiceId != null">
        sys_enterprise_ext_invoice_id = #{sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      </if>
      <if test="invoiceType != null">
        invoice_type = #{invoiceType,jdbcType=BIGINT},
      </if>
      <if test="invoiceMode != null">
        invoice_mode = #{invoiceMode,jdbcType=VARCHAR},
      </if>
      <if test="applyUserId != null">
        apply_user_id = #{applyUserId,jdbcType=BIGINT},
      </if>
      <if test="applyTime != null">
        apply_time = #{applyTime,jdbcType=TIMESTAMP},
      </if>
      <if test="auditUserId != null">
        audit_user_id = #{auditUserId,jdbcType=BIGINT},
      </if>
      <if test="auditStatus != null">
        audit_status = #{auditStatus,jdbcType=TINYINT},
      </if>
      <if test="auditTime != null">
        audit_time = #{auditTime,jdbcType=TIMESTAMP},
      </if>
      <if test="invoiceStatus != null">
        invoice_status = #{invoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="invoiceProgressingUserId != null">
        invoice_progressing_user_id = #{invoiceProgressingUserId,jdbcType=BIGINT},
      </if>
      <if test="invoiceProgressingTime != null">
        invoice_progressing_time = #{invoiceProgressingTime,jdbcType=TIMESTAMP},
      </if>
      <if test="makeInvoiceUserId != null">
        make_invoice_user_id = #{makeInvoiceUserId,jdbcType=BIGINT},
      </if>
      <if test="makeInvoiceStatus != null">
        make_invoice_status = #{makeInvoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="makeInvoiceTime != null">
        make_invoice_time = #{makeInvoiceTime,jdbcType=TIMESTAMP},
      </if>
      <if test="receiveInvoiceStatus != null">
        receive_invoice_status = #{receiveInvoiceStatus,jdbcType=TINYINT},
      </if>
      <if test="receiveInvoiceUserId != null">
        receive_invoice_user_id = #{receiveInvoiceUserId,jdbcType=BIGINT},
      </if>
      <if test="receiveInvoiceTime != null">
        receive_invoice_time = #{receiveInvoiceTime,jdbcType=TIMESTAMP},
      </if>
      <if test="invoiceNumber != null">
        invoice_number = #{invoiceNumber,jdbcType=VARCHAR},
      </if>
      <if test="mailTickUserId != null">
        mail_tick_user_id = #{mailTickUserId,jdbcType=BIGINT},
      </if>
      <if test="mailTickStatus != null">
        mail_tick_status = #{mailTickStatus,jdbcType=TINYINT},
      </if>
      <if test="mailTickTime != null">
        mail_tick_time = #{mailTickTime,jdbcType=TIMESTAMP},
      </if>
      <if test="expressCompanyId != null">
        express_company_id = #{expressCompanyId,jdbcType=BIGINT},
      </if>
      <if test="expressNo != null">
        express_no = #{expressNo,jdbcType=VARCHAR},
      </if>
      <if test="backAccountStatus != null">
        back_account_status = #{backAccountStatus,jdbcType=TINYINT},
      </if>
      <if test="backAccountModeRecord != null">
        back_account_mode_record = #{backAccountModeRecord,jdbcType=TINYINT},
      </if>
      <if test="backAccountUserId != null">
        back_account_user_id = #{backAccountUserId,jdbcType=BIGINT},
      </if>
      <if test="backAccountTime != null">
        back_account_time = #{backAccountTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="remark2 != null">
        remark2 = #{remark2,jdbcType=VARCHAR},
      </if>
      <if test="attachmentUploadFilesUids != null">
        attachment_upload_files_uids = #{attachmentUploadFilesUids,jdbcType=VARCHAR},
      </if>
      <if test="serviceId != null">
        service_id = #{serviceId,jdbcType=INTEGER},
      </if>
      <if test="serviceNo != null">
        service_no = #{serviceNo,jdbcType=VARCHAR},
      </if>
      <if test="sourceFrom != null">
        source_from = #{sourceFrom,jdbcType=VARCHAR},
      </if>
      <if test="serviceName != null">
        service_name = #{serviceName,jdbcType=VARCHAR},
      </if>
      <if test="sysOrgId != null">
        sys_org_id = #{sysOrgId,jdbcType=BIGINT},
      </if>
      <if test="sysVirtId != null">
        sys_virt_id = #{sysVirtId,jdbcType=BIGINT},
      </if>
      <if test="outOrgId != null">
        out_org_id = #{outOrgId,jdbcType=BIGINT},
      </if>
      <if test="outVirtId != null">
        out_virt_id = #{outVirtId,jdbcType=BIGINT},
      </if>
      <if test="relationMode != null">
        relation_mode = #{relationMode,jdbcType=TINYINT},
      </if>
      <if test="errorCheckRelation01 != null">
        error_check_relation_01 = #{errorCheckRelation01,jdbcType=BIGINT},
      </if>
      <if test="errorCheckRelation02 != null">
        error_check_relation_02 = #{errorCheckRelation02,jdbcType=BIGINT},
      </if>
      <if test="accountingOrderQuantity != null">
        accounting_order_quantity = #{accountingOrderQuantity,jdbcType=INTEGER},
      </if>
      <if test="orderQuantity != null">
        order_quantity = #{orderQuantity,jdbcType=INTEGER},
      </if>
      <if test="orderAmount != null">
        order_amount = #{orderAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsQuantity != null">
        goods_quantity = #{goodsQuantity,jdbcType=INTEGER},
      </if>
      <if test="goodsItemQuantity != null">
        goods_item_quantity = #{goodsItemQuantity,jdbcType=INTEGER},
      </if>
      <if test="creditQuantity != null">
        credit_quantity = #{creditQuantity,jdbcType=INTEGER},
      </if>
      <if test="goodsAmount != null">
        goods_amount = #{goodsAmount,jdbcType=DECIMAL},
      </if>
      <if test="goodsCostAmount != null">
        goods_cost_amount = #{goodsCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="orderCostAmount != null">
        order_cost_amount = #{orderCostAmount,jdbcType=DECIMAL},
      </if>
      <if test="updateTime != null">
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateUserId != null">
        update_user_id = #{updateUserId,jdbcType=BIGINT},
      </if>
      <if test="needReviseMark != null">
        need_revise_mark = #{needReviseMark,jdbcType=TINYINT},
      </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="sysEnterpriseExtInvoiceSnapshot != null">
        sys_enterprise_ext_invoice_snapshot = #{sysEnterpriseExtInvoiceSnapshot,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    update invoice_apply
    set accounting_order_type = #{accountingOrderType,jdbcType=TINYINT},
      accounting_order_id = #{accountingOrderId,jdbcType=BIGINT},
      accounting_order_sn = #{accountingOrderSn,jdbcType=VARCHAR},
      dim_create_by = #{dimCreateBy,jdbcType=TINYINT},
      invoice_apply_sn = #{invoiceApplySn,jdbcType=VARCHAR},
      invoice_apply_amount = #{invoiceApplyAmount,jdbcType=DECIMAL},
      free_amount = #{freeAmount,jdbcType=DECIMAL},
      un_accounting_amount = #{unAccountingAmount,jdbcType=DECIMAL},
      real_amount = #{realAmount,jdbcType=DECIMAL},
      no_check_count = #{noCheckCount,jdbcType=DECIMAL},
      tax_rate = #{taxRate,jdbcType=VARCHAR},
      invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
      sys_enterprise_ext_invoice_id = #{sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      invoice_type = #{invoiceType,jdbcType=BIGINT},
      invoice_mode = #{invoiceMode,jdbcType=VARCHAR},
      apply_user_id = #{applyUserId,jdbcType=BIGINT},
      apply_time = #{applyTime,jdbcType=TIMESTAMP},
      audit_user_id = #{auditUserId,jdbcType=BIGINT},
      audit_status = #{auditStatus,jdbcType=TINYINT},
      audit_time = #{auditTime,jdbcType=TIMESTAMP},
      invoice_status = #{invoiceStatus,jdbcType=TINYINT},
      invoice_progressing_user_id = #{invoiceProgressingUserId,jdbcType=BIGINT},
      invoice_progressing_time = #{invoiceProgressingTime,jdbcType=TIMESTAMP},
      make_invoice_user_id = #{makeInvoiceUserId,jdbcType=BIGINT},
      make_invoice_status = #{makeInvoiceStatus,jdbcType=TINYINT},
      make_invoice_time = #{makeInvoiceTime,jdbcType=TIMESTAMP},
      receive_invoice_status = #{receiveInvoiceStatus,jdbcType=TINYINT},
      receive_invoice_user_id = #{receiveInvoiceUserId,jdbcType=BIGINT},
      receive_invoice_time = #{receiveInvoiceTime,jdbcType=TIMESTAMP},
      invoice_number = #{invoiceNumber,jdbcType=VARCHAR},
      mail_tick_user_id = #{mailTickUserId,jdbcType=BIGINT},
      mail_tick_status = #{mailTickStatus,jdbcType=TINYINT},
      mail_tick_time = #{mailTickTime,jdbcType=TIMESTAMP},
      express_company_id = #{expressCompanyId,jdbcType=BIGINT},
      express_no = #{expressNo,jdbcType=VARCHAR},
      back_account_status = #{backAccountStatus,jdbcType=TINYINT},
      back_account_mode_record = #{backAccountModeRecord,jdbcType=TINYINT},
      back_account_user_id = #{backAccountUserId,jdbcType=BIGINT},
      back_account_time = #{backAccountTime,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR},
      remark2 = #{remark2,jdbcType=VARCHAR},
      attachment_upload_files_uids = #{attachmentUploadFilesUids,jdbcType=VARCHAR},
      service_id = #{serviceId,jdbcType=INTEGER},
      service_no = #{serviceNo,jdbcType=VARCHAR},
      source_from = #{sourceFrom,jdbcType=VARCHAR},
      service_name = #{serviceName,jdbcType=VARCHAR},
      sys_org_id = #{sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{sysVirtId,jdbcType=BIGINT},
      out_org_id = #{outOrgId,jdbcType=BIGINT},
      out_virt_id = #{outVirtId,jdbcType=BIGINT},
      relation_mode = #{relationMode,jdbcType=TINYINT},
      error_check_relation_01 = #{errorCheckRelation01,jdbcType=BIGINT},
      error_check_relation_02 = #{errorCheckRelation02,jdbcType=BIGINT},
      accounting_order_quantity = #{accountingOrderQuantity,jdbcType=INTEGER},
      order_quantity = #{orderQuantity,jdbcType=INTEGER},
      order_amount = #{orderAmount,jdbcType=DECIMAL},
      goods_quantity = #{goodsQuantity,jdbcType=INTEGER},
      goods_item_quantity = #{goodsItemQuantity,jdbcType=INTEGER},
      credit_quantity = #{creditQuantity,jdbcType=INTEGER},
      goods_amount = #{goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{goodsCostAmount,jdbcType=DECIMAL},
      order_cost_amount = #{orderCostAmount,jdbcType=DECIMAL},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      need_revise_mark = #{needReviseMark,jdbcType=TINYINT},
      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},
      sys_enterprise_ext_invoice_snapshot = #{sysEnterpriseExtInvoiceSnapshot,jdbcType=LONGVARCHAR}
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="cn.superdesk.uniorder.dao.entity.invoice.customer.InvoiceApply">
    update invoice_apply
    set accounting_order_type = #{accountingOrderType,jdbcType=TINYINT},
      accounting_order_id = #{accountingOrderId,jdbcType=BIGINT},
      accounting_order_sn = #{accountingOrderSn,jdbcType=VARCHAR},
      dim_create_by = #{dimCreateBy,jdbcType=TINYINT},
      invoice_apply_sn = #{invoiceApplySn,jdbcType=VARCHAR},
      invoice_apply_amount = #{invoiceApplyAmount,jdbcType=DECIMAL},
      free_amount = #{freeAmount,jdbcType=DECIMAL},
      un_accounting_amount = #{unAccountingAmount,jdbcType=DECIMAL},
      real_amount = #{realAmount,jdbcType=DECIMAL},
      no_check_count = #{noCheckCount,jdbcType=DECIMAL},
      tax_rate = #{taxRate,jdbcType=VARCHAR},
      invoice_title = #{invoiceTitle,jdbcType=VARCHAR},
      sys_enterprise_ext_invoice_id = #{sysEnterpriseExtInvoiceId,jdbcType=BIGINT},
      invoice_type = #{invoiceType,jdbcType=BIGINT},
      invoice_mode = #{invoiceMode,jdbcType=VARCHAR},
      apply_user_id = #{applyUserId,jdbcType=BIGINT},
      apply_time = #{applyTime,jdbcType=TIMESTAMP},
      audit_user_id = #{auditUserId,jdbcType=BIGINT},
      audit_status = #{auditStatus,jdbcType=TINYINT},
      audit_time = #{auditTime,jdbcType=TIMESTAMP},
      invoice_status = #{invoiceStatus,jdbcType=TINYINT},
      invoice_progressing_user_id = #{invoiceProgressingUserId,jdbcType=BIGINT},
      invoice_progressing_time = #{invoiceProgressingTime,jdbcType=TIMESTAMP},
      make_invoice_user_id = #{makeInvoiceUserId,jdbcType=BIGINT},
      make_invoice_status = #{makeInvoiceStatus,jdbcType=TINYINT},
      make_invoice_time = #{makeInvoiceTime,jdbcType=TIMESTAMP},
      receive_invoice_status = #{receiveInvoiceStatus,jdbcType=TINYINT},
      receive_invoice_user_id = #{receiveInvoiceUserId,jdbcType=BIGINT},
      receive_invoice_time = #{receiveInvoiceTime,jdbcType=TIMESTAMP},
      invoice_number = #{invoiceNumber,jdbcType=VARCHAR},
      mail_tick_user_id = #{mailTickUserId,jdbcType=BIGINT},
      mail_tick_status = #{mailTickStatus,jdbcType=TINYINT},
      mail_tick_time = #{mailTickTime,jdbcType=TIMESTAMP},
      express_company_id = #{expressCompanyId,jdbcType=BIGINT},
      express_no = #{expressNo,jdbcType=VARCHAR},
      back_account_status = #{backAccountStatus,jdbcType=TINYINT},
      back_account_mode_record = #{backAccountModeRecord,jdbcType=TINYINT},
      back_account_user_id = #{backAccountUserId,jdbcType=BIGINT},
      back_account_time = #{backAccountTime,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR},
      remark2 = #{remark2,jdbcType=VARCHAR},
      attachment_upload_files_uids = #{attachmentUploadFilesUids,jdbcType=VARCHAR},
      service_id = #{serviceId,jdbcType=INTEGER},
      service_no = #{serviceNo,jdbcType=VARCHAR},
      source_from = #{sourceFrom,jdbcType=VARCHAR},
      service_name = #{serviceName,jdbcType=VARCHAR},
      sys_org_id = #{sysOrgId,jdbcType=BIGINT},
      sys_virt_id = #{sysVirtId,jdbcType=BIGINT},
      out_org_id = #{outOrgId,jdbcType=BIGINT},
      out_virt_id = #{outVirtId,jdbcType=BIGINT},
      relation_mode = #{relationMode,jdbcType=TINYINT},
      error_check_relation_01 = #{errorCheckRelation01,jdbcType=BIGINT},
      error_check_relation_02 = #{errorCheckRelation02,jdbcType=BIGINT},
      accounting_order_quantity = #{accountingOrderQuantity,jdbcType=INTEGER},
      order_quantity = #{orderQuantity,jdbcType=INTEGER},
      order_amount = #{orderAmount,jdbcType=DECIMAL},
      goods_quantity = #{goodsQuantity,jdbcType=INTEGER},
      goods_item_quantity = #{goodsItemQuantity,jdbcType=INTEGER},
      credit_quantity = #{creditQuantity,jdbcType=INTEGER},
      goods_amount = #{goodsAmount,jdbcType=DECIMAL},
      goods_cost_amount = #{goodsCostAmount,jdbcType=DECIMAL},
      order_cost_amount = #{orderCostAmount,jdbcType=DECIMAL},
      update_time = #{updateTime,jdbcType=TIMESTAMP},
      update_user_id = #{updateUserId,jdbcType=BIGINT},
      need_revise_mark = #{needReviseMark,jdbcType=TINYINT},
      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}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>