Because the economic compensation is based on the labor contract, regardless of the relationship between companies, Xiao Zhang signed a new labor contract when he was transferred to Ding Company, which means that the previous labor contract has ended. Therefore, Xiao only asked Ding Company to give corresponding economic compensation for his two-year employment period.