作者 lyh

gx

@@ -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']) && !empty($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