If surgical treatment is required, blood glucose must be controlled within a reasonable range during the perioperative period; otherwise, poor blood glucose control may aggravate abdominal infection and delay healing of the incision, which is not conducive to the patient’s recovery. If the diabetic patient’s daily blood glucose control is fair, he can control his preprandial blood glucose between 6-8 mmol/L and postprandial blood glucose can be maintained at 8-10 mmol/L by taking oral hypoglycemic drugs. For diabetic patients, it is not recommended to control blood glucose within the normal range because it may cause serious complications such as hypoglycemia in patients. If the patient’s blood sugar is poorly controlled by oral hypoglycemic drugs, it is recommended to use an insulin pump to stabilize the patient’s blood sugar at 8-10 mmol/L. In this case, the patient will not suffer from a series of serious complications caused by high or low blood sugar after surgery.