select tax_invoice_id, tax_invoice_code, tax_invoice_number, delivery_note_number, enterprise_code, enterprise_name, contract_number, payment_term, billing_date, transport_way, transport_means, departure_date, export_customs, bill_common_currency, packages_number, arrival_area, port_of_destination, hoisting_number, print_version_number, bill_remarks, tax_invoice_no, getMoney_flag, first_add_time, update_info_time, standby_one, standby_two from tax_invoice_info insert into tax_invoice_info tax_invoice_code, tax_invoice_number, delivery_note_number, enterprise_code, enterprise_name, contract_number, payment_term, billing_date, transport_way, transport_means, departure_date, export_customs, bill_common_currency, packages_number, arrival_area, port_of_destination, hoisting_number, print_version_number, bill_remarks, tax_invoice_no, getMoney_flag, standby_one, standby_two, first_add_time, #{taxInvoiceCode}, #{taxInvoiceNumber}, #{deliveryNoteNumber}, #{enterpriseCode}, #{enterpriseName}, #{contractNumber}, #{paymentTerm}, #{billingDate}, #{transportWay}, #{transportMeans}, #{departureDate}, #{exportCustoms}, #{billCommonCurrency}, #{packagesNumber}, #{arrivalArea}, #{portOfDestination}, #{hoistingNumber}, #{printVersionNumber}, #{billRemarks}, #{taxInvoiceNo}, #{getmoneyFlag}, #{standbyOne}, #{standbyTwo}, now(), update tax_invoice_info tax_invoice_code = #{taxInvoiceCode}, tax_invoice_number = #{taxInvoiceNumber}, delivery_note_number = #{deliveryNoteNumber}, enterprise_code = #{enterpriseCode}, enterprise_name = #{enterpriseName}, contract_number = #{contractNumber}, payment_term = #{paymentTerm}, billing_date = #{billingDate}, transport_way = #{transportWay}, transport_means = #{transportMeans}, departure_date = #{departureDate}, export_customs = #{exportCustoms}, bill_common_currency = #{billCommonCurrency}, packages_number = #{packagesNumber}, arrival_area = #{arrivalArea}, port_of_destination = #{portOfDestination}, hoisting_number = #{hoistingNumber}, print_version_number = #{printVersionNumber}, bill_remarks = #{billRemarks}, tax_invoice_no = #{taxInvoiceNo}, getMoney_flag = #{getmoneyFlag}, standby_one = #{standbyOne}, standby_two = #{standbyTwo}, update_info_time = CONCAT_WS(',',NOW(),update_info_time), where tax_invoice_id = #{taxInvoiceId} delete from tax_invoice_info where tax_invoice_id = #{taxInvoiceId} delete from tax_invoice_info where tax_invoice_id in #{taxInvoiceId}