改进 关闭工单 无论什么情况
This commit is contained in:
parent
8938bf6526
commit
119e6a5a95
@ -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']);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user