Merge branch 'master' of /mnt/git/v2.tiantianxinye.365care

master
songweizong 3 years ago
commit 9c3bc2e08d

@ -138,6 +138,13 @@ class OrdersController extends CommonController
}
$project_id = request()->project_id ?? $projects->first()->id;
$this->model = $this->model->where("project_id", $project_id)->whereNotNull("scored_at");
if (request()->keyword) {
$this->model = $this->model->where(function ($query) {
$query->where("serial", "like", "%" . request()->keyword . "%")
->orWhere("contact", "like", "%" . request()->keyword . "%")
->orWhere("mobile", "like", "%" . request()->keyword . "%");
});
}
$data = $this->model
->with([

Loading…
Cancel
Save