TmpUpdateStatusJob.php 692 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\Jobs;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Queue\SerializesModels;
  5. use Illuminate\Queue\InteractsWithQueue;
  6. use Illuminate\Contracts\Queue\ShouldQueue;
  7. use Yunshop\SingleReturn\models\ReturnSingleTmp;
  8. class TmpUpdateStatusJob implements ShouldQueue
  9. {
  10. use InteractsWithQueue, Queueable, SerializesModels;
  11. protected $tmpId;
  12. /**
  13. * Create a new job instance.
  14. *
  15. * @return void
  16. */
  17. public function __construct($tmpId)
  18. {
  19. $this->tmpId = $tmpId;
  20. }
  21. /**
  22. * Execute the job.
  23. *
  24. * @return void
  25. */
  26. public function handle()
  27. {
  28. ReturnSingleTmp::updateStatusById($this->tmpId,1);
  29. }
  30. }