| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace App\Jobs;
- use App\Services\WaveService;
- use App\WorkOrder;
- use Illuminate\Bus\Queueable;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Queue\SerializesModels;
- class SendPieceOwnerJob implements ShouldQueue
- {
- use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
- private $batchId;
- private $userId;
- private $warehouseId;
- private $ownerId;
- private $date;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct($batch_id,$userId, $warehouseId, $ownerId, $date)
- {
- $this->batchId = $batch_id;
- $this->userId = $userId;
- $this->warehouseId = $warehouseId;
- $this->ownerId = $ownerId;
- $this->date = $date;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- /** @var WaveService $service */
- $service = app(WaveService::class);
- $service->sendOwnerPiece($this->batchId,$this->userId,$this->warehouseId,$this->ownerId,$this->date);
- }
- }
|