The invention provides a compound of formula (I), its stereoisomers, tautomers, medicinal salts, polymorphs and solvates, all of which are defined in the application. These compounds are inhibitors of type II monoacylglyceroyltransferase (MGAT2), which can be used as drugs.本發明提供式(I)的化合物、其立體異構體、互變異構體、藥用鹽、多晶型物、溶劑化物,其中所有變量如本申請所定義。這些化合物爲II型單酰基甘油酰基轉移酶(MGAT2)抑制劑,其可用作藥物。