12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App\Console\Commands\ProductStats;
- use App\Modules\Statistic\Services\ProductionStatsEmailService;
- use Illuminate\Console\Command;
- class DailyProductionStats extends Command
- {
- /**
- * The name and signature of the console command.
- *
- * @var string
- */
- protected $signature = 'saveDailyProductsStats';
- /**
- * 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()
- {
- //
- $from_date = date('Y-m-d 00:00:00',strtotime('-1 day'));
- $end_date = date('Y-m-d 23:59:59',strtotime('-1 day'));
- //ProductionStatsEmailService::setDayStats($from_date,$end_date);
- ProductionStatsEmailService::setDayStatsNew($from_date,$end_date);
- }
- }
|