2022-08-08 16:00:47 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
2022-11-04 15:01:55 +08:00
|
|
|
use App\Events\StockUpdateEvent;
|
2023-04-20 20:43:49 +08:00
|
|
|
use App\Exports\DiffTodayPriceGoodsExport;
|
2022-11-04 15:01:55 +08:00
|
|
|
use App\Models\BusinessGoodsSku;
|
2023-04-04 19:06:15 +08:00
|
|
|
use App\Models\BusinessOrder;
|
2022-08-24 18:09:34 +08:00
|
|
|
use App\Models\GoodsSku;
|
2023-04-17 18:56:59 +08:00
|
|
|
use App\Models\GoodsType;
|
2022-09-14 13:49:47 +08:00
|
|
|
use App\Models\Log;
|
2022-08-08 16:00:47 +08:00
|
|
|
use App\Models\Shop;
|
2023-04-20 20:43:49 +08:00
|
|
|
use App\Models\TodayPrice;
|
2022-08-08 16:00:47 +08:00
|
|
|
use App\Services\Business\BusinessFactory;
|
2023-04-26 18:16:17 +08:00
|
|
|
use App\Services\Business\KuaiTuanTuan\FaceSheet;
|
2022-08-09 10:34:36 +08:00
|
|
|
use App\Utils\DateTimeUtils;
|
2022-08-08 16:00:47 +08:00
|
|
|
use Illuminate\Console\Command;
|
2022-09-08 01:02:07 +08:00
|
|
|
use Illuminate\Support\Facades\DB;
|
2022-11-04 15:01:55 +08:00
|
|
|
use App\Jobs\BusinessGoodsSkuIncrQuantity;
|
2023-04-17 18:56:59 +08:00
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
2023-04-20 20:43:49 +08:00
|
|
|
use Maatwebsite\Excel\Facades\Excel;
|
2022-08-08 16:00:47 +08:00
|
|
|
|
|
|
|
|
class Test extends Command
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The name and signature of the console command.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $signature = 'test';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The console command description.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $description = '测试';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new command instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Execute the console command.
|
|
|
|
|
*
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public function handle()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|