Commit 88885745 authored by wangtao's avatar wangtao

管理后台 看板

parent f3b88cfd
......@@ -48,11 +48,11 @@ class CertCategory extends Model
$where[] = ['is_del', '=', 0];
return $this->with(['children' => function($query) use($where) {
$query->where($where);
$query->order('sort', 'asc');
$query->order('sort', 'desc');
}])
->where('pid', $pid)
->where($where)
->order('sort', 'asc')
->order('sort', 'desc')
->select();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment