What is the cause of long-term heartburn?

The doctor replied:

gastritis and reflux esophagitis will have acid reflux and heartburn, which can be accompanied by stomach pain and other discomfort. Especially after eating spicy and stimulating food, it is recommended to take omeprazole and Mosapride orally. If the effect is poor, it is recommended to see a doctor in the Department of Gastroenterology and improve gastroscopy if necessary.