Stomach pain and heartburn may be due to improper diet, chronic gastritis, gastric ulcer, reflux esophagitis, etc., and should be treated according to the cause. If you have a poor diet, you should adjust your diet, if you have gastritis or gastric ulcer, you should fight Helicobacter pylori, and if you have reflux esophagitis, you should give omeprazole to inhibit the acidity of the esophagus. 1. Improper diet: consume too much hot pepper, onion, garlic and other spicy stimulating food, stimulate the mucous membrane of the digestive tract, there can be gastric pain and heartburn symptoms, you should avoid eating these foods, you can drink a moderate amount of water, congee to relieve the symptoms, and if necessary, can be taken to inhibit the secretion of gastric acid such as omeprazole. 2. Chronic gastritis, gastric ulcer: Helicobacter pylori infection leads to chronic inflammation of the stomach, ulcers, can have heartburn symptoms, can take omeprazole to inhibit the secretion of gastric acid, rabeprazole + Amoxicillin + Clarithromycin + Bismuth Potassium Citrate anti-Helicobacter pylori treatment. 3. Reflux esophagitis: gastric acid, bile and other upward reflux leads to esophageal mucosal damage, commonly acid reflux, heartburn symptoms, but also can have stomach pain, can apply omeprazole inhibit gastric acid secretion, mosapride to promote gastrointestinal power. People with stomach pain and heartburn should go to the hospital, improve the examination to clarify the cause, and treatment under the guidance of the doctor.