mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-28 21:31:37 +08:00
修正获取子分类查询条件
This commit is contained in:
parent
23305e1738
commit
d86ee20ced
@ -84,9 +84,9 @@ class CategoryTreeList extends Builder
|
||||
{
|
||||
$query = CategoryModel::query();
|
||||
|
||||
$query->where('published = 1');
|
||||
$query->where('deleted = 0');
|
||||
$query->andWhere('parent_id = :parent_id:', ['parent_id' => $parentId]);
|
||||
$query->where('parent_id = :parent_id:', ['parent_id' => $parentId]);
|
||||
$query->andWhere('published = 1');
|
||||
$query->andWhere('deleted = 0');
|
||||
$query->orderBy('priority ASC');
|
||||
|
||||
return $query->execute();
|
||||
|
Loading…
x
Reference in New Issue
Block a user