|
...
|
...
|
@@ -68,6 +68,7 @@ class AfterDayCount extends Command |
|
|
|
$idArr = $this->managerHrModel->selectField(['name'=>['in',$valM]],'id');
|
|
|
|
$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','<=',$todayMidnight)
|
|
|
|
->whereIn('gl_project_deploy_optimize.optimist_mid',$idArr)
|
|
|
|
->whereIn('gl_project.type',[2,4])
|
|
...
|
...
|
@@ -77,6 +78,7 @@ class AfterDayCount extends Command |
|
|
|
->count();
|
|
|
|
$qualified_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','<=',$todayMidnight)
|
|
|
|
->where('gl_project.is_remain_today',1)
|
|
|
|
->where('gl_project_deploy_build.plan','!=',0)
|
|
...
|
...
|
@@ -91,6 +93,7 @@ class AfterDayCount extends Command |
|
|
|
$threeMonthsAgo = date('Y-m-d 00:00:00', 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)
|
|
|
|
->whereIn('gl_project_deploy_optimize.optimist_mid',$idArr)
|
|
|
|
->whereIn('gl_project.type',[2,4])
|
|
...
|
...
|
@@ -101,6 +104,7 @@ class AfterDayCount extends Command |
|
|
|
$three_qualified_count = $projectModel->where('gl_project.extend_type',0)
|
|
|
|
->whereIn('gl_project.id',$projectIdArr)
|
|
|
|
->where('gl_project.delete_status',0)
|
|
|
|
->where('gl_project.old_project_id',0)
|
|
|
|
->where('gl_project.created_at','<=',$threeMonthsAgo)
|
|
|
|
->whereIn('gl_project_deploy_optimize.optimist_mid',$idArr)
|
|
|
|
->whereIn('gl_project.type',[2,4])
|
...
|
...
|
|