select f_id, f_billno, f_ctrlcorpid, f_act_id, f_corpid, f_trans_act_id, t_mblno, f_amtdr, f_amtcr, f_billtype, f_billstatus, f_remarks, f_from_date, f_accbilldate, f_to_date, f_ref_no, del_flag, create_by, f_deptid, create_time, update_by, update_time,charging_method ,invoice_no , bank , water_bill_no from t_fee insert into t_fee f_id, f_billno, f_ctrlcorpid, f_act_id, f_corpid, f_trans_act_id, t_mblno, f_amtdr, f_amtcr, f_billtype, f_billstatus, f_remarks, f_from_date, f_accbilldate, f_to_date, f_ref_no, del_flag, create_by, f_deptid, create_time, update_by, update_time, charging_method, invoice_no, bank, water_bill_no, #{fId}, #{fBillno}, #{fCtrlcorpid}, #{fActId}, #{fCorpid}, #{fTransActId}, #{tMblno}, #{fAmtdr}, #{fAmtcr}, #{fBilltype}, #{fBillstatus}, #{fRemarks}, #{fFromDate}, #{fAccbilldate}, #{fToDate}, #{fRefNo}, #{delFlag}, #{createBy}, #{fDeptid}, #{createTime}, #{updateBy}, #{updateTime}, #{chargingMethod}, #{invoiceNo}, #{bank}, #{waterBillNo}, update t_fee f_billno = #{fBillno}, f_ctrlcorpid = #{fCtrlcorpid}, f_act_id = #{fActId}, f_corpid = #{fCorpid}, f_trans_act_id = #{fTransActId}, t_mblno = #{tMblno}, f_amtdr = #{fAmtdr}, f_amtcr = #{fAmtcr}, f_billtype = #{fBilltype}, f_billstatus = #{fBillstatus}, f_remarks = #{fRemarks}, f_from_date = #{fFromDate}, f_accbilldate = #{fAccbilldate}, f_to_date = #{fToDate}, f_ref_no = #{fRefNo}, del_flag = #{delFlag}, create_by = #{createBy}, f_deptid = #{fDeptid}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, charging_method = #{chargingMethod}, invoice_no = #{invoiceNo}, bank = #{bank}, water_bill_no = #{waterBillNo}, where f_id = #{fId} delete from t_fee where f_id = #{fId} delete f.*, fd.* from t_fee f LEFT JOIN t_fee_do fd ON fd.f_pid = f.f_id where f.f_id in #{fId}