master
cody 8 months ago
parent 69b1a0e4ab
commit 9fb6ac6bc0

@ -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();

Loading…
Cancel
Save