作者 lyh

gx

... ... @@ -36,17 +36,17 @@ class ProjectController extends BaseController
{
$map = [];
//搜索类型
if(!empty($this->param['type'])){
if(isset($this->param['type']) && !empty($this->param['type'])){
if($this->param['type'] == 3){//推广中
$map[] = ['type', 'in' ,[4,6]];
}elseif($this->param['type'] == 2){//建站完成
$map[] = ['type', 'in', [2,3]];
}elseif($this->param['type'] == 1){//建站中
$map[] = ['type',1];
}
}else{
$map[] = ['type',0];//初始导入项目
}
}
//搜索技术组
if(!empty($this->param['dep_id'])){
$map[] = ['id', 'in', DeployBuild::where('dept_id', $this->param['dep_id'])->pluck('project_id')->toArray()];
... ...