select f_id, f_billno, f_ctrlcorpid, f_corpid, t_mblno, f_amtdr, f_amtcr, f_billtype, f_billstatus, f_remarks, f_accbilldate, del_flag, create_by, f_deptid, create_time, update_by, update_time from t_fee insert into t_fee f_billno, f_ctrlcorpid, f_corpid, t_mblno, f_amtdr, f_amtcr, f_billtype, f_billstatus, f_remarks, f_accbilldate, del_flag, create_by, f_deptid, create_time, update_by, update_time, #{fBillno}, #{fCtrlcorpid}, #{fCorpid}, #{tMblno}, #{fAmtdr}, #{fAmtcr}, #{fBilltype}, #{fBillstatus}, #{fRemarks}, #{fAccbilldate}, #{delFlag}, #{createBy}, #{fDeptid}, #{createTime}, #{updateBy}, #{updateTime}, update t_fee f_billno = #{fBillno}, f_ctrlcorpid = #{fCtrlcorpid}, f_corpid = #{fCorpid}, t_mblno = #{tMblno}, f_amtdr = #{fAmtdr}, f_amtcr = #{fAmtcr}, f_billtype = #{fBilltype}, f_billstatus = #{fBillstatus}, f_remarks = #{fRemarks}, f_accbilldate = #{fAccbilldate}, del_flag = #{delFlag}, create_by = #{createBy}, f_deptid = #{fDeptid}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, 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}