Germany's resolution to seriously affect ties: Erdogan