A 42-year-old male patient presents with intermittent epigastric discomfort for 3 years. Gastroscopy findings: severe atrophic gastritis. Pathology: atrophic gastritis with intestinal metaplasia. W-S staining positive. The appropriate treatment for this patient is: