<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dxhy.domestic.dao.DomesticRecordInvoiceDao">
    <delete databaseId="mysql" id="deleteByPrimaryKey" parameterType="java.lang.Long">
        delete
        from t_dx_record_invoice
        where id = #{id,jdbcType=BIGINT}
    </delete>

    <delete databaseId="oracle" id="deleteByPrimaryKey" parameterType="java.lang.Long">
        delete
        from t_dx_record_invoice
        where id = #{id,jdbcType=BIGINT}
    </delete>

    <insert databaseId="mysql" id="insert" parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        insert into t_dx_record_invoice (id, invoice_type, invoice_code,
                                         invoice_no, invoice_date, gf_tax_no,
                                         gf_name, gf_address_and_phone, gf_bank_and_no,
                                         xf_tax_no, xf_name, xf_address_and_phone,
                                         xf_bank_and_no, invoice_amount, tax_amount,
                                         total_amount, remark, invoice_status,
                                         status_update_date, last_update_date, rzh_date,
                                         qs_date, rzh_belong_date_late, rzh_belong_date,
                                         confirm_date, rzh_type, rzh_yesorno,
                                         gx_user_account, gx_user_name, source_system,
                                         valid, uuid, create_date,
                                         gx_date, rzh_back_msg, dqskssq,
                                         gxjzr, gxfwq, gxfwz,
                                         sfygx, detail_yesorno, gx_type,
                                         auth_status, send_date, rzlx,
                                         sfdbts, qs_type, qs_status,
                                         check_code, txfbz, lslbz,
                                         out_status, out_invoice_amout, out_tax_amount,
                                         out_reason, out_remark, out_date,
                                         out_by, confirm_user, machinecode,
                                         dept_id, dept_name, settlement_no,
                                         settlement_status, settle_source, payment_status,
                                         payment_date, voucher_number, payment_sum,
                                         qs_name, yqsq_msg, yqsq_status,
                                         glzt, xxly, dk_tax_amount,
                                         yqkgxbz, yclx, yqshzt,
                                         user_account, new_gf_taxno, yq_current_period,
                                         company, cxrz_status, cxrz_date,
                                         bdk_status, bdk_date, cxrz_current_period,
                                         bdk_current_period, cxbdk_status, cxbdk_date,
                                         yqsq_date, yqsh_date, vendor_id,
                                         request_id, scan_match_status, scan_match_date,
                                         order_no, is_auth)
        values (#{id,jdbcType=BIGINT}, #{invoiceType,jdbcType=VARCHAR}, #{invoiceCode,jdbcType=VARCHAR},
                #{invoiceNo,jdbcType=VARCHAR}, #{invoiceDate,jdbcType=TIMESTAMP}, #{gfTaxNo,jdbcType=VARCHAR},
                #{gfName,jdbcType=VARCHAR}, #{gfAddressAndPhone,jdbcType=VARCHAR}, #{gfBankAndNo,jdbcType=VARCHAR},
                #{xfTaxNo,jdbcType=VARCHAR}, #{xfName,jdbcType=VARCHAR}, #{xfAddressAndPhone,jdbcType=VARCHAR},
                #{xfBankAndNo,jdbcType=VARCHAR}, #{invoiceAmount,jdbcType=DECIMAL}, #{taxAmount,jdbcType=DECIMAL},
                #{totalAmount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{invoiceStatus,jdbcType=VARCHAR},
                #{statusUpdateDate,jdbcType=TIMESTAMP}, #{lastUpdateDate,jdbcType=TIMESTAMP},
                #{rzhDate,jdbcType=TIMESTAMP},
                #{qsDate,jdbcType=TIMESTAMP}, #{rzhBelongDateLate,jdbcType=VARCHAR}, #{rzhBelongDate,jdbcType=VARCHAR},
                #{confirmDate,jdbcType=TIMESTAMP}, #{rzhType,jdbcType=VARCHAR}, #{rzhYesorno,jdbcType=VARCHAR},
                #{gxUserAccount,jdbcType=VARCHAR}, #{gxUserName,jdbcType=VARCHAR}, #{sourceSystem,jdbcType=VARCHAR},
                #{valid,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},
                #{gxDate,jdbcType=TIMESTAMP}, #{rzhBackMsg,jdbcType=VARCHAR}, #{dqskssq,jdbcType=VARCHAR},
                #{gxjzr,jdbcType=VARCHAR}, #{gxfwq,jdbcType=VARCHAR}, #{gxfwz,jdbcType=VARCHAR},
                #{sfygx,jdbcType=VARCHAR}, #{detailYesorno,jdbcType=VARCHAR}, #{gxType,jdbcType=VARCHAR},
                #{authStatus,jdbcType=VARCHAR}, #{sendDate,jdbcType=TIMESTAMP}, #{rzlx,jdbcType=VARCHAR},
                #{sfdbts,jdbcType=VARCHAR}, #{qsType,jdbcType=VARCHAR}, #{qsStatus,jdbcType=VARCHAR},
                #{checkCode,jdbcType=VARCHAR}, #{txfbz,jdbcType=VARCHAR}, #{lslbz,jdbcType=VARCHAR},
                #{outStatus,jdbcType=VARCHAR}, #{outInvoiceAmout,jdbcType=DECIMAL}, #{outTaxAmount,jdbcType=DECIMAL},
                #{outReason,jdbcType=VARCHAR}, #{outRemark,jdbcType=VARCHAR}, #{outDate,jdbcType=TIMESTAMP},
                #{outBy,jdbcType=VARCHAR}, #{confirmUser,jdbcType=VARCHAR}, #{machinecode,jdbcType=VARCHAR},
                #{deptId,jdbcType=VARCHAR}, #{deptName,jdbcType=VARCHAR}, #{settlementNo,jdbcType=VARCHAR},
                #{settlementStatus,jdbcType=VARCHAR}, #{settleSource,jdbcType=VARCHAR},
                #{paymentStatus,jdbcType=VARCHAR},
                #{paymentDate,jdbcType=VARCHAR}, #{voucherNumber,jdbcType=VARCHAR}, #{paymentSum,jdbcType=VARCHAR},
                #{qsName,jdbcType=VARCHAR}, #{yqsqMsg,jdbcType=VARCHAR}, #{yqsqStatus,jdbcType=VARCHAR},
                #{glzt,jdbcType=VARCHAR}, #{xxly,jdbcType=VARCHAR}, #{dkTaxAmount,jdbcType=DECIMAL},
                #{yqkgxbz,jdbcType=VARCHAR}, #{yclx,jdbcType=VARCHAR}, #{yqshzt,jdbcType=VARCHAR},
                #{userAccount,jdbcType=VARCHAR}, #{newGfTaxno,jdbcType=VARCHAR}, #{yqCurrentPeriod,jdbcType=VARCHAR},
                #{company,jdbcType=VARCHAR}, #{cxrzStatus,jdbcType=VARCHAR}, #{cxrzDate,jdbcType=TIMESTAMP},
                #{bdkStatus,jdbcType=VARCHAR}, #{bdkDate,jdbcType=TIMESTAMP}, #{cxrzCurrentPeriod,jdbcType=VARCHAR},
                #{bdkCurrentPeriod,jdbcType=VARCHAR}, #{cxbdkStatus,jdbcType=VARCHAR}, #{cxbdkDate,jdbcType=TIMESTAMP},
                #{yqsqDate,jdbcType=TIMESTAMP}, #{yqshDate,jdbcType=TIMESTAMP}, #{vendorId,jdbcType=VARCHAR},
                #{requestId,jdbcType=VARCHAR}, #{scanMatchStatus,jdbcType=VARCHAR}, #{scanMatchDate,jdbcType=TIMESTAMP},
                #{orderNo,jdbcType=VARCHAR}, #{isAuth,jdbcType=VARCHAR})
    </insert>


    <insert databaseId="mysql" id="insertSelective"
            parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        insert into t_dx_record_invoice
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">
                id,
            </if>
            <if test="invoiceType != null">
                invoice_type,
            </if>
            <if test="invoiceCode != null">
                invoice_code,
            </if>
            <if test="invoiceNo != null">
                invoice_no,
            </if>
            <if test="invoiceDate != null">
                invoice_date,
            </if>
            <if test="gfTaxNo != null">
                gf_tax_no,
            </if>
            <if test="gfName != null">
                gf_name,
            </if>
            <if test="gfAddressAndPhone != null">
                gf_address_and_phone,
            </if>
            <if test="gfBankAndNo != null">
                gf_bank_and_no,
            </if>
            <if test="xfTaxNo != null">
                xf_tax_no,
            </if>
            <if test="xfName != null">
                xf_name,
            </if>
            <if test="xfAddressAndPhone != null">
                xf_address_and_phone,
            </if>
            <if test="xfBankAndNo != null">
                xf_bank_and_no,
            </if>
            <if test="invoiceAmount != null">
                invoice_amount,
            </if>
            <if test="taxAmount != null">
                tax_amount,
            </if>
            <if test="totalAmount != null">
                total_amount,
            </if>
            <if test="remark != null">
                remark,
            </if>
            <if test="invoiceStatus != null">
                invoice_status,
            </if>
            <if test="statusUpdateDate != null">
                status_update_date,
            </if>
            <if test="lastUpdateDate != null">
                last_update_date,
            </if>
            <if test="rzhDate != null">
                rzh_date,
            </if>
            <if test="qsDate != null">
                qs_date,
            </if>
            <if test="rzhBelongDateLate != null">
                rzh_belong_date_late,
            </if>
            <if test="rzhBelongDate != null">
                rzh_belong_date,
            </if>
            <if test="confirmDate != null">
                confirm_date,
            </if>
            <if test="rzhType != null">
                rzh_type,
            </if>
            <if test="rzhYesorno != null">
                rzh_yesorno,
            </if>
            <if test="gxUserAccount != null">
                gx_user_account,
            </if>
            <if test="gxUserName != null">
                gx_user_name,
            </if>
            <if test="sourceSystem != null">
                source_system,
            </if>
            <if test="valid != null">
                valid,
            </if>
            <if test="uuid != null">
                uuid,
            </if>
            <if test="createDate != null">
                create_date,
            </if>
            <if test="gxDate != null">
                gx_date,
            </if>
            <if test="rzhBackMsg != null">
                rzh_back_msg,
            </if>
            <if test="dqskssq != null">
                dqskssq,
            </if>
            <if test="gxjzr != null">
                gxjzr,
            </if>
            <if test="gxfwq != null">
                gxfwq,
            </if>
            <if test="gxfwz != null">
                gxfwz,
            </if>
            <if test="sfygx != null">
                sfygx,
            </if>
            <if test="detailYesorno != null">
                detail_yesorno,
            </if>
            <if test="gxType != null">
                gx_type,
            </if>
            <if test="authStatus != null">
                auth_status,
            </if>
            <if test="sendDate != null">
                send_date,
            </if>
            <if test="rzlx != null">
                rzlx,
            </if>
            <if test="sfdbts != null">
                sfdbts,
            </if>
            <if test="qsType != null">
                qs_type,
            </if>
            <if test="qsStatus != null">
                qs_status,
            </if>
            <if test="checkCode != null">
                check_code,
            </if>
            <if test="txfbz != null">
                txfbz,
            </if>
            <if test="lslbz != null">
                lslbz,
            </if>
            <if test="outStatus != null">
                out_status,
            </if>
            <if test="outInvoiceAmout != null">
                out_invoice_amout,
            </if>
            <if test="outTaxAmount != null">
                out_tax_amount,
            </if>
            <if test="outReason != null">
                out_reason,
            </if>
            <if test="outRemark != null">
                out_remark,
            </if>
            <if test="outDate != null">
                out_date,
            </if>
            <if test="outBy != null">
                out_by,
            </if>
            <if test="confirmUser != null">
                confirm_user,
            </if>
            <if test="machinecode != null">
                machinecode,
            </if>
            <if test="deptId != null">
                dept_id,
            </if>
            <if test="deptName != null">
                dept_name,
            </if>
            <if test="settlementNo != null">
                settlement_no,
            </if>
            <if test="settlementStatus != null">
                settlement_status,
            </if>
            <if test="settleSource != null">
                settle_source,
            </if>
            <if test="paymentStatus != null">
                payment_status,
            </if>
            <if test="paymentDate != null">
                payment_date,
            </if>
            <if test="voucherNumber != null">
                voucher_number,
            </if>
            <if test="paymentSum != null">
                payment_sum,
            </if>
            <if test="qsName != null">
                qs_name,
            </if>
            <if test="yqsqMsg != null">
                yqsq_msg,
            </if>
            <if test="yqsqStatus != null">
                yqsq_status,
            </if>
            <if test="glzt != null">
                glzt,
            </if>
            <if test="xxly != null">
                xxly,
            </if>
            <if test="dkTaxAmount != null">
                dk_tax_amount,
            </if>
            <if test="yqkgxbz != null">
                yqkgxbz,
            </if>
            <if test="yclx != null">
                yclx,
            </if>
            <if test="yqshzt != null">
                yqshzt,
            </if>
            <if test="userAccount != null">
                user_account,
            </if>
            <if test="newGfTaxno != null">
                new_gf_taxno,
            </if>
            <if test="yqCurrentPeriod != null">
                yq_current_period,
            </if>
            <if test="company != null">
                company,
            </if>
            <if test="cxrzStatus != null">
                cxrz_status,
            </if>
            <if test="cxrzDate != null">
                cxrz_date,
            </if>
            <if test="bdkStatus != null">
                bdk_status,
            </if>
            <if test="bdkDate != null">
                bdk_date,
            </if>
            <if test="cxrzCurrentPeriod != null">
                cxrz_current_period,
            </if>
            <if test="bdkCurrentPeriod != null">
                bdk_current_period,
            </if>
            <if test="cxbdkStatus != null">
                cxbdk_status,
            </if>
            <if test="cxbdkDate != null">
                cxbdk_date,
            </if>
            <if test="yqsqDate != null">
                yqsq_date,
            </if>
            <if test="yqshDate != null">
                yqsh_date,
            </if>
            <if test="vendorId != null">
                vendor_id,
            </if>
            <if test="requestId != null">
                request_id,
            </if>
            <if test="scanMatchStatus != null">
                scan_match_status,
            </if>
            <if test="scanMatchDate != null">
                scan_match_date,
            </if>
            <if test="orderNo != null">
                order_no,
            </if>
            <if test="isAuth != null">
                is_auth,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">
                #{id,jdbcType=BIGINT},
            </if>
            <if test="invoiceType != null">
                #{invoiceType,jdbcType=VARCHAR},
            </if>
            <if test="invoiceCode != null">
                #{invoiceCode,jdbcType=VARCHAR},
            </if>
            <if test="invoiceNo != null">
                #{invoiceNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceDate != null">
                #{invoiceDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gfTaxNo != null">
                #{gfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="gfName != null">
                #{gfName,jdbcType=VARCHAR},
            </if>
            <if test="gfAddressAndPhone != null">
                #{gfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="gfBankAndNo != null">
                #{gfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="xfTaxNo != null">
                #{xfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="xfName != null">
                #{xfName,jdbcType=VARCHAR},
            </if>
            <if test="xfAddressAndPhone != null">
                #{xfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="xfBankAndNo != null">
                #{xfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceAmount != null">
                #{invoiceAmount,jdbcType=DECIMAL},
            </if>
            <if test="taxAmount != null">
                #{taxAmount,jdbcType=DECIMAL},
            </if>
            <if test="totalAmount != null">
                #{totalAmount,jdbcType=DECIMAL},
            </if>
            <if test="remark != null">
                #{remark,jdbcType=VARCHAR},
            </if>
            <if test="invoiceStatus != null">
                #{invoiceStatus,jdbcType=VARCHAR},
            </if>
            <if test="statusUpdateDate != null">
                #{statusUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="lastUpdateDate != null">
                #{lastUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhDate != null">
                #{rzhDate,jdbcType=TIMESTAMP},
            </if>
            <if test="qsDate != null">
                #{qsDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBelongDateLate != null">
                #{rzhBelongDateLate,jdbcType=VARCHAR},
            </if>
            <if test="rzhBelongDate != null">
                #{rzhBelongDate,jdbcType=VARCHAR},
            </if>
            <if test="confirmDate != null">
                #{confirmDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhType != null">
                #{rzhType,jdbcType=VARCHAR},
            </if>
            <if test="rzhYesorno != null">
                #{rzhYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxUserAccount != null">
                #{gxUserAccount,jdbcType=VARCHAR},
            </if>
            <if test="gxUserName != null">
                #{gxUserName,jdbcType=VARCHAR},
            </if>
            <if test="sourceSystem != null">
                #{sourceSystem,jdbcType=VARCHAR},
            </if>
            <if test="valid != null">
                #{valid,jdbcType=VARCHAR},
            </if>
            <if test="uuid != null">
                #{uuid,jdbcType=VARCHAR},
            </if>
            <if test="createDate != null">
                #{createDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gxDate != null">
                #{gxDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBackMsg != null">
                #{rzhBackMsg,jdbcType=VARCHAR},
            </if>
            <if test="dqskssq != null">
                #{dqskssq,jdbcType=VARCHAR},
            </if>
            <if test="gxjzr != null">
                #{gxjzr,jdbcType=VARCHAR},
            </if>
            <if test="gxfwq != null">
                #{gxfwq,jdbcType=VARCHAR},
            </if>
            <if test="gxfwz != null">
                #{gxfwz,jdbcType=VARCHAR},
            </if>
            <if test="sfygx != null">
                #{sfygx,jdbcType=VARCHAR},
            </if>
            <if test="detailYesorno != null">
                #{detailYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxType != null">
                #{gxType,jdbcType=VARCHAR},
            </if>
            <if test="authStatus != null">
                #{authStatus,jdbcType=VARCHAR},
            </if>
            <if test="sendDate != null">
                #{sendDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzlx != null">
                #{rzlx,jdbcType=VARCHAR},
            </if>
            <if test="sfdbts != null">
                #{sfdbts,jdbcType=VARCHAR},
            </if>
            <if test="qsType != null">
                #{qsType,jdbcType=VARCHAR},
            </if>
            <if test="qsStatus != null">
                #{qsStatus,jdbcType=VARCHAR},
            </if>
            <if test="checkCode != null">
                #{checkCode,jdbcType=VARCHAR},
            </if>
            <if test="txfbz != null">
                #{txfbz,jdbcType=VARCHAR},
            </if>
            <if test="lslbz != null">
                #{lslbz,jdbcType=VARCHAR},
            </if>
            <if test="outStatus != null">
                #{outStatus,jdbcType=VARCHAR},
            </if>
            <if test="outInvoiceAmout != null">
                #{outInvoiceAmout,jdbcType=DECIMAL},
            </if>
            <if test="outTaxAmount != null">
                #{outTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="outReason != null">
                #{outReason,jdbcType=VARCHAR},
            </if>
            <if test="outRemark != null">
                #{outRemark,jdbcType=VARCHAR},
            </if>
            <if test="outDate != null">
                #{outDate,jdbcType=TIMESTAMP},
            </if>
            <if test="outBy != null">
                #{outBy,jdbcType=VARCHAR},
            </if>
            <if test="confirmUser != null">
                #{confirmUser,jdbcType=VARCHAR},
            </if>
            <if test="machinecode != null">
                #{machinecode,jdbcType=VARCHAR},
            </if>
            <if test="deptId != null">
                #{deptId,jdbcType=VARCHAR},
            </if>
            <if test="deptName != null">
                #{deptName,jdbcType=VARCHAR},
            </if>
            <if test="settlementNo != null">
                #{settlementNo,jdbcType=VARCHAR},
            </if>
            <if test="settlementStatus != null">
                #{settlementStatus,jdbcType=VARCHAR},
            </if>
            <if test="settleSource != null">
                #{settleSource,jdbcType=VARCHAR},
            </if>
            <if test="paymentStatus != null">
                #{paymentStatus,jdbcType=VARCHAR},
            </if>
            <if test="paymentDate != null">
                #{paymentDate,jdbcType=VARCHAR},
            </if>
            <if test="voucherNumber != null">
                #{voucherNumber,jdbcType=VARCHAR},
            </if>
            <if test="paymentSum != null">
                #{paymentSum,jdbcType=VARCHAR},
            </if>
            <if test="qsName != null">
                #{qsName,jdbcType=VARCHAR},
            </if>
            <if test="yqsqMsg != null">
                #{yqsqMsg,jdbcType=VARCHAR},
            </if>
            <if test="yqsqStatus != null">
                #{yqsqStatus,jdbcType=VARCHAR},
            </if>
            <if test="glzt != null">
                #{glzt,jdbcType=VARCHAR},
            </if>
            <if test="xxly != null">
                #{xxly,jdbcType=VARCHAR},
            </if>
            <if test="dkTaxAmount != null">
                #{dkTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="yqkgxbz != null">
                #{yqkgxbz,jdbcType=VARCHAR},
            </if>
            <if test="yclx != null">
                #{yclx,jdbcType=VARCHAR},
            </if>
            <if test="yqshzt != null">
                #{yqshzt,jdbcType=VARCHAR},
            </if>
            <if test="userAccount != null">
                #{userAccount,jdbcType=VARCHAR},
            </if>
            <if test="newGfTaxno != null">
                #{newGfTaxno,jdbcType=VARCHAR},
            </if>
            <if test="yqCurrentPeriod != null">
                #{yqCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="company != null">
                #{company,jdbcType=VARCHAR},
            </if>
            <if test="cxrzStatus != null">
                #{cxrzStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxrzDate != null">
                #{cxrzDate,jdbcType=TIMESTAMP},
            </if>
            <if test="bdkStatus != null">
                #{bdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="bdkDate != null">
                #{bdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="cxrzCurrentPeriod != null">
                #{cxrzCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="bdkCurrentPeriod != null">
                #{bdkCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkStatus != null">
                #{cxbdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkDate != null">
                #{cxbdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqsqDate != null">
                #{yqsqDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqshDate != null">
                #{yqshDate,jdbcType=TIMESTAMP},
            </if>
            <if test="vendorId != null">
                #{vendorId,jdbcType=VARCHAR},
            </if>
            <if test="requestId != null">
                #{requestId,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchStatus != null">
                #{scanMatchStatus,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchDate != null">
                #{scanMatchDate,jdbcType=TIMESTAMP},
            </if>
            <if test="orderNo != null">
                #{orderNo,jdbcType=VARCHAR},
            </if>
            <if test="isAuth != null">
                #{isAuth,jdbcType=VARCHAR},
            </if>
        </trim>
    </insert>
    <insert databaseId="oracle" id="insert" parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        insert into t_dx_record_invoice (id, invoice_type, invoice_code,
                                         invoice_no, invoice_date, gf_tax_no,
                                         gf_name, gf_address_and_phone, gf_bank_and_no,
                                         xf_tax_no, xf_name, xf_address_and_phone,
                                         xf_bank_and_no, invoice_amount, tax_amount,
                                         total_amount, remark, invoice_status,
                                         status_update_date, last_update_date, rzh_date,
                                         qs_date, rzh_belong_date_late, rzh_belong_date,
                                         confirm_date, rzh_type, rzh_yesorno,
                                         gx_user_account, gx_user_name, source_system,
                                         valid, uuid, create_date,
                                         gx_date, rzh_back_msg, dqskssq,
                                         gxjzr, gxfwq, gxfwz,
                                         sfygx, detail_yesorno, gx_type,
                                         auth_status, send_date, rzlx,
                                         sfdbts, qs_type, qs_status,
                                         check_code, txfbz, lslbz,
                                         out_status, out_invoice_amout, out_tax_amount,
                                         out_reason, out_remark, out_date,
                                         out_by, confirm_user, machinecode,
                                         dept_id, dept_name, settlement_no,
                                         settlement_status, settle_source, payment_status,
                                         payment_date, voucher_number, payment_sum,
                                         qs_name, yqsq_msg, yqsq_status,
                                         glzt, xxly, dk_tax_amount,
                                         yqkgxbz, yclx, yqshzt,
                                         user_account, new_gf_taxno, yq_current_period,
                                         company, cxrz_status, cxrz_date,
                                         bdk_status, bdk_date, cxrz_current_period,
                                         bdk_current_period, cxbdk_status, cxbdk_date,
                                         yqsq_date, yqsh_date, vendor_id,
                                         request_id, scan_match_status, scan_match_date,
                                         order_no, is_auth)
        values (#{id,jdbcType=BIGINT}, #{invoiceType,jdbcType=VARCHAR}, #{invoiceCode,jdbcType=VARCHAR},
                #{invoiceNo,jdbcType=VARCHAR}, #{invoiceDate,jdbcType=TIMESTAMP}, #{gfTaxNo,jdbcType=VARCHAR},
                #{gfName,jdbcType=VARCHAR}, #{gfAddressAndPhone,jdbcType=VARCHAR}, #{gfBankAndNo,jdbcType=VARCHAR},
                #{xfTaxNo,jdbcType=VARCHAR}, #{xfName,jdbcType=VARCHAR}, #{xfAddressAndPhone,jdbcType=VARCHAR},
                #{xfBankAndNo,jdbcType=VARCHAR}, #{invoiceAmount,jdbcType=DECIMAL}, #{taxAmount,jdbcType=DECIMAL},
                #{totalAmount,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{invoiceStatus,jdbcType=VARCHAR},
                #{statusUpdateDate,jdbcType=TIMESTAMP}, #{lastUpdateDate,jdbcType=TIMESTAMP},
                #{rzhDate,jdbcType=TIMESTAMP},
                #{qsDate,jdbcType=TIMESTAMP}, #{rzhBelongDateLate,jdbcType=VARCHAR}, #{rzhBelongDate,jdbcType=VARCHAR},
                #{confirmDate,jdbcType=TIMESTAMP}, #{rzhType,jdbcType=VARCHAR}, #{rzhYesorno,jdbcType=VARCHAR},
                #{gxUserAccount,jdbcType=VARCHAR}, #{gxUserName,jdbcType=VARCHAR}, #{sourceSystem,jdbcType=VARCHAR},
                #{valid,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP},
                #{gxDate,jdbcType=TIMESTAMP}, #{rzhBackMsg,jdbcType=VARCHAR}, #{dqskssq,jdbcType=VARCHAR},
                #{gxjzr,jdbcType=VARCHAR}, #{gxfwq,jdbcType=VARCHAR}, #{gxfwz,jdbcType=VARCHAR},
                #{sfygx,jdbcType=VARCHAR}, #{detailYesorno,jdbcType=VARCHAR}, #{gxType,jdbcType=VARCHAR},
                #{authStatus,jdbcType=VARCHAR}, #{sendDate,jdbcType=TIMESTAMP}, #{rzlx,jdbcType=VARCHAR},
                #{sfdbts,jdbcType=VARCHAR}, #{qsType,jdbcType=VARCHAR}, #{qsStatus,jdbcType=VARCHAR},
                #{checkCode,jdbcType=VARCHAR}, #{txfbz,jdbcType=VARCHAR}, #{lslbz,jdbcType=VARCHAR},
                #{outStatus,jdbcType=VARCHAR}, #{outInvoiceAmout,jdbcType=DECIMAL}, #{outTaxAmount,jdbcType=DECIMAL},
                #{outReason,jdbcType=VARCHAR}, #{outRemark,jdbcType=VARCHAR}, #{outDate,jdbcType=TIMESTAMP},
                #{outBy,jdbcType=VARCHAR}, #{confirmUser,jdbcType=VARCHAR}, #{machinecode,jdbcType=VARCHAR},
                #{deptId,jdbcType=VARCHAR}, #{deptName,jdbcType=VARCHAR}, #{settlementNo,jdbcType=VARCHAR},
                #{settlementStatus,jdbcType=VARCHAR}, #{settleSource,jdbcType=VARCHAR},
                #{paymentStatus,jdbcType=VARCHAR},
                #{paymentDate,jdbcType=VARCHAR}, #{voucherNumber,jdbcType=VARCHAR}, #{paymentSum,jdbcType=VARCHAR},
                #{qsName,jdbcType=VARCHAR}, #{yqsqMsg,jdbcType=VARCHAR}, #{yqsqStatus,jdbcType=VARCHAR},
                #{glzt,jdbcType=VARCHAR}, #{xxly,jdbcType=VARCHAR}, #{dkTaxAmount,jdbcType=DECIMAL},
                #{yqkgxbz,jdbcType=VARCHAR}, #{yclx,jdbcType=VARCHAR}, #{yqshzt,jdbcType=VARCHAR},
                #{userAccount,jdbcType=VARCHAR}, #{newGfTaxno,jdbcType=VARCHAR}, #{yqCurrentPeriod,jdbcType=VARCHAR},
                #{company,jdbcType=VARCHAR}, #{cxrzStatus,jdbcType=VARCHAR}, #{cxrzDate,jdbcType=TIMESTAMP},
                #{bdkStatus,jdbcType=VARCHAR}, #{bdkDate,jdbcType=TIMESTAMP}, #{cxrzCurrentPeriod,jdbcType=VARCHAR},
                #{bdkCurrentPeriod,jdbcType=VARCHAR}, #{cxbdkStatus,jdbcType=VARCHAR}, #{cxbdkDate,jdbcType=TIMESTAMP},
                #{yqsqDate,jdbcType=TIMESTAMP}, #{yqshDate,jdbcType=TIMESTAMP}, #{vendorId,jdbcType=VARCHAR},
                #{requestId,jdbcType=VARCHAR}, #{scanMatchStatus,jdbcType=VARCHAR}, #{scanMatchDate,jdbcType=TIMESTAMP},
                #{orderNo,jdbcType=VARCHAR}, #{isAuth,jdbcType=VARCHAR})
    </insert>

    <insert databaseId="oracle" id="insertSelective"
            parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        insert into t_dx_record_invoice
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">
                id,
            </if>
            <if test="invoiceType != null">
                invoice_type,
            </if>
            <if test="invoiceCode != null">
                invoice_code,
            </if>
            <if test="invoiceNo != null">
                invoice_no,
            </if>
            <if test="invoiceDate != null">
                invoice_date,
            </if>
            <if test="gfTaxNo != null">
                gf_tax_no,
            </if>
            <if test="gfName != null">
                gf_name,
            </if>
            <if test="gfAddressAndPhone != null">
                gf_address_and_phone,
            </if>
            <if test="gfBankAndNo != null">
                gf_bank_and_no,
            </if>
            <if test="xfTaxNo != null">
                xf_tax_no,
            </if>
            <if test="xfName != null">
                xf_name,
            </if>
            <if test="xfAddressAndPhone != null">
                xf_address_and_phone,
            </if>
            <if test="xfBankAndNo != null">
                xf_bank_and_no,
            </if>
            <if test="invoiceAmount != null">
                invoice_amount,
            </if>
            <if test="taxAmount != null">
                tax_amount,
            </if>
            <if test="totalAmount != null">
                total_amount,
            </if>
            <if test="remark != null">
                remark,
            </if>
            <if test="invoiceStatus != null">
                invoice_status,
            </if>
            <if test="statusUpdateDate != null">
                status_update_date,
            </if>
            <if test="lastUpdateDate != null">
                last_update_date,
            </if>
            <if test="rzhDate != null">
                rzh_date,
            </if>
            <if test="qsDate != null">
                qs_date,
            </if>
            <if test="rzhBelongDateLate != null">
                rzh_belong_date_late,
            </if>
            <if test="rzhBelongDate != null">
                rzh_belong_date,
            </if>
            <if test="confirmDate != null">
                confirm_date,
            </if>
            <if test="rzhType != null">
                rzh_type,
            </if>
            <if test="rzhYesorno != null">
                rzh_yesorno,
            </if>
            <if test="gxUserAccount != null">
                gx_user_account,
            </if>
            <if test="gxUserName != null">
                gx_user_name,
            </if>
            <if test="sourceSystem != null">
                source_system,
            </if>
            <if test="valid != null">
                valid,
            </if>
            <if test="uuid != null">
                uuid,
            </if>
            <if test="createDate != null">
                create_date,
            </if>
            <if test="gxDate != null">
                gx_date,
            </if>
            <if test="rzhBackMsg != null">
                rzh_back_msg,
            </if>
            <if test="dqskssq != null">
                dqskssq,
            </if>
            <if test="gxjzr != null">
                gxjzr,
            </if>
            <if test="gxfwq != null">
                gxfwq,
            </if>
            <if test="gxfwz != null">
                gxfwz,
            </if>
            <if test="sfygx != null">
                sfygx,
            </if>
            <if test="detailYesorno != null">
                detail_yesorno,
            </if>
            <if test="gxType != null">
                gx_type,
            </if>
            <if test="authStatus != null">
                auth_status,
            </if>
            <if test="sendDate != null">
                send_date,
            </if>
            <if test="rzlx != null">
                rzlx,
            </if>
            <if test="sfdbts != null">
                sfdbts,
            </if>
            <if test="qsType != null">
                qs_type,
            </if>
            <if test="qsStatus != null">
                qs_status,
            </if>
            <if test="checkCode != null">
                check_code,
            </if>
            <if test="txfbz != null">
                txfbz,
            </if>
            <if test="lslbz != null">
                lslbz,
            </if>
            <if test="outStatus != null">
                out_status,
            </if>
            <if test="outInvoiceAmout != null">
                out_invoice_amout,
            </if>
            <if test="outTaxAmount != null">
                out_tax_amount,
            </if>
            <if test="outReason != null">
                out_reason,
            </if>
            <if test="outRemark != null">
                out_remark,
            </if>
            <if test="outDate != null">
                out_date,
            </if>
            <if test="outBy != null">
                out_by,
            </if>
            <if test="confirmUser != null">
                confirm_"USER",
            </if>
            <if test="machinecode != null">
                machinecode,
            </if>
            <if test="deptId != null">
                dept_id,
            </if>
            <if test="deptName != null">
                dept_name,
            </if>
            <if test="settlementNo != null">
                settlement_no,
            </if>
            <if test="settlementStatus != null">
                settlement_status,
            </if>
            <if test="settleSource != null">
                settle_source,
            </if>
            <if test="paymentStatus != null">
                payment_status,
            </if>
            <if test="paymentDate != null">
                payment_date,
            </if>
            <if test="voucherNumber != null">
                voucher_"NUMBER",
            </if>
            <if test="paymentSum != null">
                payment_sum,
            </if>
            <if test="qsName != null">
                qs_name,
            </if>
            <if test="yqsqMsg != null">
                yqsq_msg,
            </if>
            <if test="yqsqStatus != null">
                yqsq_status,
            </if>
            <if test="glzt != null">
                glzt,
            </if>
            <if test="xxly != null">
                xxly,
            </if>
            <if test="dkTaxAmount != null">
                dk_tax_amount,
            </if>
            <if test="yqkgxbz != null">
                yqkgxbz,
            </if>
            <if test="yclx != null">
                yclx,
            </if>
            <if test="yqshzt != null">
                yqshzt,
            </if>
            <if test="userAccount != null">
                user_account,
            </if>
            <if test="newGfTaxno != null">
                new_gf_taxno,
            </if>
            <if test="yqCurrentPeriod != null">
                yq_current_period,
            </if>
            <if test="company != null">
                company,
            </if>
            <if test="cxrzStatus != null">
                cxrz_status,
            </if>
            <if test="cxrzDate != null">
                cxrz_date,
            </if>
            <if test="bdkStatus != null">
                bdk_status,
            </if>
            <if test="bdkDate != null">
                bdk_date,
            </if>
            <if test="cxrzCurrentPeriod != null">
                cxrz_current_period,
            </if>
            <if test="bdkCurrentPeriod != null">
                bdk_current_period,
            </if>
            <if test="cxbdkStatus != null">
                cxbdk_status,
            </if>
            <if test="cxbdkDate != null">
                cxbdk_date,
            </if>
            <if test="yqsqDate != null">
                yqsq_date,
            </if>
            <if test="yqshDate != null">
                yqsh_date,
            </if>
            <if test="vendorId != null">
                vendor_id,
            </if>
            <if test="requestId != null">
                request_id,
            </if>
            <if test="scanMatchStatus != null">
                scan_match_status,
            </if>
            <if test="scanMatchDate != null">
                scan_match_date,
            </if>
            <if test="orderNo != null">
                order_no,
            </if>
            <if test="isAuth != null">
                is_auth,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">
                #{id,jdbcType=BIGINT},
            </if>
            <if test="invoiceType != null">
                #{invoiceType,jdbcType=VARCHAR},
            </if>
            <if test="invoiceCode != null">
                #{invoiceCode,jdbcType=VARCHAR},
            </if>
            <if test="invoiceNo != null">
                #{invoiceNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceDate != null">
                #{invoiceDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gfTaxNo != null">
                #{gfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="gfName != null">
                #{gfName,jdbcType=VARCHAR},
            </if>
            <if test="gfAddressAndPhone != null">
                #{gfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="gfBankAndNo != null">
                #{gfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="xfTaxNo != null">
                #{xfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="xfName != null">
                #{xfName,jdbcType=VARCHAR},
            </if>
            <if test="xfAddressAndPhone != null">
                #{xfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="xfBankAndNo != null">
                #{xfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceAmount != null">
                #{invoiceAmount,jdbcType=DECIMAL},
            </if>
            <if test="taxAmount != null">
                #{taxAmount,jdbcType=DECIMAL},
            </if>
            <if test="totalAmount != null">
                #{totalAmount,jdbcType=DECIMAL},
            </if>
            <if test="remark != null">
                #{remark,jdbcType=VARCHAR},
            </if>
            <if test="invoiceStatus != null">
                #{invoiceStatus,jdbcType=VARCHAR},
            </if>
            <if test="statusUpdateDate != null">
                #{statusUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="lastUpdateDate != null">
                #{lastUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhDate != null">
                #{rzhDate,jdbcType=TIMESTAMP},
            </if>
            <if test="qsDate != null">
                #{qsDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBelongDateLate != null">
                #{rzhBelongDateLate,jdbcType=VARCHAR},
            </if>
            <if test="rzhBelongDate != null">
                #{rzhBelongDate,jdbcType=VARCHAR},
            </if>
            <if test="confirmDate != null">
                #{confirmDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhType != null">
                #{rzhType,jdbcType=VARCHAR},
            </if>
            <if test="rzhYesorno != null">
                #{rzhYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxUserAccount != null">
                #{gxUserAccount,jdbcType=VARCHAR},
            </if>
            <if test="gxUserName != null">
                #{gxUserName,jdbcType=VARCHAR},
            </if>
            <if test="sourceSystem != null">
                #{sourceSystem,jdbcType=VARCHAR},
            </if>
            <if test="valid != null">
                #{valid,jdbcType=VARCHAR},
            </if>
            <if test="uuid != null">
                #{uuid,jdbcType=VARCHAR},
            </if>
            <if test="createDate != null">
                #{createDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gxDate != null">
                #{gxDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBackMsg != null">
                #{rzhBackMsg,jdbcType=VARCHAR},
            </if>
            <if test="dqskssq != null">
                #{dqskssq,jdbcType=VARCHAR},
            </if>
            <if test="gxjzr != null">
                #{gxjzr,jdbcType=VARCHAR},
            </if>
            <if test="gxfwq != null">
                #{gxfwq,jdbcType=VARCHAR},
            </if>
            <if test="gxfwz != null">
                #{gxfwz,jdbcType=VARCHAR},
            </if>
            <if test="sfygx != null">
                #{sfygx,jdbcType=VARCHAR},
            </if>
            <if test="detailYesorno != null">
                #{detailYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxType != null">
                #{gxType,jdbcType=VARCHAR},
            </if>
            <if test="authStatus != null">
                #{authStatus,jdbcType=VARCHAR},
            </if>
            <if test="sendDate != null">
                #{sendDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzlx != null">
                #{rzlx,jdbcType=VARCHAR},
            </if>
            <if test="sfdbts != null">
                #{sfdbts,jdbcType=VARCHAR},
            </if>
            <if test="qsType != null">
                #{qsType,jdbcType=VARCHAR},
            </if>
            <if test="qsStatus != null">
                #{qsStatus,jdbcType=VARCHAR},
            </if>
            <if test="checkCode != null">
                #{checkCode,jdbcType=VARCHAR},
            </if>
            <if test="txfbz != null">
                #{txfbz,jdbcType=VARCHAR},
            </if>
            <if test="lslbz != null">
                #{lslbz,jdbcType=VARCHAR},
            </if>
            <if test="outStatus != null">
                #{outStatus,jdbcType=VARCHAR},
            </if>
            <if test="outInvoiceAmout != null">
                #{outInvoiceAmout,jdbcType=DECIMAL},
            </if>
            <if test="outTaxAmount != null">
                #{outTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="outReason != null">
                #{outReason,jdbcType=VARCHAR},
            </if>
            <if test="outRemark != null">
                #{outRemark,jdbcType=VARCHAR},
            </if>
            <if test="outDate != null">
                #{outDate,jdbcType=TIMESTAMP},
            </if>
            <if test="outBy != null">
                #{outBy,jdbcType=VARCHAR},
            </if>
            <if test="confirmUser != null">
                #{confirmUser,jdbcType=VARCHAR},
            </if>
            <if test="machinecode != null">
                #{machinecode,jdbcType=VARCHAR},
            </if>
            <if test="deptId != null">
                #{deptId,jdbcType=VARCHAR},
            </if>
            <if test="deptName != null">
                #{deptName,jdbcType=VARCHAR},
            </if>
            <if test="settlementNo != null">
                #{settlementNo,jdbcType=VARCHAR},
            </if>
            <if test="settlementStatus != null">
                #{settlementStatus,jdbcType=VARCHAR},
            </if>
            <if test="settleSource != null">
                #{settleSource,jdbcType=VARCHAR},
            </if>
            <if test="paymentStatus != null">
                #{paymentStatus,jdbcType=VARCHAR},
            </if>
            <if test="paymentDate != null">
                #{paymentDate,jdbcType=VARCHAR},
            </if>
            <if test="voucherNumber != null">
                #{voucherNumber,jdbcType=VARCHAR},
            </if>
            <if test="paymentSum != null">
                #{paymentSum,jdbcType=VARCHAR},
            </if>
            <if test="qsName != null">
                #{qsName,jdbcType=VARCHAR},
            </if>
            <if test="yqsqMsg != null">
                #{yqsqMsg,jdbcType=VARCHAR},
            </if>
            <if test="yqsqStatus != null">
                #{yqsqStatus,jdbcType=VARCHAR},
            </if>
            <if test="glzt != null">
                #{glzt,jdbcType=VARCHAR},
            </if>
            <if test="xxly != null">
                #{xxly,jdbcType=VARCHAR},
            </if>
            <if test="dkTaxAmount != null">
                #{dkTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="yqkgxbz != null">
                #{yqkgxbz,jdbcType=VARCHAR},
            </if>
            <if test="yclx != null">
                #{yclx,jdbcType=VARCHAR},
            </if>
            <if test="yqshzt != null">
                #{yqshzt,jdbcType=VARCHAR},
            </if>
            <if test="userAccount != null">
                #{userAccount,jdbcType=VARCHAR},
            </if>
            <if test="newGfTaxno != null">
                #{newGfTaxno,jdbcType=VARCHAR},
            </if>
            <if test="yqCurrentPeriod != null">
                #{yqCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="company != null">
                #{company,jdbcType=VARCHAR},
            </if>
            <if test="cxrzStatus != null">
                #{cxrzStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxrzDate != null">
                #{cxrzDate,jdbcType=TIMESTAMP},
            </if>
            <if test="bdkStatus != null">
                #{bdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="bdkDate != null">
                #{bdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="cxrzCurrentPeriod != null">
                #{cxrzCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="bdkCurrentPeriod != null">
                #{bdkCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkStatus != null">
                #{cxbdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkDate != null">
                #{cxbdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqsqDate != null">
                #{yqsqDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqshDate != null">
                #{yqshDate,jdbcType=TIMESTAMP},
            </if>
            <if test="vendorId != null">
                #{vendorId,jdbcType=VARCHAR},
            </if>
            <if test="requestId != null">
                #{requestId,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchStatus != null">
                #{scanMatchStatus,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchDate != null">
                #{scanMatchDate,jdbcType=TIMESTAMP},
            </if>
            <if test="orderNo != null">
                #{orderNo,jdbcType=VARCHAR},
            </if>
            <if test="isAuth != null">
                #{isAuth,jdbcType=VARCHAR},
            </if>
        </trim>
    </insert>

    <resultMap id="BaseResultMap" type="com.dxhy.domestic.entity.TdxRecordInvoice">
        <id column="id" jdbcType="BIGINT" property="id"/>
        <result column="invoice_type" jdbcType="VARCHAR" property="invoiceType"/>
        <result column="invoice_code" jdbcType="VARCHAR" property="invoiceCode"/>
        <result column="invoice_no" jdbcType="VARCHAR" property="invoiceNo"/>
        <result column="invoice_date" jdbcType="TIMESTAMP" property="invoiceDate"/>
        <result column="gf_tax_no" jdbcType="VARCHAR" property="gfTaxNo"/>
        <result column="gf_name" jdbcType="VARCHAR" property="gfName"/>
        <result column="gf_address_and_phone" jdbcType="VARCHAR" property="gfAddressAndPhone"/>
        <result column="gf_bank_and_no" jdbcType="VARCHAR" property="gfBankAndNo"/>
        <result column="xf_tax_no" jdbcType="VARCHAR" property="xfTaxNo"/>
        <result column="xf_name" jdbcType="VARCHAR" property="xfName"/>
        <result column="xf_address_and_phone" jdbcType="VARCHAR" property="xfAddressAndPhone"/>
        <result column="xf_bank_and_no" jdbcType="VARCHAR" property="xfBankAndNo"/>
        <result column="invoice_amount" jdbcType="DECIMAL" property="invoiceAmount"/>
        <result column="tax_amount" jdbcType="DECIMAL" property="taxAmount"/>
        <result column="total_amount" jdbcType="DECIMAL" property="totalAmount"/>
        <result column="remark" jdbcType="VARCHAR" property="remark"/>
        <result column="invoice_status" jdbcType="VARCHAR" property="invoiceStatus"/>
        <result column="status_update_date" jdbcType="TIMESTAMP" property="statusUpdateDate"/>
        <result column="last_update_date" jdbcType="TIMESTAMP" property="lastUpdateDate"/>
        <result column="rzh_date" jdbcType="TIMESTAMP" property="rzhDate"/>
        <result column="qs_date" jdbcType="TIMESTAMP" property="qsDate"/>
        <result column="rzh_belong_date_late" jdbcType="VARCHAR" property="rzhBelongDateLate"/>
        <result column="rzh_belong_date" jdbcType="VARCHAR" property="rzhBelongDate"/>
        <result column="confirm_date" jdbcType="TIMESTAMP" property="confirmDate"/>
        <result column="rzh_type" jdbcType="VARCHAR" property="rzhType"/>
        <result column="rzh_yesorno" jdbcType="VARCHAR" property="rzhYesorno"/>
        <result column="gx_user_account" jdbcType="VARCHAR" property="gxUserAccount"/>
        <result column="gx_user_name" jdbcType="VARCHAR" property="gxUserName"/>
        <result column="source_system" jdbcType="VARCHAR" property="sourceSystem"/>
        <result column="valid" jdbcType="VARCHAR" property="valid"/>
        <result column="uuid" jdbcType="VARCHAR" property="uuid"/>
        <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
        <result column="gx_date" jdbcType="TIMESTAMP" property="gxDate"/>
        <result column="rzh_back_msg" jdbcType="VARCHAR" property="rzhBackMsg"/>
        <result column="dqskssq" jdbcType="VARCHAR" property="dqskssq"/>
        <result column="gxjzr" jdbcType="VARCHAR" property="gxjzr"/>
        <result column="gxfwq" jdbcType="VARCHAR" property="gxfwq"/>
        <result column="gxfwz" jdbcType="VARCHAR" property="gxfwz"/>
        <result column="sfygx" jdbcType="VARCHAR" property="sfygx"/>
        <result column="detail_yesorno" jdbcType="VARCHAR" property="detailYesorno"/>
        <result column="gx_type" jdbcType="VARCHAR" property="gxType"/>
        <result column="auth_status" jdbcType="VARCHAR" property="authStatus"/>
        <result column="send_date" jdbcType="TIMESTAMP" property="sendDate"/>
        <result column="rzlx" jdbcType="VARCHAR" property="rzlx"/>
        <result column="sfdbts" jdbcType="VARCHAR" property="sfdbts"/>
        <result column="qs_type" jdbcType="VARCHAR" property="qsType"/>
        <result column="qs_status" jdbcType="VARCHAR" property="qsStatus"/>
        <result column="check_code" jdbcType="VARCHAR" property="checkCode"/>
        <result column="txfbz" jdbcType="VARCHAR" property="txfbz"/>
        <result column="lslbz" jdbcType="VARCHAR" property="lslbz"/>
        <result column="out_status" jdbcType="VARCHAR" property="outStatus"/>
        <result column="out_invoice_amout" jdbcType="DECIMAL" property="outInvoiceAmout"/>
        <result column="out_tax_amount" jdbcType="DECIMAL" property="outTaxAmount"/>
        <result column="out_reason" jdbcType="VARCHAR" property="outReason"/>
        <result column="out_remark" jdbcType="VARCHAR" property="outRemark"/>
        <result column="out_date" jdbcType="TIMESTAMP" property="outDate"/>
        <result column="out_by" jdbcType="VARCHAR" property="outBy"/>
        <result column="confirm_user" jdbcType="VARCHAR" property="confirmUser"/>
        <result column="machinecode" jdbcType="VARCHAR" property="machinecode"/>
        <result column="dept_id" jdbcType="VARCHAR" property="deptId"/>
        <result column="dept_name" jdbcType="VARCHAR" property="deptName"/>
        <result column="settlement_no" jdbcType="VARCHAR" property="settlementNo"/>
        <result column="settlement_status" jdbcType="VARCHAR" property="settlementStatus"/>
        <result column="settle_source" jdbcType="VARCHAR" property="settleSource"/>
        <result column="payment_status" jdbcType="VARCHAR" property="paymentStatus"/>
        <result column="payment_date" jdbcType="VARCHAR" property="paymentDate"/>
        <result column="voucher_number" jdbcType="VARCHAR" property="voucherNumber"/>
        <result column="payment_sum" jdbcType="VARCHAR" property="paymentSum"/>
        <result column="qs_name" jdbcType="VARCHAR" property="qsName"/>
        <result column="yqsq_msg" jdbcType="VARCHAR" property="yqsqMsg"/>
        <result column="yqsq_status" jdbcType="VARCHAR" property="yqsqStatus"/>
        <result column="glzt" jdbcType="VARCHAR" property="glzt"/>
        <result column="xxly" jdbcType="VARCHAR" property="xxly"/>
        <result column="dk_tax_amount" jdbcType="DECIMAL" property="dkTaxAmount"/>
        <result column="yqkgxbz" jdbcType="VARCHAR" property="yqkgxbz"/>
        <result column="yclx" jdbcType="VARCHAR" property="yclx"/>
        <result column="yqshzt" jdbcType="VARCHAR" property="yqshzt"/>
        <result column="user_account" jdbcType="VARCHAR" property="userAccount"/>
        <result column="new_gf_taxno" jdbcType="VARCHAR" property="newGfTaxno"/>
        <result column="yq_current_period" jdbcType="VARCHAR" property="yqCurrentPeriod"/>
        <result column="company" jdbcType="VARCHAR" property="company"/>
        <result column="cxrz_status" jdbcType="VARCHAR" property="cxrzStatus"/>
        <result column="cxrz_date" jdbcType="TIMESTAMP" property="cxrzDate"/>
        <result column="bdk_status" jdbcType="VARCHAR" property="bdkStatus"/>
        <result column="bdk_date" jdbcType="TIMESTAMP" property="bdkDate"/>
        <result column="cxrz_current_period" jdbcType="VARCHAR" property="cxrzCurrentPeriod"/>
        <result column="bdk_current_period" jdbcType="VARCHAR" property="bdkCurrentPeriod"/>
        <result column="cxbdk_status" jdbcType="VARCHAR" property="cxbdkStatus"/>
        <result column="cxbdk_date" jdbcType="TIMESTAMP" property="cxbdkDate"/>
        <result column="yqsq_date" jdbcType="TIMESTAMP" property="yqsqDate"/>
        <result column="yqsh_date" jdbcType="TIMESTAMP" property="yqshDate"/>
        <result column="vendor_id" jdbcType="VARCHAR" property="vendorId"/>
        <result column="request_id" jdbcType="VARCHAR" property="requestId"/>
        <result column="scan_match_status" jdbcType="VARCHAR" property="scanMatchStatus"/>
        <result column="scan_match_date" jdbcType="TIMESTAMP" property="scanMatchDate"/>
        <result column="order_no" jdbcType="VARCHAR" property="orderNo"/>
        <result column="is_auth" jdbcType="VARCHAR" property="isAuth"/>
    </resultMap>

    <resultMap id="authenticationListMap"
               type="com.dxhy.domestic.model.vo.ManualAuthenticationListVO">
        <result column="id" jdbcType="BIGINT" property="id"/>
        <result column="invoice_code" jdbcType="VARCHAR" property="invoiceCode"/>
        <result column="invoice_no" jdbcType="VARCHAR" property="invoiceNo"/>
        <result column="invoice_type" jdbcType="VARCHAR" property="invoiceType"/>
        <result column="invoice_status" jdbcType="VARCHAR" property="invoiceStatus"/>
        <result column="invoice_date" jdbcType="TIMESTAMP" property="invoiceDate"/>
        <result column="gf_name" jdbcType="VARCHAR" property="buyerName"/>
        <result column="xf_name" jdbcType="VARCHAR" property="sellerName"/>
        <result column="invoice_amount" jdbcType="VARCHAR" property="invoiceAmount"/>
        <result column="tax_amount" jdbcType="VARCHAR" property="taxAmount"/>
        <result column="qs_status" jdbcType="VARCHAR" property="signInStatus"/>
        <result column="qs_date" jdbcType="TIMESTAMP" property="signInDate"/>
        <result column="qs_type" jdbcType="VARCHAR" property="signInType"/>
        <result column="qs_name" jdbcType="VARCHAR" property="signInPeople"/>
        <result column="business_name" jdbcType="VARCHAR" property="businessName"/>
    </resultMap>
    <resultMap id="authenticationCheckListMap"
               type="com.dxhy.domestic.model.vo.AuthenticationCheckListVO">
        <result column="id" jdbcType="BIGINT" property="id"/>
        <result column="invoice_code" jdbcType="VARCHAR" property="invoiceCode"/>
        <result column="invoice_no" jdbcType="VARCHAR" property="invoiceNo"/>
        <result column="invoice_type" jdbcType="VARCHAR" property="invoiceType"/>
        <result column="invoice_status" jdbcType="VARCHAR" property="invoiceStatus"/>
        <result column="invoice_date" jdbcType="TIMESTAMP" property="invoiceDate"/>
        <result column="gf_tax_no" jdbcType="VARCHAR" property="buyerTax"/>
        <result column="gf_name" jdbcType="VARCHAR" property="buyerName"/>
        <result column="xf_tax_no" jdbcType="VARCHAR" property="sellerTax"/>
        <result column="xf_name" jdbcType="VARCHAR" property="sellerName"/>
        <result column="invoice_amount" jdbcType="VARCHAR" property="invoiceAmount"/>
        <result column="tax_amount" jdbcType="VARCHAR" property="taxAmount"/>
        <result column="qs_status" jdbcType="VARCHAR" property="signInStatus"/>
        <result column="qs_date" jdbcType="TIMESTAMP" property="signInDate"/>
        <result column="qs_type" jdbcType="VARCHAR" property="signInType"/>
        <result column="qs_name" jdbcType="VARCHAR" property="signInPeople"/>
        <result column="rzh_date" jdbcType="TIMESTAMP" property="authenticationDate"/>
        <result column="rzh_yesorno" jdbcType="VARCHAR" property="authenticationStatus"/>
        <result column="auth_status" jdbcType="VARCHAR" property="authenticationDetailStatus"/>
        <result column="rzlx" jdbcType="VARCHAR" property="authenticationType"/>
        <result column="gx_user_name" jdbcType="VARCHAR" property="authenticationPerson"/>
        <result column="rzh_belong_date" jdbcType="VARCHAR" property="taxPeriod"/>
        <result column="business_name" jdbcType="VARCHAR" property="businessName"/>
    </resultMap>

    <select databaseId="mysql" id="selectByPrimaryKey" parameterType="java.lang.Long"
            resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from t_dx_record_invoice
        where id = #{id,jdbcType=BIGINT}
    </select>

    <select databaseId="mysql" id="selectTotalAmount"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationConditionDTO"
            resultType="com.dxhy.domestic.model.dto.QuerySummaryDTO">
        select
        ifnull(sum(t.invoice_amount),0) totalAmount, ifnull(sum(t.tax_amount),0) totalTaxAmount
        from t_dx_record_invoice t
        WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime}
        and t.rzh_yesorno = '0'
        and t.auth_status in('0','5','6')
        and t.export_mark = '0'
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99'">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like concat(#{sellerName},'%')
        </if>
        <if test='invoiceType == "99"'>
            and t.invoice_type in ('01','08','31')
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and date_format(t.qs_date,'%Y-%m-%d') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
    </select>


    <select databaseId="mysql" id="selectTotalAmountByAuthenticationCheck"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationCheckConditionDTO"
            resultType="com.dxhy.domestic.model.dto.QuerySummaryDTO">
        select
        ifnull(sum(t.invoice_amount),0) totalAmount, IFNULL(sum(t.tax_amount),0) totalTaxAmount
        from t_dx_record_invoice t
        WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime}
        and (t.rzlx = '2' or t.rzlx = '3')
        and t.export_mark = '0'
        and t.company = #{company}
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="authenticationStatus != '99'">
            and t.rzh_yesorno = #{authenticationStatus}
        </if>
        <if test="authenticationDetailStatus != '99'">
            and t.auth_status = #{authenticationDetailStatus}
        </if>
        <if
                test="authenticationPeople != null and authenticationPeople != '' and authenticationPeople != 'null'">
            and t.gx_user_name like concat(#{authenticationPeople},'%')
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99'">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="currentPeriod != null and currentPeriod != '' and currentPeriod != 'null'">
            and t.rzh_belong_date = #{currentPeriod}
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like concat(#{sellerName},'%')
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and date_format(t.qs_date,'%Y-%m-%d') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
    </select>

    <select databaseId="mysql" id="selectByAuthenticationCondition"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationConditionDTO"
            resultMap="authenticationListMap">
        select
        <include refid="Authentication_Column_List"/>
        from t_dx_record_invoice t
        left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code
        WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime}
        and t.rzh_yesorno = '0'
        and t.auth_status in('0','5','6')
        and t.export_mark = '0'
        and t.company = #{company}
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99'">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like concat(#{sellerName},'%')
        </if>
        <if test='invoiceType == "99"'>
            and t.invoice_type in ('01','08','31')
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and date_format(t.qs_date,'%Y-%m-%d') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        order by t.qs_date desc,t.invoice_date desc
    </select>

    <select databaseId="mysql" id="selectByAuthenticationCheckCondition"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationCheckConditionDTO"
            resultMap="authenticationCheckListMap">
        select
        <include refid="Authentication_Check_Column_List"/>
        from t_dx_record_invoice t
        left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code
        WHERE date_format(t.invoice_date,'%Y-%m-%d') between #{invoiceStartTime} and #{invoiceEndTime}
        and (t.rzlx = '2' or t.rzlx = '3')
        and t.export_mark = '0'
        and t.company = #{company}
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="authenticationStatus != '99'">
            and t.rzh_yesorno = #{authenticationStatus}
        </if>
        <if test="authenticationDetailStatus != '99'">
            and t.auth_status = #{authenticationDetailStatus}
        </if>
        <if
                test="authenticationPeople != null and authenticationPeople != '' and authenticationPeople != 'null'">
            and t.gx_user_name like concat(#{authenticationPeople},'%')
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99' ">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="currentPeriod != null and currentPeriod != '' and currentPeriod != 'null'">
            and t.rzh_belong_date = #{currentPeriod}
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like concat(#{sellerName},'%')
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and date_format(t.qs_date,'%Y-%m-%d') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test='authenticationStatus == "1"'>
            and date_format(t.rzh_date,'%Y-%m-%d') between #{authenticationStartTime} and
            #{authenticationEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        order by t.qs_date desc,t.invoice_date desc
    </select>


    <select databaseId="mysql" id="selectByUuidList" parameterType="java.util.ArrayList"
            resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from t_dx_record_invoice t
        WHERE t.uuid in
        <foreach close=")" collection="uuidList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
    </select>
    <select databaseId="oracle" id="selectByPrimaryKey" parameterType="java.lang.Long"
            resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from t_dx_record_invoice
        where id = #{id,jdbcType=BIGINT}
    </select>
    <select databaseId="oracle" id="selectTotalAmount"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationConditionDTO"
            resultType="com.dxhy.domestic.model.dto.QuerySummaryDTO">
        select
        NVL(sum(t.invoice_amount),0) totalAmount, NVL(sum(t.tax_amount),0) totalTaxAmount
        from t_dx_record_invoice t
        WHERE TO_CHAR(t.invoice_date,'yyyy-MM-dd') between #{invoiceStartTime} and #{invoiceEndTime}
        and t.rzh_yesorno = '0'
        and t.auth_status in('0','5','6')
        and t.export_mark = '0'
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99'">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like (#{sellerName} || '%')
        </if>
        <if test='invoiceType == "99"'>
            and t.invoice_type in ('01','08','31')
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and TO_CHAR(t.qs_date,'yyyy-MM-dd') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name #{signInPerson}
        </if>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
    </select>
    <select databaseId="oracle" id="selectTotalAmountByAuthenticationCheck"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationCheckConditionDTO"
            resultType="com.dxhy.domestic.model.dto.QuerySummaryDTO">
        select
        NVL(sum(t.invoice_amount),0) totalAmount, NVL(sum(t.tax_amount),0) totalTaxAmount
        from t_dx_record_invoice t
        WHERE TO_CHAR(t.invoice_date,'yyyy-MM-dd') between #{invoiceStartTime} and #{invoiceEndTime}
        and (t.rzlx = '2' or t.rzlx = '3')
        and t.export_mark = '0'
        and t.company = #{company}
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="authenticationStatus != '99'">
            and t.rzh_yesorno = #{authenticationStatus}
        </if>
        <if test="authenticationDetailStatus != '99'">
            and t.auth_status = #{authenticationDetailStatus}
        </if>
        <if
                test="authenticationPeople != null and authenticationPeople != '' and authenticationPeople != 'null'">
            and t.gx_user_name like (#{authenticationPeople} || '%')
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99'">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="currentPeriod != null and currentPeriod != '' and currentPeriod != 'null'">
            and t.rzh_belong_date = #{currentPeriod}
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like (#{sellerName} || '%')
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and TO_CHAR(t.qs_date,'yyyy-MM-dd') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
    </select>
    <select databaseId="oracle" id="selectByAuthenticationCondition"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationConditionDTO"
            resultMap="authenticationListMap">
        select
        <include refid="Authentication_Column_List_Oracle"/>
        from t_dx_record_invoice t
        left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code
        WHERE TO_CHAR(t.invoice_date,'yyyy-MM-dd') between #{invoiceStartTime} and #{invoiceEndTime}
        and t.rzh_yesorno = '0'
        and t.auth_status in('0','5','6')
        and t.export_mark = '0'
        and t.company = #{company}
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99'">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like (#{sellerName} || '%')
        </if>
        <if test='invoiceType == "99"'>
            and t.invoice_type in ('01','08','31')
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and TO_CHAR(t.qs_date,'yyyy-MM-dd') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        order by t.qs_date desc,t.invoice_date desc
    </select>

    <!-- ====================================== ↓↓↓↓↓↓ oracle ↓↓↓↓↓↓  ====================================== -->

    <select databaseId="oracle" id="selectByAuthenticationCheckCondition"
            parameterType="com.dxhy.domestic.model.dto.AuthenticationCheckConditionDTO"
            resultMap="authenticationCheckListMap">
        select
        <include refid="Authentication_Check_Column_List_Oracle"/>
        from t_dx_record_invoice t
        left join ${dxhyAdmin}.sys_business b on t.dept_id = b.business_code
        WHERE TO_CHAR(t.invoice_date,'yyyy-MM-dd') between #{invoiceStartTime} and #{invoiceEndTime}
        and (t.rzlx = '2' or t.rzlx = '3')
        and t.export_mark = '0'
        and t.company = #{company}
        and t.gf_tax_no in
        <foreach close=")" collection="taxNoList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
        <if test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
            and t.invoice_no = #{invoiceNo}
        </if>
        <if test="invoiceStatus != '99'">
            and t.invoice_status = #{invoiceStatus}
        </if>
        <if test="invoiceType != '99'">
            and t.invoice_type = #{invoiceType}
        </if>
        <if test="invoiceSource != null and invoiceSource != '' and invoiceSource != 'null' and invoiceSource != '99' ">
            and t.invoice_source = #{invoiceSource}
        </if>
        <if test="authenticationStatus != '99'">
            and t.rzh_yesorno = #{authenticationStatus}
        </if>
        <if test="authenticationDetailStatus != '99'">
            and t.auth_status = #{authenticationDetailStatus}
        </if>
        <if
                test="authenticationPeople != null and authenticationPeople != '' and authenticationPeople != 'null'">
            and t.gx_user_name like (#{authenticationPeople} || '%')
        </if>
        <if test="deptId != null and deptId != '' and deptId != 'null' and deptId != '99' ">
            and t.dept_id = #{deptId}
        </if>
        <if test="deptId == ''">
            and t.dept_id is null
        </if>
        <if test="currentPeriod != null and currentPeriod != '' and currentPeriod != 'null'">
            and t.rzh_belong_date = #{currentPeriod}
        </if>
        <if test="sellerName != null and sellerName != '' and sellerName != 'null' ">
            and t.xf_name like (#{sellerName} || '%')
        </if>
        <if test="signInStatus != '99'">
            and t.qs_status = #{signInStatus}
        </if>
        <if test='signInStatus == "1"'>
            and TO_CHAR(t.qs_date,'yyyy-MM-dd') between #{signInStartTime} and #{signInEndTime}
        </if>
        <if test='authenticationStatus == "1"'>
            and TO_CHAR(t.rzh_date,'yyyy-MM-dd') between #{authenticationStartTime} and
            #{authenticationEndTime}
        </if>
        <if test="signInType != '99'">
            and t.qs_type = #{signInType}
        </if>
        <if test="signInPerson != '' and signInPerson != null and signInPerson != 'null'">
            and t.qs_name =#{signInPerson}
        </if>
        order by t.qs_date desc,t.invoice_date desc
    </select>

    <select databaseId="oracle" id="selectByUuidList" parameterType="java.util.ArrayList"
            resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from t_dx_record_invoice t
        WHERE t.uuid in
        <foreach close=")" collection="uuidList" index="index" item="item" open="(" separator=",">
            #{item}
        </foreach>
    </select>

    <sql id="Base_Column_List">
        id, invoice_type, invoice_code, invoice_no, invoice_date, gf_tax_no, gf_name, gf_address_and_phone,
    gf_bank_and_no, xf_tax_no, xf_name, xf_address_and_phone, xf_bank_and_no, invoice_amount,
    tax_amount, total_amount, remark, invoice_status, status_update_date, last_update_date,
    rzh_date, qs_date, rzh_belong_date_late, rzh_belong_date, confirm_date, rzh_type,
    rzh_yesorno, gx_user_account, gx_user_name, source_system, valid, uuid, create_date,
    gx_date, rzh_back_msg, dqskssq, gxjzr, gxfwq, gxfwz, sfygx, detail_yesorno, gx_type,
    auth_status, send_date, rzlx, sfdbts, qs_type, qs_status, check_code, txfbz, lslbz,
    out_status, out_invoice_amout, out_tax_amount, out_reason, out_remark, out_date,
    out_by, confirm_user, machinecode, dept_id, dept_name, settlement_no, settlement_status,
    settle_source, payment_status, payment_date, voucher_number, payment_sum, qs_name,
    yqsq_msg, yqsq_status, glzt, xxly, dk_tax_amount, yqkgxbz, yclx, yqshzt, user_account,
    new_gf_taxno, yq_current_period, company, cxrz_status, cxrz_date, bdk_status, bdk_date,
    cxrz_current_period, bdk_current_period, cxbdk_status, cxbdk_date, yqsq_date, yqsh_date,
    vendor_id, request_id, scan_match_status, scan_match_date, order_no,
    is_auth
    </sql>


    <sql id="Authentication_Column_List">
        t.id,invoice_code,invoice_no,invoice_type,invoice_status,date_format(invoice_date,'%Y-%m-%d') invoice_date ,gf_name,xf_name,invoice_amount,tax_amount,qs_status,date_format(qs_date,'%Y-%m-%d') qs_date,qs_type,qs_name,business_name
    </sql>

    <sql id="Authentication_Column_List_Oracle">
        t.id,invoice_code,invoice_no,invoice_type,invoice_status,to_char(invoice_date,'yyyy-MM-dd') invoice_date ,gf_name,xf_name,invoice_amount,tax_amount,qs_status,to_char(qs_date,'yyyy-MM-dd') qs_date,qs_type,qs_name,business_name
    </sql>

    <sql id="Authentication_Check_Column_List">
        t.id,invoice_code,invoice_no,invoice_type,invoice_status,DATE_FORMAT(invoice_date,'%Y-%m-%d') invoice_date,gf_tax_no,gf_name,xf_tax_no,xf_name,invoice_amount,tax_amount,qs_status,date_format(qs_date,'%Y-%m-%d') qs_date,qs_type,qs_name,date_format(rzh_date,'%Y-%m-%d') rzh_date,rzh_yesorno,auth_status,rzlx,gx_user_name,rzh_belong_date,business_name
    </sql>


    <sql id="Authentication_Check_Column_List_Oracle">
        t.id,invoice_code,invoice_no,invoice_type,invoice_status,to_char(invoice_date,'yyyy-MM-dd') invoice_date,gf_tax_no,gf_name,xf_tax_no,xf_name,invoice_amount,tax_amount,qs_status,to_char(qs_date,'yyyy-MM-dd') qs_date,qs_type,qs_name,to_char(rzh_date,'yyyy-MM-dd') rzh_date,rzh_yesorno,auth_status,rzlx,gx_user_name,rzh_belong_date,business_name
    </sql>
    <update databaseId="mysql" id="updateByPrimaryKeySelective"
            parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        update t_dx_record_invoice
        <set>
            <if test="invoiceType != null">
                invoice_type = #{invoiceType,jdbcType=VARCHAR},
            </if>
            <if test="invoiceCode != null">
                invoice_code = #{invoiceCode,jdbcType=VARCHAR},
            </if>
            <if test="invoiceNo != null">
                invoice_no = #{invoiceNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceDate != null">
                invoice_date = #{invoiceDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gfTaxNo != null">
                gf_tax_no = #{gfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="gfName != null">
                gf_name = #{gfName,jdbcType=VARCHAR},
            </if>
            <if test="gfAddressAndPhone != null">
                gf_address_and_phone = #{gfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="gfBankAndNo != null">
                gf_bank_and_no = #{gfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="xfTaxNo != null">
                xf_tax_no = #{xfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="xfName != null">
                xf_name = #{xfName,jdbcType=VARCHAR},
            </if>
            <if test="xfAddressAndPhone != null">
                xf_address_and_phone = #{xfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="xfBankAndNo != null">
                xf_bank_and_no = #{xfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceAmount != null">
                invoice_amount = #{invoiceAmount,jdbcType=DECIMAL},
            </if>
            <if test="taxAmount != null">
                tax_amount = #{taxAmount,jdbcType=DECIMAL},
            </if>
            <if test="totalAmount != null">
                total_amount = #{totalAmount,jdbcType=DECIMAL},
            </if>
            <if test="remark != null">
                remark = #{remark,jdbcType=VARCHAR},
            </if>
            <if test="invoiceStatus != null">
                invoice_status = #{invoiceStatus,jdbcType=VARCHAR},
            </if>
            <if test="statusUpdateDate != null">
                status_update_date = #{statusUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="lastUpdateDate != null">
                last_update_date = #{lastUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhDate != null">
                rzh_date = #{rzhDate,jdbcType=TIMESTAMP},
            </if>
            <if test="qsDate != null">
                qs_date = #{qsDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBelongDateLate != null">
                rzh_belong_date_late = #{rzhBelongDateLate,jdbcType=VARCHAR},
            </if>
            <if test="rzhBelongDate != null">
                rzh_belong_date = #{rzhBelongDate,jdbcType=VARCHAR},
            </if>
            <if test="confirmDate != null">
                confirm_date = #{confirmDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhType != null">
                rzh_type = #{rzhType,jdbcType=VARCHAR},
            </if>
            <if test="rzhYesorno != null">
                rzh_yesorno = #{rzhYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxUserAccount != null">
                gx_user_account = #{gxUserAccount,jdbcType=VARCHAR},
            </if>
            <if test="gxUserName != null">
                gx_user_name = #{gxUserName,jdbcType=VARCHAR},
            </if>
            <if test="sourceSystem != null">
                source_system = #{sourceSystem,jdbcType=VARCHAR},
            </if>
            <if test="valid != null">
                valid = #{valid,jdbcType=VARCHAR},
            </if>
            <if test="uuid != null">
                uuid = #{uuid,jdbcType=VARCHAR},
            </if>
            <if test="createDate != null">
                create_date = #{createDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gxDate != null">
                gx_date = #{gxDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBackMsg != null">
                rzh_back_msg = #{rzhBackMsg,jdbcType=VARCHAR},
            </if>
            <if test="dqskssq != null">
                dqskssq = #{dqskssq,jdbcType=VARCHAR},
            </if>
            <if test="gxjzr != null">
                gxjzr = #{gxjzr,jdbcType=VARCHAR},
            </if>
            <if test="gxfwq != null">
                gxfwq = #{gxfwq,jdbcType=VARCHAR},
            </if>
            <if test="gxfwz != null">
                gxfwz = #{gxfwz,jdbcType=VARCHAR},
            </if>
            <if test="sfygx != null">
                sfygx = #{sfygx,jdbcType=VARCHAR},
            </if>
            <if test="detailYesorno != null">
                detail_yesorno = #{detailYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxType != null">
                gx_type = #{gxType,jdbcType=VARCHAR},
            </if>
            <if test="authStatus != null">
                auth_status = #{authStatus,jdbcType=VARCHAR},
            </if>
            <if test="sendDate != null">
                send_date = #{sendDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzlx != null">
                rzlx = #{rzlx,jdbcType=VARCHAR},
            </if>
            <if test="sfdbts != null">
                sfdbts = #{sfdbts,jdbcType=VARCHAR},
            </if>
            <if test="qsType != null">
                qs_type = #{qsType,jdbcType=VARCHAR},
            </if>
            <if test="qsStatus != null">
                qs_status = #{qsStatus,jdbcType=VARCHAR},
            </if>
            <if test="checkCode != null">
                check_code = #{checkCode,jdbcType=VARCHAR},
            </if>
            <if test="txfbz != null">
                txfbz = #{txfbz,jdbcType=VARCHAR},
            </if>
            <if test="lslbz != null">
                lslbz = #{lslbz,jdbcType=VARCHAR},
            </if>
            <if test="outStatus != null">
                out_status = #{outStatus,jdbcType=VARCHAR},
            </if>
            <if test="outInvoiceAmout != null">
                out_invoice_amout = #{outInvoiceAmout,jdbcType=DECIMAL},
            </if>
            <if test="outTaxAmount != null">
                out_tax_amount = #{outTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="outReason != null">
                out_reason = #{outReason,jdbcType=VARCHAR},
            </if>
            <if test="outRemark != null">
                out_remark = #{outRemark,jdbcType=VARCHAR},
            </if>
            <if test="outDate != null">
                out_date = #{outDate,jdbcType=TIMESTAMP},
            </if>
            <if test="outBy != null">
                out_by = #{outBy,jdbcType=VARCHAR},
            </if>
            <if test="confirmUser != null">
                confirm_user = #{confirmUser,jdbcType=VARCHAR},
            </if>
            <if test="machinecode != null">
                machinecode = #{machinecode,jdbcType=VARCHAR},
            </if>
            <if test="deptId != null">
                dept_id = #{deptId,jdbcType=VARCHAR},
            </if>
            <if test="deptName != null">
                dept_name = #{deptName,jdbcType=VARCHAR},
            </if>
            <if test="settlementNo != null">
                settlement_no = #{settlementNo,jdbcType=VARCHAR},
            </if>
            <if test="settlementStatus != null">
                settlement_status = #{settlementStatus,jdbcType=VARCHAR},
            </if>
            <if test="settleSource != null">
                settle_source = #{settleSource,jdbcType=VARCHAR},
            </if>
            <if test="paymentStatus != null">
                payment_status = #{paymentStatus,jdbcType=VARCHAR},
            </if>
            <if test="paymentDate != null">
                payment_date = #{paymentDate,jdbcType=VARCHAR},
            </if>
            <if test="voucherNumber != null">
                voucher_number = #{voucherNumber,jdbcType=VARCHAR},
            </if>
            <if test="paymentSum != null">
                payment_sum = #{paymentSum,jdbcType=VARCHAR},
            </if>
            <if test="qsName != null">
                qs_name = #{qsName,jdbcType=VARCHAR},
            </if>
            <if test="yqsqMsg != null">
                yqsq_msg = #{yqsqMsg,jdbcType=VARCHAR},
            </if>
            <if test="yqsqStatus != null">
                yqsq_status = #{yqsqStatus,jdbcType=VARCHAR},
            </if>
            <if test="glzt != null">
                glzt = #{glzt,jdbcType=VARCHAR},
            </if>
            <if test="xxly != null">
                xxly = #{xxly,jdbcType=VARCHAR},
            </if>
            <if test="dkTaxAmount != null">
                dk_tax_amount = #{dkTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="yqkgxbz != null">
                yqkgxbz = #{yqkgxbz,jdbcType=VARCHAR},
            </if>
            <if test="yclx != null">
                yclx = #{yclx,jdbcType=VARCHAR},
            </if>
            <if test="yqshzt != null">
                yqshzt = #{yqshzt,jdbcType=VARCHAR},
            </if>
            <if test="userAccount != null">
                user_account = #{userAccount,jdbcType=VARCHAR},
            </if>
            <if test="newGfTaxno != null">
                new_gf_taxno = #{newGfTaxno,jdbcType=VARCHAR},
            </if>
            <if test="yqCurrentPeriod != null">
                yq_current_period = #{yqCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="company != null">
                company = #{company,jdbcType=VARCHAR},
            </if>
            <if test="cxrzStatus != null">
                cxrz_status = #{cxrzStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxrzDate != null">
                cxrz_date = #{cxrzDate,jdbcType=TIMESTAMP},
            </if>
            <if test="bdkStatus != null">
                bdk_status = #{bdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="bdkDate != null">
                bdk_date = #{bdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="cxrzCurrentPeriod != null">
                cxrz_current_period = #{cxrzCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="bdkCurrentPeriod != null">
                bdk_current_period = #{bdkCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkStatus != null">
                cxbdk_status = #{cxbdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkDate != null">
                cxbdk_date = #{cxbdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqsqDate != null">
                yqsq_date = #{yqsqDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqshDate != null">
                yqsh_date = #{yqshDate,jdbcType=TIMESTAMP},
            </if>
            <if test="vendorId != null">
                vendor_id = #{vendorId,jdbcType=VARCHAR},
            </if>
            <if test="requestId != null">
                request_id = #{requestId,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchStatus != null">
                scan_match_status = #{scanMatchStatus,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchDate != null">
                scan_match_date = #{scanMatchDate,jdbcType=TIMESTAMP},
            </if>
            <if test="orderNo != null">
                order_no = #{orderNo,jdbcType=VARCHAR},
            </if>
            <if test="isAuth != null">
                is_auth = #{isAuth,jdbcType=VARCHAR},
            </if>
        </set>
        where id = #{id,jdbcType=BIGINT}
    </update>
    <update databaseId="mysql" id="updateByPrimaryKey"
            parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        update t_dx_record_invoice
        set invoice_type         = #{invoiceType,jdbcType=VARCHAR},
            invoice_code         = #{invoiceCode,jdbcType=VARCHAR},
            invoice_no           = #{invoiceNo,jdbcType=VARCHAR},
            invoice_date         = #{invoiceDate,jdbcType=TIMESTAMP},
            gf_tax_no            = #{gfTaxNo,jdbcType=VARCHAR},
            gf_name              = #{gfName,jdbcType=VARCHAR},
            gf_address_and_phone = #{gfAddressAndPhone,jdbcType=VARCHAR},
            gf_bank_and_no       = #{gfBankAndNo,jdbcType=VARCHAR},
            xf_tax_no            = #{xfTaxNo,jdbcType=VARCHAR},
            xf_name              = #{xfName,jdbcType=VARCHAR},
            xf_address_and_phone = #{xfAddressAndPhone,jdbcType=VARCHAR},
            xf_bank_and_no       = #{xfBankAndNo,jdbcType=VARCHAR},
            invoice_amount       = #{invoiceAmount,jdbcType=DECIMAL},
            tax_amount           = #{taxAmount,jdbcType=DECIMAL},
            total_amount         = #{totalAmount,jdbcType=DECIMAL},
            remark               = #{remark,jdbcType=VARCHAR},
            invoice_status       = #{invoiceStatus,jdbcType=VARCHAR},
            status_update_date   = #{statusUpdateDate,jdbcType=TIMESTAMP},
            last_update_date     = #{lastUpdateDate,jdbcType=TIMESTAMP},
            rzh_date             = #{rzhDate,jdbcType=TIMESTAMP},
            qs_date              = #{qsDate,jdbcType=TIMESTAMP},
            rzh_belong_date_late = #{rzhBelongDateLate,jdbcType=VARCHAR},
            rzh_belong_date      = #{rzhBelongDate,jdbcType=VARCHAR},
            confirm_date         = #{confirmDate,jdbcType=TIMESTAMP},
            rzh_type             = #{rzhType,jdbcType=VARCHAR},
            rzh_yesorno          = #{rzhYesorno,jdbcType=VARCHAR},
            gx_user_account      = #{gxUserAccount,jdbcType=VARCHAR},
            gx_user_name         = #{gxUserName,jdbcType=VARCHAR},
            source_system        = #{sourceSystem,jdbcType=VARCHAR},
            valid                = #{valid,jdbcType=VARCHAR},
            uuid                 = #{uuid,jdbcType=VARCHAR},
            create_date          = #{createDate,jdbcType=TIMESTAMP},
            gx_date              = #{gxDate,jdbcType=TIMESTAMP},
            rzh_back_msg         = #{rzhBackMsg,jdbcType=VARCHAR},
            dqskssq              = #{dqskssq,jdbcType=VARCHAR},
            gxjzr                = #{gxjzr,jdbcType=VARCHAR},
            gxfwq                = #{gxfwq,jdbcType=VARCHAR},
            gxfwz                = #{gxfwz,jdbcType=VARCHAR},
            sfygx                = #{sfygx,jdbcType=VARCHAR},
            detail_yesorno       = #{detailYesorno,jdbcType=VARCHAR},
            gx_type              = #{gxType,jdbcType=VARCHAR},
            auth_status          = #{authStatus,jdbcType=VARCHAR},
            send_date            = #{sendDate,jdbcType=TIMESTAMP},
            rzlx                 = #{rzlx,jdbcType=VARCHAR},
            sfdbts               = #{sfdbts,jdbcType=VARCHAR},
            qs_type              = #{qsType,jdbcType=VARCHAR},
            qs_status            = #{qsStatus,jdbcType=VARCHAR},
            check_code           = #{checkCode,jdbcType=VARCHAR},
            txfbz                = #{txfbz,jdbcType=VARCHAR},
            lslbz                = #{lslbz,jdbcType=VARCHAR},
            out_status           = #{outStatus,jdbcType=VARCHAR},
            out_invoice_amout    = #{outInvoiceAmout,jdbcType=DECIMAL},
            out_tax_amount       = #{outTaxAmount,jdbcType=DECIMAL},
            out_reason           = #{outReason,jdbcType=VARCHAR},
            out_remark           = #{outRemark,jdbcType=VARCHAR},
            out_date             = #{outDate,jdbcType=TIMESTAMP},
            out_by               = #{outBy,jdbcType=VARCHAR},
            confirm_user         = #{confirmUser,jdbcType=VARCHAR},
            machinecode          = #{machinecode,jdbcType=VARCHAR},
            dept_id              = #{deptId,jdbcType=VARCHAR},
            dept_name            = #{deptName,jdbcType=VARCHAR},
            settlement_no        = #{settlementNo,jdbcType=VARCHAR},
            settlement_status    = #{settlementStatus,jdbcType=VARCHAR},
            settle_source        = #{settleSource,jdbcType=VARCHAR},
            payment_status       = #{paymentStatus,jdbcType=VARCHAR},
            payment_date         = #{paymentDate,jdbcType=VARCHAR},
            voucher_number       = #{voucherNumber,jdbcType=VARCHAR},
            payment_sum          = #{paymentSum,jdbcType=VARCHAR},
            qs_name              = #{qsName,jdbcType=VARCHAR},
            yqsq_msg             = #{yqsqMsg,jdbcType=VARCHAR},
            yqsq_status          = #{yqsqStatus,jdbcType=VARCHAR},
            glzt                 = #{glzt,jdbcType=VARCHAR},
            xxly                 = #{xxly,jdbcType=VARCHAR},
            dk_tax_amount        = #{dkTaxAmount,jdbcType=DECIMAL},
            yqkgxbz              = #{yqkgxbz,jdbcType=VARCHAR},
            yclx                 = #{yclx,jdbcType=VARCHAR},
            yqshzt               = #{yqshzt,jdbcType=VARCHAR},
            user_account         = #{userAccount,jdbcType=VARCHAR},
            new_gf_taxno         = #{newGfTaxno,jdbcType=VARCHAR},
            yq_current_period    = #{yqCurrentPeriod,jdbcType=VARCHAR},
            company              = #{company,jdbcType=VARCHAR},
            cxrz_status          = #{cxrzStatus,jdbcType=VARCHAR},
            cxrz_date            = #{cxrzDate,jdbcType=TIMESTAMP},
            bdk_status           = #{bdkStatus,jdbcType=VARCHAR},
            bdk_date             = #{bdkDate,jdbcType=TIMESTAMP},
            cxrz_current_period  = #{cxrzCurrentPeriod,jdbcType=VARCHAR},
            bdk_current_period   = #{bdkCurrentPeriod,jdbcType=VARCHAR},
            cxbdk_status         = #{cxbdkStatus,jdbcType=VARCHAR},
            cxbdk_date           = #{cxbdkDate,jdbcType=TIMESTAMP},
            yqsq_date            = #{yqsqDate,jdbcType=TIMESTAMP},
            yqsh_date            = #{yqshDate,jdbcType=TIMESTAMP},
            vendor_id            = #{vendorId,jdbcType=VARCHAR},
            request_id           = #{requestId,jdbcType=VARCHAR},
            scan_match_status    = #{scanMatchStatus,jdbcType=VARCHAR},
            scan_match_date      = #{scanMatchDate,jdbcType=TIMESTAMP},
            order_no             = #{orderNo,jdbcType=VARCHAR},
            is_auth              = #{isAuth,jdbcType=VARCHAR}
        where id = #{id,jdbcType=BIGINT}
    </update>
    <update databaseId="oracle" id="updateByPrimaryKeySelective"
            parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        update t_dx_record_invoice
        <set>
            <if test="invoiceType != null">
                invoice_type = #{invoiceType,jdbcType=VARCHAR},
            </if>
            <if test="invoiceCode != null">
                invoice_code = #{invoiceCode,jdbcType=VARCHAR},
            </if>
            <if test="invoiceNo != null">
                invoice_no = #{invoiceNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceDate != null">
                invoice_date = #{invoiceDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gfTaxNo != null">
                gf_tax_no = #{gfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="gfName != null">
                gf_name = #{gfName,jdbcType=VARCHAR},
            </if>
            <if test="gfAddressAndPhone != null">
                gf_address_and_phone = #{gfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="gfBankAndNo != null">
                gf_bank_and_no = #{gfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="xfTaxNo != null">
                xf_tax_no = #{xfTaxNo,jdbcType=VARCHAR},
            </if>
            <if test="xfName != null">
                xf_name = #{xfName,jdbcType=VARCHAR},
            </if>
            <if test="xfAddressAndPhone != null">
                xf_address_and_phone = #{xfAddressAndPhone,jdbcType=VARCHAR},
            </if>
            <if test="xfBankAndNo != null">
                xf_bank_and_no = #{xfBankAndNo,jdbcType=VARCHAR},
            </if>
            <if test="invoiceAmount != null">
                invoice_amount = #{invoiceAmount,jdbcType=DECIMAL},
            </if>
            <if test="taxAmount != null">
                tax_amount = #{taxAmount,jdbcType=DECIMAL},
            </if>
            <if test="totalAmount != null">
                total_amount = #{totalAmount,jdbcType=DECIMAL},
            </if>
            <if test="remark != null">
                remark = #{remark,jdbcType=VARCHAR},
            </if>
            <if test="invoiceStatus != null">
                invoice_status = #{invoiceStatus,jdbcType=VARCHAR},
            </if>
            <if test="statusUpdateDate != null">
                status_update_date = #{statusUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="lastUpdateDate != null">
                last_update_date = #{lastUpdateDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhDate != null">
                rzh_date = #{rzhDate,jdbcType=TIMESTAMP},
            </if>
            <if test="qsDate != null">
                qs_date = #{qsDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBelongDateLate != null">
                rzh_belong_date_late = #{rzhBelongDateLate,jdbcType=VARCHAR},
            </if>
            <if test="rzhBelongDate != null">
                rzh_belong_date = #{rzhBelongDate,jdbcType=VARCHAR},
            </if>
            <if test="confirmDate != null">
                confirm_date = #{confirmDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhType != null">
                rzh_type = #{rzhType,jdbcType=VARCHAR},
            </if>
            <if test="rzhYesorno != null">
                rzh_yesorno = #{rzhYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxUserAccount != null">
                gx_user_account = #{gxUserAccount,jdbcType=VARCHAR},
            </if>
            <if test="gxUserName != null">
                gx_user_name = #{gxUserName,jdbcType=VARCHAR},
            </if>
            <if test="sourceSystem != null">
                source_system = #{sourceSystem,jdbcType=VARCHAR},
            </if>
            <if test="valid != null">
                valid = #{valid,jdbcType=VARCHAR},
            </if>
            <if test="uuid != null">
                uuid = #{uuid,jdbcType=VARCHAR},
            </if>
            <if test="createDate != null">
                create_date = #{createDate,jdbcType=TIMESTAMP},
            </if>
            <if test="gxDate != null">
                gx_date = #{gxDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzhBackMsg != null">
                rzh_back_msg = #{rzhBackMsg,jdbcType=VARCHAR},
            </if>
            <if test="dqskssq != null">
                dqskssq = #{dqskssq,jdbcType=VARCHAR},
            </if>
            <if test="gxjzr != null">
                gxjzr = #{gxjzr,jdbcType=VARCHAR},
            </if>
            <if test="gxfwq != null">
                gxfwq = #{gxfwq,jdbcType=VARCHAR},
            </if>
            <if test="gxfwz != null">
                gxfwz = #{gxfwz,jdbcType=VARCHAR},
            </if>
            <if test="sfygx != null">
                sfygx = #{sfygx,jdbcType=VARCHAR},
            </if>
            <if test="detailYesorno != null">
                detail_yesorno = #{detailYesorno,jdbcType=VARCHAR},
            </if>
            <if test="gxType != null">
                gx_type = #{gxType,jdbcType=VARCHAR},
            </if>
            <if test="authStatus != null">
                auth_status = #{authStatus,jdbcType=VARCHAR},
            </if>
            <if test="sendDate != null">
                send_date = #{sendDate,jdbcType=TIMESTAMP},
            </if>
            <if test="rzlx != null">
                rzlx = #{rzlx,jdbcType=VARCHAR},
            </if>
            <if test="sfdbts != null">
                sfdbts = #{sfdbts,jdbcType=VARCHAR},
            </if>
            <if test="qsType != null">
                qs_type = #{qsType,jdbcType=VARCHAR},
            </if>
            <if test="qsStatus != null">
                qs_status = #{qsStatus,jdbcType=VARCHAR},
            </if>
            <if test="checkCode != null">
                check_code = #{checkCode,jdbcType=VARCHAR},
            </if>
            <if test="txfbz != null">
                txfbz = #{txfbz,jdbcType=VARCHAR},
            </if>
            <if test="lslbz != null">
                lslbz = #{lslbz,jdbcType=VARCHAR},
            </if>
            <if test="outStatus != null">
                out_status = #{outStatus,jdbcType=VARCHAR},
            </if>
            <if test="outInvoiceAmout != null">
                out_invoice_amout = #{outInvoiceAmout,jdbcType=DECIMAL},
            </if>
            <if test="outTaxAmount != null">
                out_tax_amount = #{outTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="outReason != null">
                out_reason = #{outReason,jdbcType=VARCHAR},
            </if>
            <if test="outRemark != null">
                out_remark = #{outRemark,jdbcType=VARCHAR},
            </if>
            <if test="outDate != null">
                out_date = #{outDate,jdbcType=TIMESTAMP},
            </if>
            <if test="outBy != null">
                out_by = #{outBy,jdbcType=VARCHAR},
            </if>
            <if test="confirmUser != null">
                confirm_user = #{confirmUser,jdbcType=VARCHAR},
            </if>
            <if test="machinecode != null">
                machinecode = #{machinecode,jdbcType=VARCHAR},
            </if>
            <if test="deptId != null">
                dept_id = #{deptId,jdbcType=VARCHAR},
            </if>
            <if test="deptName != null">
                dept_name = #{deptName,jdbcType=VARCHAR},
            </if>
            <if test="settlementNo != null">
                settlement_no = #{settlementNo,jdbcType=VARCHAR},
            </if>
            <if test="settlementStatus != null">
                settlement_status = #{settlementStatus,jdbcType=VARCHAR},
            </if>
            <if test="settleSource != null">
                settle_source = #{settleSource,jdbcType=VARCHAR},
            </if>
            <if test="paymentStatus != null">
                payment_status = #{paymentStatus,jdbcType=VARCHAR},
            </if>
            <if test="paymentDate != null">
                payment_date = #{paymentDate,jdbcType=VARCHAR},
            </if>
            <if test="voucherNumber != null">
                voucher_number = #{voucherNumber,jdbcType=VARCHAR},
            </if>
            <if test="paymentSum != null">
                payment_sum = #{paymentSum,jdbcType=VARCHAR},
            </if>
            <if test="qsName != null">
                qs_name = #{qsName,jdbcType=VARCHAR},
            </if>
            <if test="yqsqMsg != null">
                yqsq_msg = #{yqsqMsg,jdbcType=VARCHAR},
            </if>
            <if test="yqsqStatus != null">
                yqsq_status = #{yqsqStatus,jdbcType=VARCHAR},
            </if>
            <if test="glzt != null">
                glzt = #{glzt,jdbcType=VARCHAR},
            </if>
            <if test="xxly != null">
                xxly = #{xxly,jdbcType=VARCHAR},
            </if>
            <if test="dkTaxAmount != null">
                dk_tax_amount = #{dkTaxAmount,jdbcType=DECIMAL},
            </if>
            <if test="yqkgxbz != null">
                yqkgxbz = #{yqkgxbz,jdbcType=VARCHAR},
            </if>
            <if test="yclx != null">
                yclx = #{yclx,jdbcType=VARCHAR},
            </if>
            <if test="yqshzt != null">
                yqshzt = #{yqshzt,jdbcType=VARCHAR},
            </if>
            <if test="userAccount != null">
                user_account = #{userAccount,jdbcType=VARCHAR},
            </if>
            <if test="newGfTaxno != null">
                new_gf_taxno = #{newGfTaxno,jdbcType=VARCHAR},
            </if>
            <if test="yqCurrentPeriod != null">
                yq_current_period = #{yqCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="company != null">
                company = #{company,jdbcType=VARCHAR},
            </if>
            <if test="cxrzStatus != null">
                cxrz_status = #{cxrzStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxrzDate != null">
                cxrz_date = #{cxrzDate,jdbcType=TIMESTAMP},
            </if>
            <if test="bdkStatus != null">
                bdk_status = #{bdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="bdkDate != null">
                bdk_date = #{bdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="cxrzCurrentPeriod != null">
                cxrz_current_period = #{cxrzCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="bdkCurrentPeriod != null">
                bdk_current_period = #{bdkCurrentPeriod,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkStatus != null">
                cxbdk_status = #{cxbdkStatus,jdbcType=VARCHAR},
            </if>
            <if test="cxbdkDate != null">
                cxbdk_date = #{cxbdkDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqsqDate != null">
                yqsq_date = #{yqsqDate,jdbcType=TIMESTAMP},
            </if>
            <if test="yqshDate != null">
                yqsh_date = #{yqshDate,jdbcType=TIMESTAMP},
            </if>
            <if test="vendorId != null">
                vendor_id = #{vendorId,jdbcType=VARCHAR},
            </if>
            <if test="requestId != null">
                request_id = #{requestId,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchStatus != null">
                scan_match_status = #{scanMatchStatus,jdbcType=VARCHAR},
            </if>
            <if test="scanMatchDate != null">
                scan_match_date = #{scanMatchDate,jdbcType=TIMESTAMP},
            </if>
            <if test="orderNo != null">
                order_no = #{orderNo,jdbcType=VARCHAR},
            </if>
            <if test="isAuth != null">
                is_auth = #{isAuth,jdbcType=VARCHAR},
            </if>
        </set>
        where id = #{id,jdbcType=BIGINT}
    </update>
    <update databaseId="oracle" id="updateByPrimaryKey"
            parameterType="com.dxhy.domestic.entity.TdxRecordInvoice">
        update t_dx_record_invoice
        set invoice_type         = #{invoiceType,jdbcType=VARCHAR},
            invoice_code         = #{invoiceCode,jdbcType=VARCHAR},
            invoice_no           = #{invoiceNo,jdbcType=VARCHAR},
            invoice_date         = #{invoiceDate,jdbcType=TIMESTAMP},
            gf_tax_no            = #{gfTaxNo,jdbcType=VARCHAR},
            gf_name              = #{gfName,jdbcType=VARCHAR},
            gf_address_and_phone = #{gfAddressAndPhone,jdbcType=VARCHAR},
            gf_bank_and_no       = #{gfBankAndNo,jdbcType=VARCHAR},
            xf_tax_no            = #{xfTaxNo,jdbcType=VARCHAR},
            xf_name              = #{xfName,jdbcType=VARCHAR},
            xf_address_and_phone = #{xfAddressAndPhone,jdbcType=VARCHAR},
            xf_bank_and_no       = #{xfBankAndNo,jdbcType=VARCHAR},
            invoice_amount       = #{invoiceAmount,jdbcType=DECIMAL},
            tax_amount           = #{taxAmount,jdbcType=DECIMAL},
            total_amount         = #{totalAmount,jdbcType=DECIMAL},
            remark               = #{remark,jdbcType=VARCHAR},
            invoice_status       = #{invoiceStatus,jdbcType=VARCHAR},
            status_update_date   = #{statusUpdateDate,jdbcType=TIMESTAMP},
            last_update_date     = #{lastUpdateDate,jdbcType=TIMESTAMP},
            rzh_date             = #{rzhDate,jdbcType=TIMESTAMP},
            qs_date              = #{qsDate,jdbcType=TIMESTAMP},
            rzh_belong_date_late = #{rzhBelongDateLate,jdbcType=VARCHAR},
            rzh_belong_date      = #{rzhBelongDate,jdbcType=VARCHAR},
            confirm_date         = #{confirmDate,jdbcType=TIMESTAMP},
            rzh_type             = #{rzhType,jdbcType=VARCHAR},
            rzh_yesorno          = #{rzhYesorno,jdbcType=VARCHAR},
            gx_user_account      = #{gxUserAccount,jdbcType=VARCHAR},
            gx_user_name         = #{gxUserName,jdbcType=VARCHAR},
            source_system        = #{sourceSystem,jdbcType=VARCHAR},
            valid                = #{valid,jdbcType=VARCHAR},
            uuid                 = #{uuid,jdbcType=VARCHAR},
            create_date          = #{createDate,jdbcType=TIMESTAMP},
            gx_date              = #{gxDate,jdbcType=TIMESTAMP},
            rzh_back_msg         = #{rzhBackMsg,jdbcType=VARCHAR},
            dqskssq              = #{dqskssq,jdbcType=VARCHAR},
            gxjzr                = #{gxjzr,jdbcType=VARCHAR},
            gxfwq                = #{gxfwq,jdbcType=VARCHAR},
            gxfwz                = #{gxfwz,jdbcType=VARCHAR},
            sfygx                = #{sfygx,jdbcType=VARCHAR},
            detail_yesorno       = #{detailYesorno,jdbcType=VARCHAR},
            gx_type              = #{gxType,jdbcType=VARCHAR},
            auth_status          = #{authStatus,jdbcType=VARCHAR},
            send_date            = #{sendDate,jdbcType=TIMESTAMP},
            rzlx                 = #{rzlx,jdbcType=VARCHAR},
            sfdbts               = #{sfdbts,jdbcType=VARCHAR},
            qs_type              = #{qsType,jdbcType=VARCHAR},
            qs_status            = #{qsStatus,jdbcType=VARCHAR},
            check_code           = #{checkCode,jdbcType=VARCHAR},
            txfbz                = #{txfbz,jdbcType=VARCHAR},
            lslbz                = #{lslbz,jdbcType=VARCHAR},
            out_status           = #{outStatus,jdbcType=VARCHAR},
            out_invoice_amout    = #{outInvoiceAmout,jdbcType=DECIMAL},
            out_tax_amount       = #{outTaxAmount,jdbcType=DECIMAL},
            out_reason           = #{outReason,jdbcType=VARCHAR},
            out_remark           = #{outRemark,jdbcType=VARCHAR},
            out_date             = #{outDate,jdbcType=TIMESTAMP},
            out_by               = #{outBy,jdbcType=VARCHAR},
            confirm_user         = #{confirmUser,jdbcType=VARCHAR},
            machinecode          = #{machinecode,jdbcType=VARCHAR},
            dept_id              = #{deptId,jdbcType=VARCHAR},
            dept_name            = #{deptName,jdbcType=VARCHAR},
            settlement_no        = #{settlementNo,jdbcType=VARCHAR},
            settlement_status    = #{settlementStatus,jdbcType=VARCHAR},
            settle_source        = #{settleSource,jdbcType=VARCHAR},
            payment_status       = #{paymentStatus,jdbcType=VARCHAR},
            payment_date         = #{paymentDate,jdbcType=VARCHAR},
            voucher."NUMBER"     = #{voucherNumber,jdbcType=VARCHAR},
            payment_sum          = #{paymentSum,jdbcType=VARCHAR},
            qs_name              = #{qsName,jdbcType=VARCHAR},
            yqsq_msg             = #{yqsqMsg,jdbcType=VARCHAR},
            yqsq_status          = #{yqsqStatus,jdbcType=VARCHAR},
            glzt                 = #{glzt,jdbcType=VARCHAR},
            xxly                 = #{xxly,jdbcType=VARCHAR},
            dk_tax_amount        = #{dkTaxAmount,jdbcType=DECIMAL},
            yqkgxbz              = #{yqkgxbz,jdbcType=VARCHAR},
            yclx                 = #{yclx,jdbcType=VARCHAR},
            yqshzt               = #{yqshzt,jdbcType=VARCHAR},
            user_account         = #{userAccount,jdbcType=VARCHAR},
            new_gf_taxno         = #{newGfTaxno,jdbcType=VARCHAR},
            yq_current_period    = #{yqCurrentPeriod,jdbcType=VARCHAR},
            company              = #{company,jdbcType=VARCHAR},
            cxrz_status          = #{cxrzStatus,jdbcType=VARCHAR},
            cxrz_date            = #{cxrzDate,jdbcType=TIMESTAMP},
            bdk_status           = #{bdkStatus,jdbcType=VARCHAR},
            bdk_date             = #{bdkDate,jdbcType=TIMESTAMP},
            cxrz_current_period  = #{cxrzCurrentPeriod,jdbcType=VARCHAR},
            bdk_current_period   = #{bdkCurrentPeriod,jdbcType=VARCHAR},
            cxbdk_status         = #{cxbdkStatus,jdbcType=VARCHAR},
            cxbdk_date           = #{cxbdkDate,jdbcType=TIMESTAMP},
            yqsq_date            = #{yqsqDate,jdbcType=TIMESTAMP},
            yqsh_date            = #{yqshDate,jdbcType=TIMESTAMP},
            vendor_id            = #{vendorId,jdbcType=VARCHAR},
            request_id           = #{requestId,jdbcType=VARCHAR},
            scan_match_status    = #{scanMatchStatus,jdbcType=VARCHAR},
            scan_match_date      = #{scanMatchDate,jdbcType=TIMESTAMP},
            order_no             = #{orderNo,jdbcType=VARCHAR},
            is_auth              = #{isAuth,jdbcType=VARCHAR}
        where id = #{id,jdbcType=BIGINT}
    </update>

</mapper>
