优化 工单
This commit is contained in:
parent
6131da2cf5
commit
8938bf6526
@ -31,7 +31,7 @@ public function __construct()
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle(): void
|
||||||
{
|
{
|
||||||
// 获取运行完成的时间
|
// 获取运行完成的时间
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public function __construct($host, $type = 'post')
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle(): void
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ public function __construct()
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle(): void
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
Host::whereIn('status', ['pending', 'error'])->with(['module', 'user'])->chunk(100, function ($hosts) {
|
Host::whereIn('status', ['pending', 'error'])->with(['module', 'user'])->chunk(100, function ($hosts) {
|
||||||
|
@ -31,7 +31,7 @@ public function __construct()
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle(): void
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
WorkOrder::whereIn('status', ['pending', 'error'])->with(['module', 'user', 'host', 'replies'])->chunk(100, function ($workOrders) {
|
WorkOrder::whereIn('status', ['pending', 'error'])->with(['module', 'user', 'host', 'replies'])->chunk(100, function ($workOrders) {
|
||||||
|
@ -15,7 +15,7 @@ class Reply implements ShouldQueue
|
|||||||
{
|
{
|
||||||
use InteractsWithQueue, Queueable, SerializesModels;
|
use InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
protected $reply;
|
protected WorkOrderReply $reply;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new job instance.
|
* Create a new job instance.
|
||||||
@ -33,7 +33,7 @@ public function __construct(WorkOrderReply $reply)
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle(): void
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
$this->reply->load(['workOrder', 'user']);
|
$this->reply->load(['workOrder', 'user']);
|
||||||
|
@ -34,7 +34,7 @@ public function __construct(WorkOrderWorkOrder $workOrder, $type = 'post')
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle(): void
|
||||||
{
|
{
|
||||||
$this->workOrder->load(['module']);
|
$this->workOrder->load(['module']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user