Substituted pyrimidine compound and uses thereof