If the patent application is rejected by the company, can it be handed over to others or other companies for application?

As long as it is invented by yourself, you can apply. The right to apply for a patent for service invention belongs to the company, and the inventor has the right of signature.

If the subject has made a substantial contribution to the invention, and the company does not specify that the subject is the inventor when applying for a patent, then the subject can defend his rights, but he maintains the right of signature, not applying for a patent right.