What is the legal basis for civil servants to be dismissed at the same time because of administrative demerits?

According to the Measures for the Punishment of Civil Servants, Article 83 A civil servant shall be dismissed in any of the following circumstances:

(a) in the annual assessment, it has been determined to be incompetent for two consecutive years;

(two) unable to do the current job, and do not accept other arrangements;

(three) due to the adjustment, cancellation, merger or reduction of the staffing of this organ, the work needs to be adjusted, and I refuse to make reasonable arrangements;

(4) Failing to perform the obligations of civil servants, failing to abide by the discipline of civil servants, failing to change after education, being unfit to continue working in government offices, and not being dismissed;

(five) absenteeism, business trip, without justifiable reasons for more than fifteen days in a row, or more than thirty days in a year.

See which one your friend meets. If none of them meet the requirements, you can't be fired.