select s.f_id, s.f_billtype, s.f_corpid, s.pol_id, s.pod_id, s.f_validdate, s.f_date_changed, s.f_billstatus, s.del_flag, s.create_by, s.create_time, s.update_by, s.update_time, s.remarks, s.f_lineid, s.f_bookagentid, j.f_name AS f_line_name, q.f_name AS f_bookagent_name from t_seaprice s LEFT JOIN t_address j ON s.f_lineid = j.f_id LEFT JOIN t_corps q ON s.f_bookagentid = q.f_id insert into t_seaprice f_billtype, f_corpid, pol_id, pod_id, f_validdate, f_date_changed, f_billstatus, del_flag, create_by, create_time, update_by, update_time, remarks, f_lineid, f_bookagentid, #{fBilltype}, #{fCorpid}, #{polId}, #{podId}, #{fValiddate}, #{fDateChanged}, #{fBillstatus}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remarks}, #{fLineid}, #{fBookagentid}, update t_seaprice f_billtype = #{fBilltype}, f_corpid = #{fCorpid}, pol_id = #{polId}, pod_id = #{podId}, f_validdate = #{fValiddate}, f_billstatus = #{fBillstatus}, f_date_changed = #{fDateChanged}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remarks = #{remarks}, f_lineid = #{fLineid}, f_bookagentid = #{fBookagentid}, where f_id = #{fId} delete from t_seaprice where f_id = #{fId} delete from t_seaprice where f_id in #{fId}