正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -66,6 +66,7 @@ class AfterDayCount extends Command | @@ -66,6 +66,7 @@ class AfterDayCount extends Command | ||
| 66 | // $projectIdArr = $rankDataLogModel->selectField(['is_compliance'=>1,'lang'=>'','date'=>date('Y-m-d', strtotime('-3 months'))],'project_id');//3个月前达标的项目id | 66 | // $projectIdArr = $rankDataLogModel->selectField(['is_compliance'=>1,'lang'=>'','date'=>date('Y-m-d', strtotime('-3 months'))],'project_id');//3个月前达标的项目id |
| 67 | foreach ($this->after_manager as $key => $valM){ | 67 | foreach ($this->after_manager as $key => $valM){ |
| 68 | $idArr = $this->managerHrModel->selectField(['name'=>['in',$valM]],'id'); | 68 | $idArr = $this->managerHrModel->selectField(['name'=>['in',$valM]],'id'); |
| 69 | + echo '对应优化师id:'.json_encode($idArr).PHP_EOL; | ||
| 69 | $project_count = $projectModel->where('gl_project.extend_type',0) | 70 | $project_count = $projectModel->where('gl_project.extend_type',0) |
| 70 | ->where('gl_project.delete_status',0) | 71 | ->where('gl_project.delete_status',0) |
| 71 | ->where('gl_project.old_project_id',0) | 72 | ->where('gl_project.old_project_id',0) |
| @@ -91,6 +92,7 @@ class AfterDayCount extends Command | @@ -91,6 +92,7 @@ class AfterDayCount extends Command | ||
| 91 | ->count(); | 92 | ->count(); |
| 92 | $rate = number_format($qualified_count / $project_count, 2); | 93 | $rate = number_format($qualified_count / $project_count, 2); |
| 93 | $threeMonthsAgo = date('Y-m', strtotime('-3 months')); | 94 | $threeMonthsAgo = date('Y-m', strtotime('-3 months')); |
| 95 | + echo '3个月前的时间:'.$threeMonthsAgo.PHP_EOL; | ||
| 94 | $three_project_count = $projectModel->where('gl_project.extend_type',0) | 96 | $three_project_count = $projectModel->where('gl_project.extend_type',0) |
| 95 | ->where('gl_project.delete_status',0) | 97 | ->where('gl_project.delete_status',0) |
| 96 | ->where('gl_project.old_project_id',0) | 98 | ->where('gl_project.old_project_id',0) |
-
请 注册 或 登录 后发表评论