In the univariate analysis, age (OR: 1.027, 95%CI: 1.002, 1.053, p = 0.035), gender (OR: 2.237, 95%CI: 1.236, 4.047, p = 0.008), tumor volumes (OR: 1.040, 95%CI: 1.011, 1.070, p = 0.006), tumor stage (OR: 2.625, 95%CI: 1.299, 5.307, p = 0.007), alanine aminotransferase (OR: 1.018, 95%CI: 1.001, 1.035, p = 0.040), WBC (OR: 1.395, 95%CI: 1.165, 1.668, p < 0.0001), and platelet (OR: 1.011, 95%CI: 1.005, 1.017, p < 0.0001) were associated with a higher risk of DM. Here, GPT is linked to diabetes mellitus.