RNFL and GCL thickness were significantly lower in the DR/DN group than in the DR group (P<0.05); history of hypertension (OR=2.759), NLR (OR=1.316), PLR (OR=1.009), Crea (OR=1.018), UA (OR=1.004), CYS-C (OR=3.742) were the independent (OR=0.951), age (OR=0.951), HGB (OR=0.976), RNFL (OR=0.909) and GCL (OR=0.945) were independent protective factors for DR/DN; RNFL (OR=0.899) and GCL (OR=0.935) were independent protective factors for NPDR/DN, RNFL (OR=0.852) and GCL (OR=0.928) were independent protective factors for PDR/DN. The gene discussed is CYGB; the disease is hypertensive disorder.