Ask your bank. Whether the account can be retained after you leave depends on the bank's own policies — there is no single national rule.
Nationwide (all cities)
No single national rule
There is no single national rule on this. The Liwan district government's '14 things' list for foreigners departing China flags this as an item to handle with the bank: whether the bank account can be retained after departure is something to confirm with the bank directly. The Hunan provincial government's English guide on applying for a bank card confirms the account is opened with a passport and that banks apply their own account-management rules. In practice, banks may freeze, restrict, or close accounts of non-residents depending on their own KYC (know-your-customer) and account-review policies, especially if the residence permit or work permit that supported the account has expired or been cancelled.
Practical point: refunds land in this account
Practical point: before leaving, confirm with your bank whether the account will remain usable, what happens when your residence permit expires, and how to receive any refunds (housing fund, social insurance, final salary) — because those refunds are paid into your Chinese bank account.