添加产量季度搜索

dev
vine_liutk 2022-11-15 15:15:31 +08:00
parent 7f1d7de2ef
commit fcfe58245c
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ class CropYieldFilter extends ModelFilter
return $this->where('time_year', $y); return $this->where('time_year', $y);
} }
public function quarter($quarter){
return $this->where('quarter', $quarter);
}
public function crop($cropId) public function crop($cropId)
{ {
return $this->where('crop_id', $cropId); return $this->where('crop_id', $cropId);