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:
@@ -16,6 +16,7 @@ class ProductCompatParts
|
||||
{
|
||||
$params = request()->param([
|
||||
'name',
|
||||
'is_show',
|
||||
'page/d' => 1,
|
||||
'size/d' => 10
|
||||
]);
|
||||
@@ -25,6 +26,7 @@ class ProductCompatParts
|
||||
'deleted_at'
|
||||
])
|
||||
->language(request()->lang_id)
|
||||
->disabled($params['is_show'] ? ($params['is_show'] == 1 ? 0 : 1) : null)
|
||||
->withSearch('name', [
|
||||
'name' => $params['name']??null
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user