A compound represented by formula (I), or a stereoisomer or a pharmaceutically acceptable salt thereof, wherein R 1 is selected from the group consisting of H, CN, COOH, and , or is selected from the group consisting of C 1-3 alkyl, C 1-3 alkyl-O-C 1-3 alkyl-, C 1-3 alkyl-C(=O)NH-, and C 3-6 cycloalkyl, each of which is optionally substituted by 1, 2 or 3 R; R 2 is each independently selected from the group consisting of H, F, Cl, Br, I, OH, NH 2 , and CN, or is independently selected from the group consisting of C 3-6 cycloalkyl, C 1-6 alkyl or C 1-6 heteroalkyl, each of which is optionally substituted by 1, 2 or 3 R; R 3 is each independently selected from the group consisting of H, F, Cl, Br, I, OH, NH 2 , and CN, or is independently selected from the group consisting of C 1-6 alkyl or C 1-6 heteroalkyl, each of which is optionally substituted by 1, 2 or 3 R; n is 0, 1, 2 or 3; m is 0, 1, 2 or 3; ring A is selected from the group consisting of 6- to 10-membered aryl, 5- to 10-membered heteroaryl, 5- to 10-membered heterocycloalkyl and 5- to 10-membered heterocycloalkenyl; ring B is selected from the group consisting of phenyl and 5- to 6-membered heteroaryl; R is selected from the group consisting of F, Cl, Br, I, OH, NH 2 , and CN, or is selected from the group consisting of C 1-3 alkyl, C 1-3 alkylamino, C 1-3 alkoxy, C 3-6 cycloalkyl, C 3-6 cycloalkyl-NH-, 3- to 6-membered heterocycloalkyl, 3- to 6-membered heterocycloalkyl-O-, and phenyl, each of which is optionally substituted by 1, 2 or 3 R'; R' is selected from the group consisting of F, Cl, Br, I, OH, NH 2 , Me, and ; the heteroatom or the heteroatom group of the C 1-6 heteroalkyl, 5- to 10-membered heteroaryl, 5- to 10-membered heterocycloalkyl, 3- to 6-membered heterocycloalkyl and 5- to 10-membered heterocycloalkenyl is each independently selected from the group consisting of N, O, S, NH, -C(=O)-, -C(=O)O- and -C(=O)NH-; the number of the heteroatom or the heteroatom group is each independently 1, 2, 3 or 4. R 1 is selected from the group consisting of H, CN, COOH, and , or is selected from the group consisting of C 1-3 alkyl, C 1-3 alkyl-O-C 1-3 alkyl-, C 1-3 alkyl-C(=O)NH-, and C 3-6 cycloalkyl, each of which is optionally substituted by 1, 2 or 3 R; R 2 is each independently selected from the group consisting of H, F, Cl, Br, I, OH, NH 2 , and CN, or is independently selected from the group consisting of C 3-6 cycloalkyl, C 1-6 alkyl or C 1-6 heteroalkyl, each of which is optionally substituted by 1, 2 or 3 R; R 3 is each independently selected from the group consisting of H, F, Cl, Br, I, OH, NH 2 , and CN, or is independently selected from the group consisting of C 1-6 alkyl or C 1-6 heteroalkyl, each of which is optionally substituted by 1, 2 or 3 R; n is 0, 1, 2 or 3; m is 0, 1, 2 or 3; ring A is selected from the group consisting of 6- to 10-membered aryl, 5- to 10-membered heteroaryl, 5- to 10-membered heterocycloalkyl and 5- to 10-membered heterocycloalkenyl; ring B is selected from the group consisting of phenyl and 5- to 6-membered heteroaryl; R is selected from the group consisting of F, Cl, Br, I, OH, NH 2 , and CN, or is selected from the group consisting of C 1-3 alkyl, C 1-3 alkylamino, C 1-3 alkoxy, C 3-6 cycloalkyl, C 3-6 cycloalkyl-NH-, 3- to 6-membered heterocycloalkyl, 3- to 6-membered heterocycloalkyl-O-, and phenyl, each of which is optionally substituted by 1, 2 or 3 R'; R' is selected from the group consisting of F, Cl, Br, I, OH, NH 2 , Me, and ; the heteroatom or the heteroatom group of the C 1-6 heteroalkyl, 5- to 10-membered heteroaryl, 5- to 10-membered heterocycloalkyl, 3- to 6-membered heterocycloalkyl and 5- to 10-membered heterocycloalkenyl is each independently selected from the group consisting of N, O, S, NH, -C(=O)-, -C(=O)O- and -C(=O)NH-; the number of the heteroatom or the heteroatom group is each independently 1, 2, 3 or 4. <EOS>