Hsinchu Mayor Kao Hung-an has been convicted on corruption charges and sentenced to more than seven years in prison.