Who applied for the patent first or made it public first? What if the patent was made public before the application?

China's patent system is the first application system. Whoever applies for the same invention first will be authorized in the future.

If the technical scheme has been made public before applying for a patent, it belongs to the existing technology, and no one can be authorized to apply for a patent again (the utility model can be authorized without substantive examination, but it will also be invalid).