Based on the assumption of multi-layer reservoir with complex blocks and combined with the wellbore flow equations, we established a percolation mathematical model for the coupled multi-layer reservoir with blocks and wellbore, and then we utilized the Laplace change, Stehfest inversion and conjugate gradient method, etc . to solve the model. Then, we took the multi-layer reservoir with complex blocks as an example to simplify the shape of the reservoir and calculate the distribution of pressure and production of the horizontal well when it passes through two sand bodies. Finally, we calculated the dimensionless pressure derivative and productivity of four different types of oil wells (or have different relative positions). This model has provided a theoretical basis to select the reasonable well types for the multi-layer reservoir with complex blocks.