SELECT inc.f_con_gas_pro_inc_id, inc.f_intersect_construction_id, inc.f_title, inc.f_description, inc.f_occurrenct_time, inc.f_attachment, inc.f_remark, inc.f_update_time, inc.f_ent_upload_time, inc.f_ent_upload_state, inc.f_gov_upload_time, inc.f_gov_upload_state, info.f_project_code AS projectCode, enterprise.enterprise_name as f_company_info_id FROM t_con_gas_pro_inc inc LEFT JOIN t_con_gas_pro_infor info ON info.f_con_gas_pro_infor_id = inc.f_intersect_construction_id LEFT JOIN t_enterprise_info enterprise ON info.f_company_info_id = enterprise.enterprise_id insert into t_con_gas_pro_inc f_intersect_construction_id, f_title, f_description, f_occurrenct_time, f_attachment, f_remark, f_update_time, f_company_info_id, f_ent_upload_time, f_ent_upload_state, f_gov_upload_time, f_gov_upload_state, #{fIntersectConstructionId}, #{fTitle}, #{fDescription}, #{fOccurrenctTime}, #{fAttachment}, #{fRemark}, #{fUpdateTime}, #{fCompanyInfoId}, #{entUploadTime}, #{entUploadState}, #{govUploadTime}, #{govUploadState}, update t_con_gas_pro_inc f_intersect_construction_id = #{fIntersectConstructionId}, f_title = #{fTitle}, f_description = #{fDescription}, f_occurrenct_time = #{fOccurrenctTime}, f_attachment = #{fAttachment}, f_remark = #{fRemark}, f_update_time = #{fUpdateTime}, f_ent_upload_time = #{entUploadTime}, f_ent_upload_state = #{entUploadState}, f_gov_upload_time = #{govUploadTime}, f_gov_upload_state = #{govUploadState}, where f_con_gas_pro_inc_id = #{fConGasProIncId} delete from t_con_gas_pro_inc where f_con_gas_pro_inc_id = #{fConGasProIncId} update t_con_gas_pro_inc set f_ent_upload_state = #{state}, f_ent_upload_time = #{entUploadTime} where f_con_gas_pro_inc_id = #{fConGasProIncId} delete from t_con_gas_pro_inc where f_con_gas_pro_inc_id in #{fConGasProIncId}