|
...
|
...
|
@@ -70,6 +70,9 @@ class ProjectController extends BaseController |
|
|
|
* @time :2023/8/30 10:14
|
|
|
|
*/
|
|
|
|
public function searchType(&$query){
|
|
|
|
if(!isset($this->map['type'])){
|
|
|
|
$this->map['type'] = Project::TYPE_ZERO;
|
|
|
|
}
|
|
|
|
if($this->map['type'] == Project::TYPE_ZERO){
|
|
|
|
$query->where('gl_project.type',Project::TYPE_ZERO);
|
|
|
|
}elseif ($this->map['type'] == Project::TYPE_ONE){
|
|
...
|
...
|
@@ -154,8 +157,6 @@ class ProjectController extends BaseController |
|
|
|
// ->orwhere('gl_project.company','like','%'.$this->map['search'].'%')
|
|
|
|
// ->orwhere('gl_project.title','like','%'.$this->map['search'].'%');
|
|
|
|
// }
|
|
|
|
var_dump($query);
|
|
|
|
die();
|
|
|
|
return $query;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|