更新children
This commit is contained in:
parent
ad96862375
commit
53c90bcda5
@ -54,12 +54,14 @@ class CategoryBusinessLists extends BaseAdminDataLists implements ListsSearchInt
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return CategoryBusiness::where($this->searchWhere)
|
||||
$lists=CategoryBusiness::where($this->searchWhere)
|
||||
->field(['id', 'name', 'pid', 'sort', 'status'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
return linear_to_tree($lists, 'children');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user