The present invention relates to a heteroarylthiadiazine-2,2-dioxide derivative, a preparation method and a pharmaceutical use thereof. In particular, the present invention relates to a heteroarylthiadiazine-2,2-dioxide derivative as shown by general formula (I), the preparation method thereof and a pharmaceutical composition containing same, and the use thereof as a therapeutic agent. Particularly the use as an TLR7 receptor antagonist. The definition of each substituent of the general formula (I) is the same as that in the description.本發明涉及雜芳基並噻二嗪-2,2-二氧化物類衍生物、其製備方法及其在醫藥上的應用。具體而言,本發明涉及一種通式(I)所示新的雜芳基並噻二嗪-2,2-二氧化物類衍生物、其製備方法及含有該衍生物的醫藥組成物以及其作為治療劑,特別是作為TLR7激動劑的用途,其中通式(I)的各取代基與說明書中的定義相同。