The failure of wellbore sealing will cause leakage of greenhouse gases, such as carbon dioxide and methane, which will harm oil and gas recovery and environmental safety. Cementing is an important part of wellbore sealing. Only good cementing can keep the wellbore seal for a long time and improve the well life. In this study, we considered the construction of a horizontal shale oil well in eastern China as the background and analysed the rheological properties of the annulus fluid. We developed a displacement motion model and a calculation model for the annulus dynamic equivalent circulation density, and numerical simulations were used to study the impact of the dosage and injection sequence of the pad fluid on the displacement efficiency and annulus dynamic equivalent circulation density. The results show that when the pad fluid is composed completely of flushing fluid, the displacement performance is better than that of the spacer. By increasing the dosage of the flushing fluid from 0.3 times the annular volume to 1.0 times, the displacement efficiency can be increased by 3.3%, and the retention of the drilling fluid is also reduced by 3.6%. However, it can lead to a significant reduction in the annulus dynamic equivalent circulation density and increase in the risk of leakage. After adding the spacer, the structure of the flushing fluid–spacer provides the optimal injection sequence. Considering the application status in the field example well, it was shown that it can not only ensure the safety of cementing operations, but also improve the displacement efficiency. The results of this study have important theoretical significance and application value and can provide guidance for the optimisation design of the engineering scheme.