改进 查询
This commit is contained in:
parent
3f03d13d2f
commit
85d5a9186a
@ -26,7 +26,7 @@ class WorkOrder implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function __construct(WorkOrderModel $workOrder, $type = 'post')
|
public function __construct(WorkOrderModel $workOrder, $type = 'post')
|
||||||
{
|
{
|
||||||
$this->workOrder = $workOrder->load(['module']);
|
$this->workOrder = $workOrder;
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,6 +39,8 @@ public function handle(): void
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->workOrder->load(['module']);
|
||||||
|
|
||||||
if ($this->workOrder->status === 'error' && $this->type !== 'delete') {
|
if ($this->workOrder->status === 'error' && $this->type !== 'delete') {
|
||||||
$this->type = 'post';
|
$this->type = 'post';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user