Zhou Mingxuan, a history student, accidentally dreamed of traveling back to the Qianlong period and became Wang Yanqing, a scholar from a poor family. From the imperial examination room to the ups and downs of the officialdom, he relied on modern thinking to solve strange cases repeatedly: uncovering salt fraud in the child examination, solving river engineering corruption when he was appointed magistrate, and thoroughly investigating the mysterious case of military pay during his tenure as magistrate. As his official position rose, he discovered that each case was connected to his grandfather's injustice twenty years ago. When dreams and reality began to overlap, the historical data in his hands actually predicted the next murder...