|
@@ -87,7 +87,7 @@ class ProjectController extends BaseController |
|
@@ -87,7 +87,7 @@ class ProjectController extends BaseController |
|
87
|
//按类型搜索
|
87
|
//按类型搜索
|
|
88
|
$query = $this->searchContent($query);
|
88
|
$query = $this->searchContent($query);
|
|
89
|
//搜索升级项目
|
89
|
//搜索升级项目
|
|
90
|
-// $query = $this->searchUpgrade($query);
|
90
|
+ $query = $this->searchUpgrade($query);
|
|
91
|
return $query;
|
91
|
return $query;
|
|
92
|
}
|
92
|
}
|
|
93
|
|
93
|
|
|
@@ -97,13 +97,13 @@ class ProjectController extends BaseController |
|
@@ -97,13 +97,13 @@ class ProjectController extends BaseController |
|
97
|
* @return mixed
|
97
|
* @return mixed
|
|
98
|
*/
|
98
|
*/
|
|
99
|
public function searchType(&$query){
|
99
|
public function searchType(&$query){
|
|
100
|
-// if(isset($this->map['type']) && !empty($this->map['type'])){
|
100
|
+ if(isset($this->map['type'])){
|
|
101
|
if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE]))
|
101
|
if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE]))
|
|
102
|
$query->where('gl_project.type', $this->map['type']);
|
102
|
$query->where('gl_project.type', $this->map['type']);
|
|
103
|
else{
|
103
|
else{
|
|
104
|
$query->whereIn('gl_project.type', [Project::TYPE_FOUR,Project::TYPE_SIX]);
|
104
|
$query->whereIn('gl_project.type', [Project::TYPE_FOUR,Project::TYPE_SIX]);
|
|
105
|
}
|
105
|
}
|
|
106
|
-// }
|
106
|
+ }
|
|
107
|
return $query;
|
107
|
return $query;
|
|
108
|
}
|
108
|
}
|
|
109
|
|
109
|
|