SELECT
st.f_gas_stop_id,
st.f_company_info_id,
st.f_start_date,
st.f_end_date,
st.f_stop_type,
st.f_influence_cus,
st.f_stop_reason,
st.f_stop_range,
st.f_stop_progress,
st.f_recovery_gas_time,
st.f_rep_status,
st.f_ent_rep_time,
st.f_gas_stop_area,
st.create_by,
st.create_time,
st.update_by,
st.update_time,
st.is_del,
st.remarks,
st.f_gov_upload_status,
st.f_gov_upload_time,
en.enterprise_name AS enterpriseName
FROM
t_sup_bal_stop_sup st
LEFT JOIN t_enterprise_info en ON en.enterprise_id = st.f_company_info_id
insert into t_sup_bal_stop_sup
f_company_info_id,
f_start_date,
f_end_date,
f_stop_type,
f_influence_cus,
f_stop_reason,
f_stop_range,
f_stop_progress,
f_recovery_gas_time,
f_rep_status,
f_ent_rep_time,
f_gas_stop_area,
create_by,
create_time,
update_by,
update_time,
is_del,
remarks,
f_gov_upload_status,
f_gov_upload_time,
#{fCompanyInfoId},
#{fStartDate},
#{fEndDate},
#{fStopType},
#{fInfluenceCus},
#{fStopReason},
#{fStopRange},
#{fStopProgress},
#{fRecoveryGasTime},
#{fRepStatus},
#{entRepTime},
#{fGasStopArea},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{isDel},
#{remarks},
#{fGovUploadStatus},
#{fGovUploadTime},
update t_sup_bal_stop_sup
f_company_info_id = #{fCompanyInfoId},
f_start_date = #{fStartDate},
f_end_date = #{fEndDate},
f_stop_type = #{fStopType},
f_influence_cus = #{fInfluenceCus},
f_stop_reason = #{fStopReason},
f_stop_range = #{fStopRange},
f_stop_progress = #{fStopProgress},
f_recovery_gas_time = #{fRecoveryGasTime},
f_rep_status = #{fRepStatus},
f_ent_rep_time = #{entRepTime},
f_gas_stop_area = #{fGasStopArea},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
is_del = #{isDel},
remarks = #{remarks},
f_gov_upload_status = #{fGovUploadStatus},
f_gov_upload_time = #{fGovUploadTime},
where f_gas_stop_id = #{fGasStopId}
delete from t_sup_bal_stop_sup where f_gas_stop_id = #{fGasStopId}
delete from t_sup_bal_stop_sup where f_gas_stop_id in
#{fGasStopId}