调整农作物搜索
parent
9282c742db
commit
542bc677c5
|
|
@ -11,6 +11,10 @@ class CropFilter extends ModelFilter
|
||||||
return $this->where('category_id', $categoryId);
|
return $this->where('category_id', $categoryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function parentId($parentId){
|
||||||
|
return $this->where('parent_id', $parentId);
|
||||||
|
}
|
||||||
|
|
||||||
public function type($type)
|
public function type($type)
|
||||||
{
|
{
|
||||||
$q = $this;
|
$q = $this;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue