The primary purpose of this study was to observe the effects of sufentanil and morphine postoperative analgesia on immunity through analysis of CD4+/CD8+ ratio, proportion of Th1, Th2, Th17 and Treg cells using flow cytometry, and the secondary target was liver function changes and mortality in HCC rats undergoing left hepatolobectomy. Here, CD4 is linked to hepatocellular carcinoma.