mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
22 lines
408 B
PHP
22 lines
408 B
PHP
<?php
|
|
|
|
namespace App\Filters;
|
|
|
|
class GoodsSkuFilter extends Filters
|
|
{
|
|
protected function skuTitle($value)
|
|
{
|
|
return $this->builder->where('title', '=', $value);
|
|
}
|
|
|
|
protected function status($value)
|
|
{
|
|
return $this->builder->where('status', '=', $value);
|
|
}
|
|
|
|
protected function excludeIds($value)
|
|
{
|
|
return $this->builder->whereNotIn('id', $value);
|
|
}
|
|
}
|