This commit is contained in:
yaosen 2024-07-03 17:03:50 +08:00
parent 51cb2afd56
commit 3a4d79833c
1 changed files with 2 additions and 1 deletions

View File

@ -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));