| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace App\Console\Commands;
- use App\Services\ReceivingTaskService;
- use Carbon\Carbon;
- use Illuminate\Console\Command;
- class EndReceivingTask extends Command
- {
- /**
- * The name and signature of the console command.
- *
- * @var string
- */
- protected $signature = 'receivingTask:batchEnd';
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = '延时完结 入库开单任务';
- /**
- * Create a new command instance.
- *
- * @return void
- */
- public function __construct()
- {
- parent::__construct();
- }
- public function handle()
- {
- /** @var ReceivingTaskService $service */
- $service = app(ReceivingTaskService::class);
- $service->overtimeToCompleteTask();
- }
- }
|