作者 lyh

gx售后数据统计

... ... @@ -66,6 +66,7 @@ class AfterDayCount extends Command
// $projectIdArr = $rankDataLogModel->selectField(['is_compliance'=>1,'lang'=>'','date'=>date('Y-m-d', strtotime('-3 months'))],'project_id');//3个月前达标的项目id
foreach ($this->after_manager as $key => $valM){
$idArr = $this->managerHrModel->selectField(['name'=>['in',$valM]],'id');
echo '对应优化师id:'.json_encode($idArr).PHP_EOL;
$project_count = $projectModel->where('gl_project.extend_type',0)
->where('gl_project.delete_status',0)
->where('gl_project.old_project_id',0)
... ... @@ -91,6 +92,7 @@ class AfterDayCount extends Command
->count();
$rate = number_format($qualified_count / $project_count, 2);
$threeMonthsAgo = date('Y-m', strtotime('-3 months'));
echo '3个月前的时间:'.$threeMonthsAgo.PHP_EOL;
$three_project_count = $projectModel->where('gl_project.extend_type',0)
->where('gl_project.delete_status',0)
->where('gl_project.old_project_id',0)
... ...