|
@@ -64,12 +64,14 @@ class ProjectUserController extends BaseController |
|
@@ -64,12 +64,14 @@ class ProjectUserController extends BaseController |
|
64
|
$query = $query->where('gl_project.title','like','%'.$this->map['title'].'%');
|
64
|
$query = $query->where('gl_project.title','like','%'.$this->map['title'].'%');
|
|
65
|
}
|
65
|
}
|
|
66
|
if(isset($this->map['name'])){
|
66
|
if(isset($this->map['name'])){
|
|
67
|
-
|
|
|
|
68
|
$query = $query->where('gl_project_user.name',$this->map['name'][0],$this->map['name'][1]);
|
67
|
$query = $query->where('gl_project_user.name',$this->map['name'][0],$this->map['name'][1]);
|
|
69
|
}
|
68
|
}
|
|
70
|
if(isset($this->map['mobile'])){
|
69
|
if(isset($this->map['mobile'])){
|
|
71
|
$query = $query->where('gl_project_user.mobile','like','%'.$this->map['mobile'].'%');
|
70
|
$query = $query->where('gl_project_user.mobile','like','%'.$this->map['mobile'].'%');
|
|
72
|
}
|
71
|
}
|
|
|
|
72
|
+ if(isset($this->map['project_id'])){
|
|
|
|
73
|
+ $query = $query->where('gl_project_user.project_id',$this->map['project_id']);
|
|
|
|
74
|
+ }
|
|
73
|
return $query;
|
75
|
return $query;
|
|
74
|
}
|
76
|
}
|
|
75
|
|
77
|
|
|
@@ -175,4 +177,5 @@ class ProjectUserController extends BaseController |
|
@@ -175,4 +177,5 @@ class ProjectUserController extends BaseController |
|
175
|
$lists = $project->list(['type'=>['!=',$project::TYPE_ZERO]],'id',['id','title']);
|
177
|
$lists = $project->list(['type'=>['!=',$project::TYPE_ZERO]],'id',['id','title']);
|
|
176
|
$this->response('success',Code::SUCCESS,$lists);
|
178
|
$this->response('success',Code::SUCCESS,$lists);
|
|
177
|
}
|
179
|
}
|
|
|
|
180
|
+
|
|
178
|
} |
181
|
} |