|
...
|
...
|
@@ -168,8 +168,8 @@ class ProjectController extends BaseController |
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function searchType(&$query){
|
|
|
|
$query->where('gl_project.extend_type', '!=' ,5);
|
|
|
|
if(isset($this->map['type'])){
|
|
|
|
$query->where('gl_project.extend_type', '!=' ,5);
|
|
|
|
if (in_array($this->map['type'], [Project::TYPE_ZERO, Project::TYPE_ONE, Project::TYPE_TWO, Project::TYPE_THREE]))
|
|
|
|
$query->where('gl_project.type', $this->map['type']);
|
|
|
|
else{
|
...
|
...
|
|