Logistic regression analysis showed G6PD, triglyceride, cholesterol, IL-8, TNF-α, and macular edema were influencing factors for T2DM with DR. The gene discussed is TNF; the disease is type 2 diabetes mellitus.