Inflammatory bowel disease (IBD) is a chronic recurrent gastrointestinal disease that seriously endangers human and animal health. Although the etiology of IBD is complex and the pathogenesis is not well understood, studies have found that genetic predisposition, diet and intestinal flora disorders are the main risk factors for IBD. The potential biological mechanism of total ginsenosides (TGGR) in the treatment of IBD remains to be elucidated. Surgery is still the main strategy for the treatment of IBD, due to the relatively high side effects of related drugs and the easy development of drug resistance. The purpose of the present study was to evaluate the efficacy of TGGR and explore the effect of TGGR on the intestinal inflammation induced by sodium dodecyl sulfate (SDS) in Drosophila and to initially explain the improvement effect and mechanism of TGGR on Drosophila enteritis by analyzing the levels of Drosophila-related proteins. During the experiment, the survival rate, climb index and abdominal characteristics of the Drosophila was recorded. Intestinal samples of Drosophila were collected for analysis of intestinal melanoma. The oxidative stress related indexes of catalase, superoxide dismutase and malondialdehyde were determined by spectrophotometry. Western blotting detected the expression of signal pathway-related factors. The effects of TGGR on growth indices, tissue indices, biochemical indices, signal pathway transduction and related mechanisms of SDS-induced Drosophila enteritis model were studied. The results showed that TGGR could repair SDS-induced enteritis of Drosophila through MAPK signaling pathway, improve survival rate and climbing ability and repair intestinal damage and oxidative stress damage. The results suggested that TGGR has potential application value in the treatment of IBD and its mechanism is related to the downregulation of phosphorylated (p)-JNK/p-ERK levels, which provides a basis for drug research in the treatment of IBD.