作者 lyh

gx

@@ -70,6 +70,9 @@ class ProjectController extends BaseController @@ -70,6 +70,9 @@ class ProjectController extends BaseController
70 * @time :2023/8/30 10:14 70 * @time :2023/8/30 10:14
71 */ 71 */
72 public function searchType(&$query){ 72 public function searchType(&$query){
  73 + if(!isset($this->map['type'])){
  74 + $this->map['type'] = Project::TYPE_ZERO;
  75 + }
73 if($this->map['type'] == Project::TYPE_ZERO){ 76 if($this->map['type'] == Project::TYPE_ZERO){
74 $query->where('gl_project.type',Project::TYPE_ZERO); 77 $query->where('gl_project.type',Project::TYPE_ZERO);
75 }elseif ($this->map['type'] == Project::TYPE_ONE){ 78 }elseif ($this->map['type'] == Project::TYPE_ONE){
@@ -154,8 +157,6 @@ class ProjectController extends BaseController @@ -154,8 +157,6 @@ class ProjectController extends BaseController
154 // ->orwhere('gl_project.company','like','%'.$this->map['search'].'%') 157 // ->orwhere('gl_project.company','like','%'.$this->map['search'].'%')
155 // ->orwhere('gl_project.title','like','%'.$this->map['search'].'%'); 158 // ->orwhere('gl_project.title','like','%'.$this->map['search'].'%');
156 // } 159 // }
157 - var_dump($query);  
158 - die();  
159 return $query; 160 return $query;
160 } 161 }
161 162