select id, pay_id, apply_seq_no, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_pay_invoice_rel insert into emis_settle_pay_invoice_rel id, pay_id, apply_seq_no, del_flag, create_by, create_time, update_by, update_time, create_site, update_site, #{id}, #{payId}, #{applySeqNo}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{createSite}, #{updateSite}, update emis_settle_pay_invoice_rel pay_id = #{payId}, apply_seq_no = #{applySeqNo}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, create_site = #{createSite}, update_site = #{updateSite}, where id = #{id} delete from emis_settle_pay_invoice_rel where id = #{id} delete from emis_settle_pay_invoice_rel where id in #{id}