refactor: 修改几在模块支持多分类筛选
This commit is contained in:
@@ -71,6 +71,10 @@ class SysBannerItemModel extends SysBannerItemBaseModel
|
||||
public function scopeBannerId($query, $value)
|
||||
{
|
||||
if (is_null($value)) return;
|
||||
if (is_array($value) || str_contains($value, ',')) {
|
||||
$query->whereIn('banner_id', $value);
|
||||
return;
|
||||
}
|
||||
$query->where('banner_id', '=', $value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user