改进 关闭工单 无论什么情况

This commit is contained in:
iVampireSP.com 2022-12-31 19:30:24 +08:00
parent 8938bf6526
commit 119e6a5a95
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -23,7 +23,7 @@ public function __construct()
*/
public function handle(): void
{
// closed replied after 1 day
WorkOrder::where('status', 'replied')->where('updated_at', '<=', now()->subDay())->update(['status' => 'closed']);
// close work order after 1 day
WorkOrder::where('updated_at', '<=', now()->subDay())->update(['status' => 'closed']);
}
}