mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
26 lines
476 B
PHP
26 lines
476 B
PHP
<?php
|
|
|
|
namespace App\Filters;
|
|
|
|
class GoodsFilter extends Filters
|
|
{
|
|
protected function goodsTitle($value)
|
|
{
|
|
return $this->builder->where('title', 'like', "%$value%");
|
|
}
|
|
|
|
protected function typeId($value)
|
|
{
|
|
if($value){
|
|
return $this->builder->where('type_id', $value);
|
|
}
|
|
}
|
|
|
|
protected function brandId($value)
|
|
{
|
|
if($value){
|
|
return $this->builder->where('brand_id', $value);
|
|
}
|
|
}
|
|
}
|