If a patient suffers from gastroenteritis, there are several solutions: First, if gastroenteritis is suspected, he or she should visit a gastroenterologist and first have a colonoscopy and gastroscopy to determine the severity of gastritis under the microscope and to determine whether medication is needed. Second, consider medication. Both intestinal and gastric inflammation are caused by long-term poor dietary habits, therefore, in addition to changing dietary habits, medication is needed and should be used to inhibit gastric acid secretion and protect the gastric mucosa. If the patient is infected with H. pylori at the same time, triple therapy or quadruple therapy can be used, and antibiotic therapy can be used in addition to the first two drug treatments. Third, patients need to change bad eating habits and lifestyle habits, try to avoid overeating, avoid drinking alcohol frequently, while avoiding spicy, stimulating food.