INSERT INTO gen_enterprise( enterprise_id, name, type, area1, area2, area3, area4, area5, address, industry, engaged_count, risk_operation, master, master_id_card_front, master_id_card_back, master_legal_certificate, phone, factory_gate, workplace, industry_type, bussiness_reg_num, bussiness_license, bussiness_license_start_date, bussiness_license_end_date, legal_person, legal_phone, legal_id_card_front, legal_id_card_back, summary, type_dictionary_name, area1_dictionary_name, area2_dictionary_name, area3_dictionary_name, area4_dictionary_name, area5_dictionary_name, industry_type_dictionary_name, industry_dictionary_name, risk_operation_dictionary_name, classify, classify_dictionary_name, nature, nature_dictionary_name, is_log_off, is_commercial_downstairs, enterprise_lng, enterprise_lat, remarks, creator, gmt_create, modifier, gmt_modified, is_delete ) VALUES( #{enterpriseId}, #{name}, #{type}, #{area1}, #{area2}, #{area3}, #{area4}, #{area5}, #{address}, #{industry}, #{engagedCount}, #{riskOperation}, #{master}, #{masterIdCardFront}, #{masterIdCardBack}, #{masterLegalCertificate}, #{phone}, #{factoryGate}, #{workplace}, #{industryType}, #{bussinessRegNum}, #{bussinessLicense}, #{bussinessLicenseStartDate}, #{bussinessLicenseEndDate}, #{legalPerson}, #{legalPhone}, #{legalIdCardFront}, #{legalIdCardBack}, #{summary}, #{typeDictionaryName}, #{area1DictionaryName}, #{area2DictionaryName}, #{area3DictionaryName}, #{area4DictionaryName}, #{area5DictionaryName}, #{industryTypeDictionaryName}, #{industryDictionaryName}, #{riskOperationDictionaryName}, #{classify}, #{classifyDictionaryName}, #{nature}, #{natureDictionaryName}, #{isLogOff}, #{isCommercialDownstairs}, #{enterpriseLng}, #{enterpriseLat}, #{remarks}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified}, #{isDelete} ) UPDATE gen_enterprise SET is_delete = 1, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE enterprise_id IN #{enterpriseIds[${index}]} UPDATE gen_enterprise SET name = #{name}, type = #{type}, area1 = #{area1}, area2 = #{area2}, area3 = #{area3}, area4 = #{area4}, area5 = #{area5}, address = #{address}, industry = #{industry}, engaged_count = #{engagedCount}, risk_operation = #{riskOperation}, master = #{master}, master_id_card_front = #{masterIdCardFront}, master_id_card_back = #{masterIdCardBack}, master_legal_certificate = #{masterLegalCertificate}, phone = #{phone}, factory_gate = #{factoryGate}, workplace = #{workplace}, industry_type = #{industryType}, bussiness_reg_num = #{bussinessRegNum}, bussiness_license = #{bussinessLicense}, bussiness_license_start_date = #{bussinessLicenseStartDate}, bussiness_license_end_date = #{bussinessLicenseEndDate}, legal_person = #{legalPerson}, legal_phone = #{legalPhone}, legal_id_card_front = #{legalIdCardFront}, legal_id_card_back = #{legalIdCardBack}, summary = #{summary}, type_dictionary_name = #{typeDictionaryName}, area1_dictionary_name = #{area1DictionaryName}, area2_dictionary_name = #{area2DictionaryName}, area3_dictionary_name = #{area3DictionaryName}, area4_dictionary_name = #{area4DictionaryName}, area5_dictionary_name = #{area5DictionaryName}, industry_type_dictionary_name = #{industryTypeDictionaryName}, industry_dictionary_name = #{industryDictionaryName}, risk_operation_dictionary_name = #{riskOperationDictionaryName}, classify = #{classify}, classify_dictionary_name = #{classifyDictionaryName}, nature = #{nature}, nature_dictionary_name = #{natureDictionaryName}, is_log_off = #{isLogOff}, is_commercial_downstairs = #{isCommercialDownstairs}, enterprise_lng = #{enterpriseLng}, enterprise_lat = #{enterpriseLat}, remarks = #{remarks}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE enterprise_id = #{enterpriseId} UPDATE gen_enterprise SET enterprise_lng = #{enterpriseLng}, enterprise_lat = #{enterpriseLat}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE enterprise_id = #{enterpriseId} UPDATE gen_enterprise SET nature = #{nature}, nature_dictionary_name = #{natureDictionaryName}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE enterprise_id = #{enterpriseId} UPDATE gen_enterprise SET classify = #{classify}, classify_dictionary_name = #{classifyDictionaryName}, modifier = #{modifier}, gmt_modified = #{gmtModified} WHERE enterprise_id = #{enterpriseId} INSERT INTO gen_enterprise_pollution( enterprise_id, pollution_factor, pollution_factor_dangerous, pollution_factor_other, pollution_facilities, pollution_control_facilities, eia_status, check_status, related_documents ) VALUES( #{enterpriseId}, #{pollutionFactor}, #{pollutionFactorDangerous}, #{pollutionFactorOther}, #{pollutionFacilities}, #{pollutionControlFacilities}, #{eiaStatus}, #{checkStatus}, #{relatedDocuments} ) UPDATE gen_enterprise_pollution SET pollution_factor = #{pollutionFactor}, pollution_factor_dangerous = #{pollutionFactorDangerous}, pollution_factor_other = #{pollutionFactorOther}, pollution_facilities = #{pollutionFacilities}, pollution_control_facilities = #{pollutionControlFacilities}, eia_status = #{eiaStatus}, check_status = #{checkStatus}, related_documents = #{relatedDocuments}, enterprise_id = #{enterpriseId} WHERE enterprise_id = #{enterpriseId}