调整农作物搜索

dev
vine_liutk 2022-11-03 16:53:04 +08:00
parent 9282c742db
commit 542bc677c5
1 changed files with 4 additions and 0 deletions

View File

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