The subsynchronous oscillation caused by the grid-connected direct-drive fan is a new type of oscillation mode, which has an adverse effect on the stability of the system. Aiming at the influence of current inner loop, voltage outer loop parameters in grid-side converter control and grid-side lines on subsynchronous oscillation, a two-layer objective optimization model predictive control method considering delay compensation is proposed to replace traditional PI control. The control method tracks the reference current with the rolling optimization method, designs a two-layer objective function, and considers the current error and the DC voltage error at the same time. Through simulation comparison and verification, the proposed method has better stability and adaptability in weakly connected power grids and other working conditions.