You can apply for a temporary residence permit when staying in a hotel, or you can just use your ID card.
You can stay in a hotel with a temporary residence permit in China. When staying in a hotel, you need a valid ID card and real-name registration.
According to relevant laws and regulations, valid identity documents for Chinese citizens to register for accommodation in hotels include: Household Registration Booklet of the People's Republic of China, Resident ID Card, Temporary Resident ID Card, Passport, Seaman's Certificate, and the People's Republic of China Resident ID Card.
*Pass for traveling to and from Hong Kong and Macao for the Republic of China, and permit for traveling to and from the Hong Kong and Macao Special Administrative Region on official business; officer ID card, police officer ID card, civilian cadre ID card, soldier ID card, student ID card issued by the Chinese People's Liberation Army and the Chinese People's Armed Police Force; travel pass for Hong Kong and Macao residents to and from the mainland;
Mainland Travel Permit for Taiwan residents, People's Republic of China and National Travel Permit.