28 lines
754 B
PHP
28 lines
754 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use Modules\EcommerceFinance\Services\Jushuitan\ShippingReplicaSynchronizer;
|
|
|
|
/**
|
|
* 一次性:全表扫描,仅删除同订单、同发货日有干净单号对应的 @ 包裹。
|
|
* php artisan jst:dedup-at
|
|
*/
|
|
class DedupAt extends Command
|
|
{
|
|
protected $signature = 'jst:dedup-at';
|
|
|
|
protected $description = '去除同订单、同发货日且有干净单号对应的 @ 包裹';
|
|
|
|
public function handle(): int
|
|
{
|
|
@ini_set('memory_limit', '1024M');
|
|
@set_time_limit(0);
|
|
$removed = ShippingReplicaSynchronizer::make()->dedupAtPrefix();
|
|
$this->info('去除@重复单号:' . $removed . ' 条');
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|