update bm_company_type set IS_ACTIVE = 0 where id=#{id} insert into bm_company_type(name,is_active) values (#{name},1) update bm_company_type set NAME =#{name} where id=#{id}