Groundwater is the main source of water for agriculture, industry, and families in arid areas. At present, there is an urgent need to protect groundwater due to human activities. In this study, the Qingshui River Basin was selected as the study area. Based on the DRASTIC model, the DRASTIC-Land use type (DRASTICL) model and the analytic hierarchy process-DRASTICL (AHP-DRASTICL) model were constructed by optimizing the indicators and weights. And the three models were applied to calculate the groundwater vulnerability index (GVI), and the groundwater vulnerability map (GVM) was drawn. The validation results of Spearman correlation coefficient show that the DRASTICL model and the AHP-DRASTICL model have higher correlation, which indicates that the optimized model is more accurate. Among them, the AHP-DRASTICL model has the highest correlation coefficient (ρ = 0.92), which is more in line with the actual situation. The results of this study can provide scientific guidance for the protection and utilization of groundwater in the Qingshui River Basin. And it is of guiding significance for the study of groundwater vulnerability, especially for groundwater management in arid and semi-arid areas.