@ -36,7 +36,7 @@ class ResetLongTermVisitsCommand extends Command
// 查找长期拜访预约(long_time = 1)且在有效期内(start_date <= 今天 <= end_date)
$longTermVisits = Visit::where('start_date', '<=', $today)
->where('end_date', '>=', $today)
->where('end_date', '>', $today)
// 3已进厂4已离厂
->whereIn('audit_status', [3, 4])
->get();