select company_id, enterprise_name, english_name, company_address, company_postal_code, country, legal_representative, contacts, contact_number, company_fax, enterprise_customs_code, enterprise_organization_code, Industry_code, enterprise_nature, established_time, settlement_bank, exchange_settlement_account, deposit_bank, bank_account, company_email, website, import_declarant, export_declarant, exchange_office, rmb_registered_capital, foreign_currency_registration, registered_capital, first_add_time, update_info_time from sys_company_information
insert into sys_company_information
enterprise_name,
english_name,
company_address,
company_postal_code,
country,
legal_representative,
contacts,
contact_number,
company_fax,
enterprise_customs_code,
enterprise_organization_code,
Industry_code,
enterprise_nature,
established_time,
settlement_bank,
exchange_settlement_account,
deposit_bank,
bank_account,
company_email,
website,
import_declarant,
export_declarant,
exchange_office,
rmb_registered_capital,
foreign_currency_registration,
registered_capital,
first_add_time,
#{enterpriseName},
#{englishName},
#{companyAddress},
#{companyPostalCode},
#{country},
#{legalRepresentative},
#{contacts},
#{contactNumber},
#{companyFax},
#{enterpriseCustomsCode},
#{enterpriseOrganizationCode},
#{industryCode},
#{enterpriseNature},
#{establishedTime},
#{settlementBank},
#{exchangeSettlementAccount},
#{depositBank},
#{bankAccount},
#{companyEmail},
#{website},
#{importDeclarant},
#{exportDeclarant},
#{exchangeOffice},
#{rmbRegisteredCapital},
#{foreignCurrencyRegistration},
#{registeredCapital},
now(),
update sys_company_information
enterprise_name = #{enterpriseName},
english_name = #{englishName},
company_address = #{companyAddress},
company_postal_code = #{companyPostalCode},
country = #{country},
legal_representative = #{legalRepresentative},
contacts = #{contacts},
contact_number = #{contactNumber},
company_fax = #{companyFax},
enterprise_customs_code = #{enterpriseCustomsCode},
enterprise_organization_code = #{enterpriseOrganizationCode},
Industry_code = #{industryCode},
enterprise_nature = #{enterpriseNature},
established_time = #{establishedTime},
settlement_bank = #{settlementBank},
exchange_settlement_account = #{exchangeSettlementAccount},
deposit_bank = #{depositBank},
bank_account = #{bankAccount},
company_email = #{companyEmail},
website = #{website},
import_declarant = #{importDeclarant},
export_declarant = #{exportDeclarant},
exchange_office = #{exchangeOffice},
rmb_registered_capital = #{rmbRegisteredCapital},
foreign_currency_registration = #{foreignCurrencyRegistration},
registered_capital = #{registeredCapital},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where company_id = #{companyId}
delete from sys_company_information where company_id = #{companyId}
delete from sys_company_information where company_id in
#{companyId}