Study on Prevention and Control Measures of Water–Sand Inrushes Based on Adaptive Adjustment of Mined Thickness