EndReceivingTask.php 818 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Services\ReceivingTaskService;
  4. use Carbon\Carbon;
  5. use Illuminate\Console\Command;
  6. class EndReceivingTask extends Command
  7. {
  8. /**
  9. * The name and signature of the console command.
  10. *
  11. * @var string
  12. */
  13. protected $signature = 'receivingTask:batchEnd';
  14. /**
  15. * The console command description.
  16. *
  17. * @var string
  18. */
  19. protected $description = '延时完结 入库开单任务';
  20. /**
  21. * Create a new command instance.
  22. *
  23. * @return void
  24. */
  25. public function __construct()
  26. {
  27. parent::__construct();
  28. }
  29. public function handle()
  30. {
  31. /** @var ReceivingTaskService $service */
  32. $service = app(ReceivingTaskService::class);
  33. $service->overtimeToCompleteTask();
  34. }
  35. }