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. The gene discussed is CD8A; the disease is hepatocellular carcinoma.