fix: 任务第二次邮件提醒判断错误修改

This commit is contained in:
韦荣超 2022-03-08 12:25:36 +08:00
parent b610dc4969
commit 0f6408d7f6

View File

@ -34,8 +34,8 @@ class OverdueRemindEmailTask extends AbstractTask
} }
if ($hours2 > 0) { if ($hours2 > 0) {
$taskLists2 = ProjectTask::whereNull('complete_at') $taskLists2 = ProjectTask::whereNull('complete_at')
->where('end_at', '>=', Carbon::now()->subMinutes($hours2 * 60 - 3)->rawFormat('Y-m-d H:i:s')) ->where('end_at', '>=', Carbon::now()->subMinutes($hours2 * 60 + 3)->rawFormat('Y-m-d H:i:s'))
->where('end_at', '<=', Carbon::now()->subMinutes($hours * 60 + 3)->rawFormat('Y-m-d H:i:s')) ->where('end_at', '<=', Carbon::now()->subMinutes($hours2 * 60 - 3)->rawFormat('Y-m-d H:i:s'))
->whereNull('archived_at') ->whereNull('archived_at')
->take(100) ->take(100)
->get() ->get()