A local court ruled that the company had sacked Ms Wang illegally and that she should be paid compensation.