If you have heartburn while sleeping at night, it is very likely that the symptoms are caused by gastric reflux esophagitis, especially at night when the secretion of gastric acid will relatively increase, so the symptoms of heartburn will be more obvious. There is also the fact that sleeping in a flat position at night makes it easier for stomach acid to flow back into the esophagus. It is recommended that the head of the bed be elevated during sleep to avoid the head being too low, to alleviate the symptoms of acid reflux. For more serious symptoms, you can go to the gastroenterology department of the hospital in time to do gastroscopy and blow test and other tests to clarify the specific severity. If the gastritis caused by Helicobacter pylori infection, you can usually choose clarithromycin and amoxicillin combined anti-infection, and then can be combined with omeprazole acid suppression, and at the same time can be applied to aluminum thioglycollate to protect the gastric mucosa, and usually need to pay attention to the development of good eating habits.