This commit is contained in:
parent
51cb2afd56
commit
3a4d79833c
|
@ -50,6 +50,7 @@ class QaController extends base
|
|||
{
|
||||
$title = $request->get('title');
|
||||
$status = $request->get('status');
|
||||
Log::warning('======',['aa'=>$status]);
|
||||
|
||||
$list = Qas::with(['qaCitys','qaQuestions'=>function ($query) {
|
||||
$query->order('sort desc');
|
||||
|
@ -58,7 +59,7 @@ class QaController extends base
|
|||
if (!empty($title)){
|
||||
$list = $list->where('title','like','%'.$title.'%');
|
||||
}
|
||||
if (!empty($status)){
|
||||
if (!is_null($status)){
|
||||
$list = $list->where('status',$status);
|
||||
}
|
||||
$list = $list->paginate($request->get('limit',10));
|
||||
|
|
Loading…
Reference in New Issue