-- 检查线上督学数据
-- 日期：2026-01-31

-- 1. 检查teacher表中是否有不同level的教师
SELECT 
    teacher_level,
    COUNT(*) as count,
    GROUP_CONCAT(DISTINCT name SEPARATOR ', ') as teacher_names
FROM teacher
WHERE audit_status = 1  -- 已审核通过
GROUP BY teacher_level;

-- 2. 检查每个level的详细信息
SELECT 
    id,
    name,
    teacher_level,
    subjects,
    education,
    hourly_rate,
    rating,
    photo,
    intro
FROM teacher
WHERE audit_status = 1
ORDER BY teacher_level, id
LIMIT 20;

-- 3. 检查是否有xueba级别的教师
SELECT COUNT(*) as xueba_count
FROM teacher
WHERE audit_status = 1 AND teacher_level = 'xueba';

-- 4. 检查是否有mingshi级别的教师
SELECT COUNT(*) as mingshi_count
FROM teacher
WHERE audit_status = 1 AND teacher_level = 'mingshi';

-- 5. 检查是否有quanke级别的教师
SELECT COUNT(*) as quanke_count
FROM teacher
WHERE audit_status = 1 AND teacher_level = 'quanke';

-- 6. 检查是否有yishu级别的教师
SELECT COUNT(*) as yishu_count
FROM teacher
WHERE audit_status = 1 AND teacher_level = 'yishu';
