<update id="mergeinfo">
merge into user_type a
using ( select #{name} as name, #{type} as type from dual ) b
on (a.type = b.type)
when not matched then
insert (type,name) values(#{type},#{name})
when matched then
update set name = #{name} where type = #{type}
</update>