Provided are a cyclohexane derivative as shown by formula IB or a stereoisomer or a salt thereof, and the preparation and use thereof. The cyclohexane derivative has a high affinity for D3 receptors and 5-hydroxytryptamine, has a lower affinity for D2 receptors, shows a high selectivity for D3/D2 receptors, and can be used as a therapeutic drug against neuropsychiatric diseases; and the preparation method thereof is simple and easy.