A compound of Formula Ib: or a pharmaceutically acceptable salt, solvate, stereoisomer or a tautomer thereof, wherein A 1, A 2 and A 3 are independently N or CR 3; L is none, O, S, NR 12 or CR 12 R 13; R 1 is C 1-6 alkyl, C 3-6 cycloalkyl, C 1-6 alkoxy, C 2-6 alkenyl, or C 2-6 alkynyl, which can be unsubstituted or substituted with 1 to 3 groups selected from halide, deuterium, -CN, -CF 3, C 1-6 alkyl, C 3-6 cycloalkyl and C 1-6 alkoxy; R 2 is C 1-6 alkyl, C 3-8 cycloalkyl, C 6-12 spirocycle, phenyl, 5-6 membered heteroaryl comprising 1-3 hetero atoms, 3-8 membered heterocycle comprising 1-3 hetero atoms, or 6-12 membered heterospirocycle comprising 1-3 hetero atoms, all of which are unsubstituted or substituted with 1-3 R 9, wherein each hetero atom is independently N, O or S; R 3 is independently selected from the group consisting of H, deuterium, halide, amino, -OH, -CN, C 1-6 alkoxy, C 1-6 alkylthio, C 3-6 cycloalkyl or C 1-6 alkyl; R 7 is H, C 1-6 alkyl or C 3-6 cycloalkyl; Rs is H, C R 10, C NR 10 R 11, C OR 10, S 2 R 10, S 2 NR 10 R 11, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, phenyl, 3-6 membered heterocycle comprising 1-3 hetero atoms, or 5-6 membered heteroaryl comprising 1-3 hetero atoms, wherein each of C 1-6 alkyl, C 3-6 cycloalkyl, phenyl, 3-6 membered heterocycle and 5-6 membered heteroaryl is unsubstituted or substituted with 1-3 groups selected from the group consisting of halide, deuterium, -CN, C 1-6 alkyl, C 3-6 cycloalkyl, C 1-6 alkoxy and 3-6 membered heterocycle comprising 1-3 hetero atoms, each hetero atom is independently N, O or S; R 9 is H, deuterium, halide, -OH, oxy, -CN, -amino, C 1-6 alkyl, C 3-6 cycloalkyl or C 1-6 alkoxy, wherein each of C 1-6 alkyl, C 3-6 cycloalkyl, and C 1-6 alkoxy is unsubstituted or substituted with 1-3 groups selected from the group consisting of halide, deuterium, and C 1-3 alkyl; each of R 10 and R 11 is independently H, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, C 2-6 alkynyl, phenyl, 3-6 membered heterocycle comprising 1-3 hetero atoms, or 5-6 membered heteroaryl comprising 1-3 hetero atoms, wherein each of C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, C 2-6 alkynyl, phenyl, 3-6 membered heterocycle and 5-6 membered heteroaryl is unsubstituted or substituted with 1-3 groups selected from the group consisting of halide, deuterium, -CN, -OH, -CF 3, C 1-6 alkyl, C 3-6 cycloalkyl, C 1-6 alkoxy and 5-6 membered heteroaryl comprising 1-3 hetero atoms, each hetero atom is independently N, O or S; or R 10 and R 11 together, with nitrogen atom they attached to, form a first 5-6 membered ring; and R 12 and R 13 are independently H, deuterium, halide, -OH, C 1-3 alkyl or C 1-6 alkoxy. or a pharmaceutically acceptable salt, solvate, stereoisomer or a tautomer thereof, wherein A 1, A 2 and A 3 are independently N or CR 3; L is none, O, S, NR 12 or CR 12 R 13; R 1 is C 1-6 alkyl, C 3-6 cycloalkyl, C 1-6 alkoxy, C 2-6 alkenyl, or C 2-6 alkynyl, which can be unsubstituted or substituted with 1 to 3 groups selected from halide, deuterium, -CN, -CF 3, C 1-6 alkyl, C 3-6 cycloalkyl and C 1-6 alkoxy; R 2 is C 1-6 alkyl, C 3-8 cycloalkyl, C 6-12 spirocycle, phenyl, 5-6 membered heteroaryl comprising 1-3 hetero atoms, 3-8 membered heterocycle comprising 1-3 hetero atoms, or 6-12 membered heterospirocycle comprising 1-3 hetero atoms, all of which are unsubstituted or substituted with 1-3 R 9, wherein each hetero atom is independently N, O or S; R 3 is independently selected from the group consisting of H, deuterium, halide, amino, -OH, -CN, C 1-6 alkoxy, C 1-6 alkylthio, C 3-6 cycloalkyl or C 1-6 alkyl; R 7 is H, C 1-6 alkyl or C 3-6 cycloalkyl; Rs is H, C R 10, C NR 10 R 11, C OR 10, S 2 R 10, S 2 NR 10 R 11, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, phenyl, 3-6 membered heterocycle comprising 1-3 hetero atoms, or 5-6 membered heteroaryl comprising 1-3 hetero atoms, wherein each of C 1-6 alkyl, C 3-6 cycloalkyl, phenyl, 3-6 membered heterocycle and 5-6 membered heteroaryl is unsubstituted or substituted with 1-3 groups selected from the group consisting of halide, deuterium, -CN, C 1-6 alkyl, C 3-6 cycloalkyl, C 1-6 alkoxy and 3-6 membered heterocycle comprising 1-3 hetero atoms, each hetero atom is independently N, O or S; R 9 is H, deuterium, halide, -OH, oxy, -CN, -amino, C 1-6 alkyl, C 3-6 cycloalkyl or C 1-6 alkoxy, wherein each of C 1-6 alkyl, C 3-6 cycloalkyl, and C 1-6 alkoxy is unsubstituted or substituted with 1-3 groups selected from the group consisting of halide, deuterium, and C 1-3 alkyl; each of R 10 and R 11 is independently H, C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, C 2-6 alkynyl, phenyl, 3-6 membered heterocycle comprising 1-3 hetero atoms, or 5-6 membered heteroaryl comprising 1-3 hetero atoms, wherein each of C 1-6 alkyl, C 3-6 cycloalkyl, C 2-6 alkenyl, C 2-6 alkynyl, phenyl, 3-6 membered heterocycle and 5-6 membered heteroaryl is unsubstituted or substituted with 1-3 groups selected from the group consisting of halide, deuterium, -CN, -OH, -CF 3, C 1-6 alkyl, C 3-6 cycloalkyl, C 1-6 alkoxy and 5-6 membered heteroaryl comprising 1-3 hetero atoms, each hetero atom is independently N, O or S; or R 10 and R 11 together, with nitrogen atom they attached to, form a first 5-6 membered ring; and R 12 and R 13 are independently H, deuterium, halide, -OH, C 1-3 alkyl or C 1-6 alkoxy.