|
...
|
...
|
@@ -23,7 +23,7 @@ class UpgradeProjectCount extends Command |
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $signature = 'upgrade_count';
|
|
|
|
protected $signature = 'upgrade_count {project_id}';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
...
|
...
|
@@ -33,7 +33,7 @@ class UpgradeProjectCount extends Command |
|
|
|
protected $description = '升级项目统计';
|
|
|
|
|
|
|
|
public function handle(){
|
|
|
|
$project_id = 769;
|
|
|
|
$project_id = $this->argument('project_id');
|
|
|
|
ProjectServer::useProject($project_id);
|
|
|
|
$this->count($project_id);
|
|
|
|
DB::disconnect('custom_mysql');
|
|
...
|
...
|
@@ -100,7 +100,8 @@ class UpgradeProjectCount extends Command |
|
|
|
* @time :2023/6/14 15:40
|
|
|
|
*/
|
|
|
|
public function pv_num($day){
|
|
|
|
$pv = DB::connection('custom_mysql')->table('gl_customer_visit_item')->whereDate('updated_date', $day)->count();
|
|
|
|
//$pv = DB::connection('custom_mysql')->table('gl_customer_visit_item')->whereDate('updated_date', $day)->count();
|
|
|
|
$pv = DB::connection('custom_mysql')->table('gl_customer_visit')->whereDate('updated_date', $day)->sum('depth');
|
|
|
|
return $pv;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|