select company_id, create_by, create_time, update_by, update_time, remark,
company_name, company_principal, company_address, company_phone,
company_four_color_map_url,post_safety_risk_bar_chart_url,
company_region, company_unified_social_credit_code, company_business_license,
company_registered_address_of_business_license, company_scale, company_number_of_employees,
company_established, company_area, company_registered_capital, company_total_assets,
company_actual_income_of_the_previous_year, company_annual_profit, company_economic_type,
company_industry, company_legal_representative, company_corporate_position, company_legal_person_phone,
company_corporate_office_phone, company_person_in_charge_of_rectification, company_rectifier_phone,
company_organizer, company_group_company_name, company_security_function, company_postal_code,
company_introduction, company_other,
parent_id, ancestors,company_sub_industry
from sys_company
insert into sys_company
company_id,
create_by,
create_time,
update_by,
update_time,
remark,
company_name,
company_principal,
company_address,
company_phone,
company_four_color_map_url,
post_safety_risk_bar_chart_url,
company_region,
company_unified_social_credit_code,
company_business_license,
company_registered_address_of_business_license,
company_scale,
company_number_of_employees,
company_established,
company_area,
company_registered_capital,
company_total_assets,
company_actual_income_of_the_previous_year,
company_annual_profit,
company_economic_type,
company_industry,
company_sub_industry,
company_legal_representative,
company_corporate_position,
company_legal_person_phone,
company_corporate_office_phone,
company_person_in_charge_of_rectification,
company_rectifier_phone,
company_organizer,
company_group_company_name,
company_security_function,
company_postal_code,
company_introduction,
company_other,
parent_id,
ancestors,
#{companyId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{companyName},
#{companyPrincipal},
#{companyAddress},
#{companyPhone},
#{companyFourColorMapUrl},
#{postSafetyRiskBarChartUrl},
#{companyRegion},
#{companyUnifiedSocialCreditCode},
#{companyBusinessLicense},
#{companyRegisteredAddressOfBusinessLicense},
#{companyScale},
#{companyNumberOfEmployees},
#{companyEstablished},
#{companyArea},
#{companyRegisteredCapital},
#{companyTotalAssets},
#{companyActualIncomeOfThePreviousYear},
#{companyAnnualProfit},
#{companyEconomicType},
#{companyIndustry},
#{companySubIndustry},
#{companyLegalRepresentative},
#{companyCorporatePosition},
#{companyLegalPersonPhone},
#{companyCorporateOfficePhone},
#{companyPersonInChargeOfRectification},
#{companyRectifierPhone},
#{companyOrganizer},
#{companyGroupCompanyName},
#{companySecurityFunction},
#{companyPostalCode},
#{companyIntroduction},
#{companyOther},
#{parentId},
#{ancestors},
update sys_company
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
company_name = #{companyName},
company_principal = #{companyPrincipal},
company_address = #{companyAddress},
company_phone = #{companyPhone},
company_four_color_map_url = #{companyFourColorMapUrl},
post_safety_risk_bar_chart_url = #{postSafetyRiskBarChartUrl},
company_region = #{companyRegion},
company_unified_social_credit_code = #{companyUnifiedSocialCreditCode},
company_business_license = #{companyBusinessLicense},
company_registered_address_of_business_license = #{companyRegisteredAddressOfBusinessLicense},
company_scale = #{companyScale},
company_number_of_employees = #{companyNumberOfEmployees},
company_established = #{companyEstablished},
company_area = #{companyArea},
company_registered_capital = #{companyRegisteredCapital},
company_total_assets = #{companyTotalAssets},
company_actual_income_of_the_previous_year = #{companyActualIncomeOfThePreviousYear},
company_annual_profit = #{companyAnnualProfit},
company_economic_type = #{companyEconomicType},
company_industry = #{companyIndustry},
company_sub_industry = #{companySubIndustry},
company_legal_representative = #{companyLegalRepresentative},
company_corporate_position = #{companyCorporatePosition},
company_legal_person_phone = #{companyLegalPersonPhone},
company_corporate_office_phone = #{companyCorporateOfficePhone},
company_person_in_charge_of_rectification = #{companyPersonInChargeOfRectification},
company_rectifier_phone = #{companyRectifierPhone},
company_organizer = #{companyOrganizer},
company_group_company_name = #{companyGroupCompanyName},
company_security_function = #{companySecurityFunction},
company_postal_code = #{companyPostalCode},
company_introduction = #{companyIntroduction},
company_other = #{companyOther},
parent_id = #{parentId},
ancestors = #{ancestors},
where company_id = #{companyId}
delete from sys_company where company_id = #{companyId}
delete from sys_company where company_id in
#{companyId}