The present disclosure relates to 4,6,7-trisubstituted 1,2-dihydropyrrolo[3,4-c]pyridin/pyrimidin-3-one derivatives, and their preparations and medicinal use. Specifically, the present disclosure discloses a compound of formula (I) or a pharmaceutically acceptable salt, stereoisomer, solvate or prodrug thereof, and a preparation method and use thereof, wherein the definition of each group is as described in the specification and claims.