select supplier_id, supplier_code, supplier_name, export_sales, enterprise_name, enterprise_nature, customer_address, manufacturer_category, postal_code, business_scope, customer_country, established_time, legal_representative, customer_contact, contact_number, customer_fax, customer_email, website, payment_terms, supplier_days, actual_payment_days, settlement_bank, exchange_settlement_account, deposit_bank, bank_account, rmb_registered_capital, Industry_code, merchandiser, merchandiser_telephone, financial_contact, confirm_tax, tax_rate, first_add_time, update_info_time from sys_supplier
insert into sys_supplier
supplier_code,
supplier_name,
export_sales,
enterprise_name,
enterprise_nature,
customer_address,
manufacturer_category,
postal_code,
business_scope,
customer_country,
established_time,
legal_representative,
customer_contact,
contact_number,
customer_fax,
customer_email,
website,
payment_terms,
supplier_days,
actual_payment_days,
settlement_bank,
exchange_settlement_account,
deposit_bank,
bank_account,
rmb_registered_capital,
Industry_code,
merchandiser,
merchandiser_telephone,
financial_contact,
confirm_tax,
tax_rate,
first_add_time,
#{supplierCode},
#{supplierName},
#{exportSales},
#{enterpriseName},
#{enterpriseNature},
#{customerAddress},
#{manufacturerCategory},
#{postalCode},
#{businessScope},
#{customerCountry},
#{establishedTime},
#{legalRepresentative},
#{customerContact},
#{contactNumber},
#{customerFax},
#{customerEmail},
#{website},
#{paymentTerms},
#{supplierDays},
#{actualPaymentDays},
#{settlementBank},
#{exchangeSettlementAccount},
#{depositBank},
#{bankAccount},
#{rmbRegisteredCapital},
#{industryCode},
#{merchandiser},
#{merchandiserTelephone},
#{financialContact},
#{confirmTax},
#{taxRate},
now(),
update sys_supplier
supplier_code = #{supplierCode},
supplier_name = #{supplierName},
export_sales = #{exportSales},
enterprise_name = #{enterpriseName},
enterprise_nature = #{enterpriseNature},
customer_address = #{customerAddress},
manufacturer_category = #{manufacturerCategory},
postal_code = #{postalCode},
business_scope = #{businessScope},
customer_country = #{customerCountry},
established_time = #{establishedTime},
legal_representative = #{legalRepresentative},
customer_contact = #{customerContact},
contact_number = #{contactNumber},
customer_fax = #{customerFax},
customer_email = #{customerEmail},
website = #{website},
payment_terms = #{paymentTerms},
supplier_days = #{supplierDays},
actual_payment_days = #{actualPaymentDays},
settlement_bank = #{settlementBank},
exchange_settlement_account = #{exchangeSettlementAccount},
deposit_bank = #{depositBank},
bank_account = #{bankAccount},
rmb_registered_capital = #{rmbRegisteredCapital},
Industry_code = #{industryCode},
merchandiser = #{merchandiser},
merchandiser_telephone = #{merchandiserTelephone},
financial_contact = #{financialContact},
confirm_tax = #{confirmTax},
tax_rate = #{taxRate},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where supplier_id = #{supplierId}
delete from sys_supplier where supplier_id = #{supplierId}
delete from sys_supplier where supplier_id in
#{supplierId}