Poor sleep affects blood sugar and may cause diabetes if it is prolonged. Patients with diabetes mellitus may experience thirst, excessive drinking, and urination, and may also experience weight loss. Some patients can have no clinical signs and symptoms, and most are found during physical examination. Diabetes mellitus can be diagnosed clinically if fasting blood glucose is greater than 7mmol/L on two occasions and random blood glucose is greater than 11.1mmol/L on two occasions. Glucose-lowering treatment should be actively given, and metformin is generally preferred orally. If the patient is older and has abnormal renal function, insulin can also be applied for glucose-lowering treatment. If the patient’s fasting blood glucose is greater than 10mmol/L, it is generally recommended to apply insulin hypoglycemic treatment. If the patient has a history of diabetes, glucose-lowering drugs should be applied at the same time to instruct the patient to live a regular life, three meals a day, regular and quantitative diet, and at the same time to develop good habits of work and rest, sleep and wake up on time to ensure sufficient sleep time.