fix: 兼容配件遗漏状态筛选问题
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 4s
This commit is contained in:
@@ -39,6 +39,13 @@ class ProductCompatPartsModel extends ProductCompatPartsBaseModel
|
||||
$query->where('name', '=', $value);
|
||||
}
|
||||
|
||||
// 按状态查询
|
||||
public function scopeDisabled(\think\db\Query $query, int|null $disabled)
|
||||
{
|
||||
if (is_null($disabled)) return;
|
||||
$query->where('disabled', '=', $disabled);
|
||||
}
|
||||
|
||||
// 查询配件类型名称搜索
|
||||
public function searchNameAttr(\think\db\Query $query, string|null $value, array $data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user