A condensed ring derivative having a structure of formula II-1 or IV-1, a tautomer, a mesomer, a racemate, an enantiomer, a diastereoisomer, or a pharmaceutically acceptable salt thereof, M is H, D or a pharmaceutically acceptable cation; U is X 1 is CH or N; X 2 is N; X 9 is C or N; Y is CH or N; each of X 7 and X 8 is independently CH or S; each of R 1 and R 2 is independently H, D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl or a heterocycloalkyl; or, R 1, R 2 together with the carbon atom attached form a cycloalkyl or a heterocyclic group; the alkyl, the alkoxy, the cycloalkyl, the alkenyl, the alkynyl, the heterocycloalkyl, the cycloalkyl formed by R 1, R 2 and the carbon atom attached, or the heteroalkyl formed by R 1, R 2 and the carbon atom attached can further be substituted by a substituent selected from the group consisting of D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl or an aryl; R 4 is an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl, each of which are substituted by a substituent selected from the group consisting of an aryl, an aryl substituted by a halogen and/or CN, a heteroaryl or a heteroaryl substituted by CN; or an aryl or a heteroaryl wherein the aryl or the heteroaryl can further be substituted by a substituent selected from the group consisting of D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl, an aryl, an aryl substituted by a halogen and/or CN, a heteroaryl or a heteroaryl substituted by CN; each of R 5 and R 6 is independently H, D, OH, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl or a heterocycloalkyl; or R 5, R 6 together with the carbon atom attached form a cycloalkyl or a heterocyclic group; the alkyl, the alkoxy, the cycloalkyl, the alkenyl, the alkynyl, the heterocycloalkyl, the cycloalkyl formed by R 5, R 6 together with the carbon atom attached or the heterocyclic group formed by R 5, R 6 together with the carbon atom attached can further be substituted by a substituent selected from the group consisting of D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl or an aryl; n is 0, 1 or 2. M is H, D or a pharmaceutically acceptable cation; U is X 1 is CH or N; X 2 is N; X 9 is C or N; Y is CH or N; each of X 7 and X 8 is independently CH or S; each of R 1 and R 2 is independently H, D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl or a heterocycloalkyl; or, R 1, R 2 together with the carbon atom attached form a cycloalkyl or a heterocyclic group; the alkyl, the alkoxy, the cycloalkyl, the alkenyl, the alkynyl, the heterocycloalkyl, the cycloalkyl formed by R 1, R 2 and the carbon atom attached, or the heteroalkyl formed by R 1, R 2 and the carbon atom attached can further be substituted by a substituent selected from the group consisting of D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl or an aryl; R 4 is an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl, each of which are substituted by a substituent selected from the group consisting of an aryl, an aryl substituted by a halogen and/or CN, a heteroaryl or a heteroaryl substituted by CN; or an aryl or a heteroaryl wherein the aryl or the heteroaryl can further be substituted by a substituent selected from the group consisting of D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl, an aryl, an aryl substituted by a halogen and/or CN, a heteroaryl or a heteroaryl substituted by CN; each of R 5 and R 6 is independently H, D, OH, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl or a heterocycloalkyl; or R 5, R 6 together with the carbon atom attached form a cycloalkyl or a heterocyclic group; the alkyl, the alkoxy, the cycloalkyl, the alkenyl, the alkynyl, the heterocycloalkyl, the cycloalkyl formed by R 5, R 6 together with the carbon atom attached or the heterocyclic group formed by R 5, R 6 together with the carbon atom attached can further be substituted by a substituent selected from the group consisting of D, a halogen, CN, an alkyl, an alkoxy, a cycloalkyl, an alkenyl, an alkynyl, a heterocycloalkyl or an aryl; n is 0, 1 or 2.