Stomach pain cannot rule out peptic ulcer caused by gastric ulcer. Gastroscopy is needed to confirm the diagnosis. See if it's Helicobacter pylori infection if necessary.
Suggestion:
Diet should be regular, try to make three meals a day regular and quantitative, don't be too full, don't eat irritating food often, and drink less. If you can't do this, you can't take medicine. You can also eat some stomach-nourishing foods for a long time, such as Hericium erinaceus, Amomum villosum, pork belly, pepper and so on. There are many such foods and recipes, so don't rely on western medicine, which can't cure stomach diseases. However, some western medicines, such as vitalin tablets and weishuping, are quite effective when the stomachache is severe and urgent pain relief is needed.