Global dynamics of a general vector-borne disease model with two transmission routes