If the application date (not the authorization date) of the utility model is earlier than the invention, it will definitely affect the authorization of the application for a patent for invention, which has little to do with when the utility model is authorized;
But if it is later than the invention, it will not affect the authorization of the invention patent application.