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