select customer_id, enterprise_code, export_sales, enterprise_name, english_name, customer_address, delivery_address, postal_code, customer_country, common_currency, customer_remarks, legal_representative, invoicing_customer_name, invoicing_company_name, credit_limit, integrity_rating, customer_contact, contact_number, customer_fax, customer_email, customer_abbreviation, customs_code, payment_terms, invoice_code, port_of_destination, established_time, settlement_bank, exchange_settlement_account, deposit_bank, bank_account, rmb_registered_capital, registered_capital, order_length, shipping_template, business_members, destination_port_code, departure_potential_name, departure_potential_code, unified_numbering, shipment_usage, voucher_preparation, identifying_people, confirm_tax, tax_rate, country_number, first_add_time, update_info_time from sys_customer
insert into sys_customer
enterprise_code,
export_sales,
enterprise_name,
english_name,
customer_address,
delivery_address,
postal_code,
customer_country,
common_currency,
customer_remarks,
legal_representative,
invoicing_customer_name,
invoicing_company_name,
credit_limit,
integrity_rating,
customer_contact,
contact_number,
customer_fax,
customer_email,
customer_abbreviation,
customs_code,
payment_terms,
invoice_code,
port_of_destination,
established_time,
settlement_bank,
exchange_settlement_account,
deposit_bank,
bank_account,
rmb_registered_capital,
registered_capital,
order_length,
shipping_template,
business_members,
destination_port_code,
departure_potential_name,
departure_potential_code,
unified_numbering,
shipment_usage,
voucher_preparation,
identifying_people,
confirm_tax,
tax_rate,
country_number,
first_add_time,
#{enterpriseCode},
#{exportSales},
#{enterpriseName},
#{englishName},
#{customerAddress},
#{deliveryAddress},
#{postalCode},
#{customerCountry},
#{commonCurrency},
#{customerRemarks},
#{legalRepresentative},
#{invoicingCustomerName},
#{invoicingCompanyName},
#{creditLimit},
#{integrityRating},
#{customerContact},
#{contactNumber},
#{customerFax},
#{customerEmail},
#{customerAbbreviation},
#{customsCode},
#{paymentTerms},
#{invoiceCode},
#{portOfDestination},
#{establishedTime},
#{settlementBank},
#{exchangeSettlementAccount},
#{depositBank},
#{bankAccount},
#{rmbRegisteredCapital},
#{registeredCapital},
#{orderLength},
#{shippingTemplate},
#{businessMembers},
#{destinationPortCode},
#{departurePotentialName},
#{departurePotentialCode},
#{unifiedNumbering},
#{shipmentUsage},
#{voucherPreparation},
#{identifyingPeople},
#{confirmTax},
#{taxRate},
#{countryNumber},
now(),
update sys_customer
enterprise_code = #{enterpriseCode},
export_sales = #{exportSales},
enterprise_name = #{enterpriseName},
english_name = #{englishName},
customer_address = #{customerAddress},
delivery_address = #{deliveryAddress},
postal_code = #{postalCode},
customer_country = #{customerCountry},
common_currency = #{commonCurrency},
customer_remarks = #{customerRemarks},
legal_representative = #{legalRepresentative},
invoicing_customer_name = #{invoicingCustomerName},
invoicing_company_name = #{invoicingCompanyName},
credit_limit = #{creditLimit},
integrity_rating = #{integrityRating},
customer_contact = #{customerContact},
contact_number = #{contactNumber},
customer_fax = #{customerFax},
customer_email = #{customerEmail},
customer_abbreviation = #{customerAbbreviation},
customs_code = #{customsCode},
payment_terms = #{paymentTerms},
invoice_code = #{invoiceCode},
port_of_destination = #{portOfDestination},
established_time = #{establishedTime},
settlement_bank = #{settlementBank},
exchange_settlement_account = #{exchangeSettlementAccount},
deposit_bank = #{depositBank},
bank_account = #{bankAccount},
rmb_registered_capital = #{rmbRegisteredCapital},
registered_capital = #{registeredCapital},
order_length = #{orderLength},
shipping_template = #{shippingTemplate},
business_members = #{businessMembers},
destination_port_code = #{destinationPortCode},
departure_potential_name = #{departurePotentialName},
departure_potential_code = #{departurePotentialCode},
unified_numbering = #{unifiedNumbering},
shipment_usage = #{shipmentUsage},
voucher_preparation = #{voucherPreparation},
identifying_people = #{identifyingPeople},
confirm_tax = #{confirmTax},
tax_rate = #{taxRate},
country_number = #{countryNumber},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where customer_id = #{customerId}
delete from sys_customer where customer_id = #{customerId}
delete from sys_customer where customer_id in
#{customerId}