The Kaplan–Meier curve and log‐rank test were used to assess the prognostic value of age, sex, primary site, metastasis sites, baseline CA19‐9, baseline CEA, baseline SII, baseline MLR, baseline NLR, BMI, history of diabetes, history of smoking and history of drinking for predicting OS and PFS. Here, CEACAM5 is linked to diabetes mellitus.