Xiaoming left his job after buying a house developed by a company affiliated to the company at an internal preferential price. Is it legal for the company to ask for the return of the house he has bought?
One message you have made clear is that neither Company A nor Company B has signed a binding agreement with you to purchase the service period. One more thing is not clear. Did you sign a house purchase contract with company B? Or did you buy a receipt? If there is anything, you have proof.
It is unreasonable for the company to ask you to check out when you leave, because there is no service agreement. If you take back your house, you can sue it.