A compound represented by formula, a tautomer or stereoisomer thereof or a pharmaceutically acceptable salt thereof, wherein m is 0, 1 or 2; n is 0, 1 or 2; Ti is selected from N and CH; Di is selected from O, N(R 6) and C(R 7)(R 8); R 1 is independently selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and C 1 - 6 alkoxy, wherein the C 1 - 6 alkyl and C 1 - 6 alkoxy are optionally substituted with 1, 2 or 3 R a; R 2 is each independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1 - 6 alkyl, wherein the C 1 - 6 alkyl is optionally substituted with 1, 2 or 3 R b; or R 1 and R 2 are attached to each other to form -(CH 2) p -, where both m and n are 1; R 3 and R 4 are each independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1 - 6 alkyl, wherein the C 1 - 6 alkyl is optionally substituted with 1, 2 or 3 R c; or R 3 and R 4 are attached to each other to form -(CH 2) q -; p is 1 or 2; q is 1 or 2; R 51, R 52, R 53 and R 54 are each independently selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and C 1 - 3 alkoxy, wherein the C 1 - 6 alkyl and C 1 - 3 alkoxy are optionally substituted with 1, 2 or 3 R d; R 6 is selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and -C(=O)-C 2-6 alkenyl, wherein the C 1 - 6 alkyl and -C(=O)-C 2-6 alkenyl are optionally substituted with 1, 2 or 3 Re; R 7 is selected from H, F, Cl, Br, I, OH, NH 2 and C 1 - 6 alkyl, wherein the NH 2 and C 1 - 6 alkyl are optionally substituted with 1, 2 or 3 Rf; R 8 is selected from H, F, Cl, Br, I and C 1 - 6 alkyl, wherein the C 1 - 6 alkyl is optionally substituted with 1, 2 or 3 R g; R 9 and R 10 are each independently selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and C 1 - 3 alkoxy, wherein the C 1 - 6 alkyl and C 1 - 3 alkoxy are optionally substituted with 1, 2 or 3 R h; R a, R b and R c are each independently selected from F, Cl, Br, I, OH and NH 2; R d is each independently selected from F, Cl, Br, I, OH, NH 2 and C 1 - 3 alkyl, wherein the C 1 - 3 alkyl is optionally substituted with 1, 2 or 3 R; R e, R f, R g and R h are each independently selected from F, Cl, Br, I, OH, NH 2, C 1 - 3 alkyl and C 1 - 3 alkoxy, wherein the C 1 - 3 alkyl and C 1 - 3 alkoxy are optionally substituted with 1, 2 or 3 R; R is each independently selected from F, Cl, Br, I, OH, NH 2, CH 3, Et and -OCH 3. m is 0, 1 or 2; n is 0, 1 or 2; Ti is selected from N and CH; Di is selected from O, N(R 6) and C(R 7)(R 8); R 1 is independently selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and C 1 - 6 alkoxy, wherein the C 1 - 6 alkyl and C 1 - 6 alkoxy are optionally substituted with 1, 2 or 3 R a; R 2 is each independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1 - 6 alkyl, wherein the C 1 - 6 alkyl is optionally substituted with 1, 2 or 3 R b; or R 1 and R 2 are attached to each other to form -(CH 2) p -, where both m and n are 1; R 3 and R 4 are each independently selected from H, F, Cl, Br, I, OH, NH 2 and C 1 - 6 alkyl, wherein the C 1 - 6 alkyl is optionally substituted with 1, 2 or 3 R c; or R 3 and R 4 are attached to each other to form -(CH 2) q -; p is 1 or 2; q is 1 or 2; R 51, R 52, R 53 and R 54 are each independently selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and C 1 - 3 alkoxy, wherein the C 1 - 6 alkyl and C 1 - 3 alkoxy are optionally substituted with 1, 2 or 3 R d; R 6 is selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and -C(=O)-C 2-6 alkenyl, wherein the C 1 - 6 alkyl and -C(=O)-C 2-6 alkenyl are optionally substituted with 1, 2 or 3 Re; R 7 is selected from H, F, Cl, Br, I, OH, NH 2 and C 1 - 6 alkyl, wherein the NH 2 and C 1 - 6 alkyl are optionally substituted with 1, 2 or 3 Rf; R 8 is selected from H, F, Cl, Br, I and C 1 - 6 alkyl, wherein the C 1 - 6 alkyl is optionally substituted with 1, 2 or 3 R g; R 9 and R 10 are each independently selected from H, F, Cl, Br, I, OH, NH 2, C 1 - 6 alkyl and C 1 - 3 alkoxy, wherein the C 1 - 6 alkyl and C 1 - 3 alkoxy are optionally substituted with 1, 2 or 3 R h; R a, R b and R c are each independently selected from F, Cl, Br, I, OH and NH 2; R d is each independently selected from F, Cl, Br, I, OH, NH 2 and C 1 - 3 alkyl, wherein the C 1 - 3 alkyl is optionally substituted with 1, 2 or 3 R; R e, R f, R g and R h are each independently selected from F, Cl, Br, I, OH, NH 2, C 1 - 3 alkyl and C 1 - 3 alkoxy, wherein the C 1 - 3 alkyl and C 1 - 3 alkoxy are optionally substituted with 1, 2 or 3 R; R is each independently selected from F, Cl, Br, I, OH, NH 2, CH 3, Et and -OCH 3.