insert into token(user_id,token)values(#{userId},#{token}); update token set token = #{token} where user_id = #{userId};