优化 工单

This commit is contained in:
iVampireSP.com 2022-12-31 19:28:21 +08:00
parent 6131da2cf5
commit 8938bf6526
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
6 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ public function __construct()
*
* @return void
*/
public function handle()
public function handle(): void
{
// 获取运行完成的时间

View File

@ -34,7 +34,7 @@ public function __construct($host, $type = 'post')
*
* @return void
*/
public function handle()
public function handle(): void
{
//

View File

@ -29,7 +29,7 @@ public function __construct()
*
* @return void
*/
public function handle()
public function handle(): void
{
//
Host::whereIn('status', ['pending', 'error'])->with(['module', 'user'])->chunk(100, function ($hosts) {

View File

@ -31,7 +31,7 @@ public function __construct()
*
* @return void
*/
public function handle()
public function handle(): void
{
//
WorkOrder::whereIn('status', ['pending', 'error'])->with(['module', 'user', 'host', 'replies'])->chunk(100, function ($workOrders) {

View File

@ -15,7 +15,7 @@ class Reply implements ShouldQueue
{
use InteractsWithQueue, Queueable, SerializesModels;
protected $reply;
protected WorkOrderReply $reply;
/**
* Create a new job instance.
@ -33,7 +33,7 @@ public function __construct(WorkOrderReply $reply)
*
* @return void
*/
public function handle()
public function handle(): void
{
//
$this->reply->load(['workOrder', 'user']);

View File

@ -34,7 +34,7 @@ public function __construct(WorkOrderWorkOrder $workOrder, $type = 'post')
*
* @return void
*/
public function handle()
public function handle(): void
{
$this->workOrder->load(['module']);