A compound having Formula or a stereoisomer, a geometric isomer, a tautomer, a hydrate, a solvate or a pharmaceutically acceptable salt thereof, wherein Het is -C(=O)NR a R b, -C(=NR)NR a R b, -NH-C(=NR)NR a R b, 3-10 membered heterocyclyl or 5-10 membered heteroaryl; wherein each of 3-10 membered heterocyclyl and 5-10 membered heteroaryl is independently and optionally substituted with H, D, oxo (=O), F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy, C 1-6 haloalkyl, carboxy and -C(=O)NH 2; R 1 is H, D, F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy or C 1-6 haloalkyl; R 2 is -OR or -NR a R b; each of R 3 and R 4 is independently H, D, C 1-6 alkyl, C 1-6 hydroxyalkyl or C 1-6 haloalkyl; L is -O-, -O-methylene-, -O-ethylene-, -S- or -NH-; R 5 is C 6-10 aryl or 5-10 membered heteroaryl, wherein each of C 6-10 aryl and 5-10 membered heteroaryl is independently and optionally substituted with 1, 2 or 3 R 6; wherein R 6 is H, D, F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, C 1-6 cyanoalkyl or C 1-6 hydroxyalkyl; W has one of the following structures: each W is optionally substituted with 1, 2, 3, 4 or 5 substituents independently selected from D, oxo(=O), F, Cl, Br, I, hydroxy, amino, nitro, cyano, -C(=O)OH, -C(=O)NH 2, -C(=NH)NH 2, -NH-C(=NH)NH 2, -SO 2 CH 3, -SO 2 C 2 H 5, methyl, ethyl, isopropyl, n-butyl, cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, trifluoromethyl, difluoromethyl, methoxy, ethoxy, isopropoxy, trifluoromethoxy, difluoromethoxy, methylamino, cyanomethyl and hydroxymethyl. wherein each R, R a and R b is independently H, D, C 1-6 alkyl, C 1-6 haloalkyl or C 3-8 cycloalkyl; or R a and R b, together with the N atom to which they are attached, form 3-10 membered heterocyclyl; wherein 3-10 membered heterocyclyl is optionally substituted with oxo(=O), D, F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy and C 1-6 haloalkyl. Het is -C(=O)NR a R b, -C(=NR)NR a R b, -NH-C(=NR)NR a R b, 3-10 membered heterocyclyl or 5-10 membered heteroaryl; wherein each of 3-10 membered heterocyclyl and 5-10 membered heteroaryl is independently and optionally substituted with H, D, oxo (=O), F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy, C 1-6 haloalkyl, carboxy and -C(=O)NH 2; R 1 is H, D, F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy or C 1-6 haloalkyl; R 2 is -OR or -NR a R b; each of R 3 and R 4 is independently H, D, C 1-6 alkyl, C 1-6 hydroxyalkyl or C 1-6 haloalkyl; L is -O-, -O-methylene-, -O-ethylene-, -S- or -NH-; R 5 is C 6-10 aryl or 5-10 membered heteroaryl, wherein each of C 6-10 aryl and 5-10 membered heteroaryl is independently and optionally substituted with 1, 2 or 3 R 6; wherein R 6 is H, D, F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy, C 1-6 haloalkyl, C 1-6 haloalkoxy, C 1-6 cyanoalkyl or C 1-6 hydroxyalkyl; W has one of the following structures: each W is optionally substituted with 1, 2, 3, 4 or 5 substituents independently selected from D, oxo(=O), F, Cl, Br, I, hydroxy, amino, nitro, cyano, -C(=O)OH, -C(=O)NH 2, -C(=NH)NH 2, -NH-C(=NH)NH 2, -SO 2 CH 3, -SO 2 C 2 H 5, methyl, ethyl, isopropyl, n-butyl, cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, trifluoromethyl, difluoromethyl, methoxy, ethoxy, isopropoxy, trifluoromethoxy, difluoromethoxy, methylamino, cyanomethyl and hydroxymethyl. wherein each R, R a and R b is independently H, D, C 1-6 alkyl, C 1-6 haloalkyl or C 3-8 cycloalkyl; or R a and R b, together with the N atom to which they are attached, form 3-10 membered heterocyclyl; wherein 3-10 membered heterocyclyl is optionally substituted with oxo(=O), D, F, Cl, Br, I, hydroxy, amino, nitro, cyano, C 1-6 alkyl, C 1-6 alkoxy and C 1-6 haloalkyl.