The invention discloses a preparation method and bioactivity of new compounds for preventing and treating plant virus diseases (quinazoline-containing thioether substituted pentadiene ketone compounds), particularly compounds disclosed as the following general formula (I) and a preparation method thereof. The quinazoline-containing thioether substituted pentadiene ketone compounds are prepared from ortho-aminobenzoic acid, formamide, thionyl chloride, thiocarbamide, 4-hydroxybenzaldehyde, acetone, substituted aromatic aldehyde, substituted heterocyclic aldehyde and 1,2-ethylene dibromide by seven reaction steps by using 1,2-dichloroethane, ethanol and N,N-dimethylformamide as solvents and NaOH, K2CO3 and KOH as catalysts. The compounds K01, K02, K03, K04, K05, K06, K07, K09, K10, K12, K13, K15, K16, K17, K18, K19, K20, K21, K23 and K27 have favorable anti-plant virus activity (I).