|
...
|
...
|
@@ -61,6 +61,7 @@ class ProjectController extends BaseController |
|
|
|
->leftJoin('gl_project_deploy_optimize', 'gl_project.id', '=', 'gl_project_deploy_optimize.project_id')
|
|
|
|
->leftJoin('gl_project_online_check', 'gl_project.id', '=', 'gl_project_online_check.project_id')
|
|
|
|
->leftJoin('gl_web_setting_template', 'gl_project.id', '=', 'gl_web_setting_template.project_id')
|
|
|
|
->leftJoin('gl_project_association', 'gl_project.id', '=', 'gl_project_association.project_id')
|
|
|
|
->where('gl_project.delete_status',Project::TYPE_ZERO);
|
|
|
|
$query = $this->searchParam($query);
|
|
|
|
$query = $this->orderByList($query);
|
|
...
|
...
|
@@ -295,6 +296,16 @@ class ProjectController extends BaseController |
|
|
|
if(isset($this->map['plan'])){
|
|
|
|
$query = $query->where('gl_project_deploy_build.plan',$this->map['plan']);
|
|
|
|
}
|
|
|
|
if(isset($this->map['friend_id'])){
|
|
|
|
if($this->map['friend_id'] == 1){
|
|
|
|
$query = $query->where('gl_project_association.friend_id', '!=', 0);
|
|
|
|
}else{
|
|
|
|
$query = $query->where(function ($subQuery) {
|
|
|
|
$subQuery->where('gl_project_association.friend_id', 0)
|
|
|
|
->orWhereNull('gl_project_association.friend_id');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(isset($this->map['seo_plan'])){
|
|
|
|
$query = $query->where('gl_project_deploy_build.seo_plan',$this->map['seo_plan']);
|
|
|
|
}
|
...
|
...
|
|