It doesn't matter if there is a gap in the payment process of the social labor insurance as a whole in China. As long as the accumulated payment (including deemed payment) of the old-age insurance before retirement reaches 15 years, you can receive the pension on a monthly basis.
Endowment insurance can be repaid. If the insured (male) is over 60 years old and the female is over 55 years old: if the one-time payment period is over 15 years, the pension formalities shall be handled according to the regulations; If the overdue payment period is less than 15 years, the payment can be extended to 15 years. If the actual payment period is still less than 15 years for men over 65 years old and women over 60 years old, they can pay in one lump sum to 15 years, and go through the pension formalities according to regulations.