It depends on whether you keep the continuity unbroken. The employment-based permanent residence route requires that for a continuous 4 years you simultaneously hold the qualifying employer, position, and residence status; if you change employer or position, the change must meet the relevant conditions.
Nationwide (all cities)
Continuity, not immobility
The employment-based permanent residence route in China requires 'continuous employment'. What matters is not that you never move, but that you do not create a gap that breaks the required continuity.
The employment-based condition
Under the Administrative Measures for Approval of Permanent Residence of Foreigners, one qualifying route is: holding a position of deputy general manager or deputy factory director or above, or holding a deputy senior professional title (such as associate professor or associate researcher) or above with equivalent treatment, having served continuously for 4 years, having resided in China for a cumulative total of at least 3 of those 4 years, and having a good tax record.
What 'continuous' means
The National Immigration Administration explains the 'continuous employment' requirement as follows: such applicants must, at the time of application and for the 4 consecutive years before it, simultaneously satisfy the conditions relating to the employing unit, the position (title), and the residence period. If they change employer or position or title during that period, the change must meet the relevant conditions.
What this means for you
So changing jobs does not by itself reset your years — but if the change leaves a gap in employer, position, or residence status, that gap breaks the required continuity. To protect the continuity you are accumulating, keep the transition between jobs seamless on all three dimensions.