SyncBatchTask.php 802 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Services\DocWaveHeaderService;
  4. use Illuminate\Console\Command;
  5. class SyncBatchTask extends Command
  6. {
  7. /**
  8. * @var string
  9. */
  10. protected $signature = 'sync:batch';
  11. /**
  12. * @var string
  13. */
  14. protected $description = 'sync wms batch task';
  15. /**
  16. * @return void
  17. */
  18. public function __construct()
  19. {
  20. parent::__construct();
  21. }
  22. /**
  23. * Execute the console command.
  24. *
  25. * @return void
  26. */
  27. public function handle()
  28. {
  29. /** @var DocWaveHeaderService $service */
  30. $service = app(DocWaveHeaderService::class);
  31. $date = $service->getSyncDate();
  32. $flux = $service->get(["edittime"=>$date],["edittime"=>"gtOrEqual"]);
  33. if (!$flux)return;
  34. }
  35. }