|
...
|
...
|
@@ -90,12 +90,12 @@ class AfterDayCount extends Command |
|
|
|
->whereRaw("FIND_IN_SET('7', gl_project_deploy_optimize.special) = 0 AND FIND_IN_SET('8', gl_project_deploy_optimize.special) = 0")
|
|
|
|
->count();
|
|
|
|
$rate = number_format($qualified_count / $project_count, 2);
|
|
|
|
$threeMonthsAgo = date('Y-m-d', strtotime('-3 months'));
|
|
|
|
$threeMonthsAgo = date('Y-m', strtotime('-3 months'));
|
|
|
|
$three_project_count = $projectModel->where('gl_project.extend_type',0)
|
|
|
|
->where('gl_project.delete_status',0)
|
|
|
|
->where('gl_project.old_project_id',0)
|
|
|
|
->where('gl_project.created_at','>=',$threeMonthsAgo.' 00:00:00')
|
|
|
|
->where('gl_project.created_at','<=',$threeMonthsAgo.' 23:59:59')
|
|
|
|
->where('gl_project.created_at','>=',$threeMonthsAgo.'-01 00:00:00')
|
|
|
|
->where('gl_project.created_at','<=',$threeMonthsAgo.'-31 23:59:59')
|
|
|
|
->whereIn('gl_project_deploy_optimize.optimist_mid',$idArr)
|
|
|
|
->whereIn('gl_project.type',[2,4])
|
|
|
|
->leftJoin('gl_project_deploy_optimize', 'gl_project.id', '=', 'gl_project_deploy_optimize.project_id')
|
|
...
|
...
|
@@ -106,8 +106,8 @@ class AfterDayCount extends Command |
|
|
|
->whereIn('gl_project.id',$projectIdArr)
|
|
|
|
->where('gl_project.delete_status',0)
|
|
|
|
->where('gl_project.old_project_id',0)
|
|
|
|
->where('gl_project.created_at','>=',$threeMonthsAgo.' 00:00:00')
|
|
|
|
->where('gl_project.created_at','<=',$threeMonthsAgo.' 23:59:59')
|
|
|
|
->where('gl_project.created_at','>=',$threeMonthsAgo.'-01 00:00:00')
|
|
|
|
->where('gl_project.created_at','<=',$threeMonthsAgo.'-31 23:59:59')
|
|
|
|
->whereIn('gl_project_deploy_optimize.optimist_mid',$idArr)
|
|
|
|
->whereIn('gl_project.type',[2,4])
|
|
|
|
->where('gl_project_deploy_build.plan','!=',0)
|
...
|
...
|
|