The present invention belongs to the field of medical technology. Particularly, the present invention relates to a compound shown in formula (I), a pharmaceutically acceptable salt thereof, and a stereoisomer of the same. X, Y, Z, R1, R2, R3, R1a, R2a, m, and n are as defined in the specification. The present invention also relates to pharmaceutical preparations and pharmaceutical compositions of these compounds and a use thereof in preparing a drug for treating a related disease mediated by abnormal indoleamine 2,3-dioxygenase (IDO).