China’s trade slumped this year amid lackluster global demand for Chinese good and muted domestic demand.