-- 检查医生1在2026-03-06的排班数据 SELECT id, doctor_id, date, period, status, quota, create_time, update_time FROM zyt_doctor_roster WHERE doctor_id = 1 AND date = '2026-03-06' ORDER BY period; -- 期望结果: -- 应该只有一条记录:period='morning' 或 'morning' 或 '上午' 或 1, status=1 -- 不应该有 period='afternoon' 或 'afternoon' 或 '下午' 或 2 的记录,或者如果有,status应该不是1