The present invention relates to a 1,4-dihydropyridine-3,5-dicarboxylate compound of general compound (I), a process for preparing the same, a use thereof for the manufacture of a medicament for treating and/or preventing kidney injury, cardiovascular diseases and/or endocrine diseases, as well as a pharmaceutical composition and a pharmaceutical formulation containing said compounds, wherein the definitions of R1, R2, R3, R4, R5, R6, R7, R8, m, n1, n2, p and q are the same as those defined in the description.