搜索
This commit is contained in:
@@ -113,7 +113,7 @@ class BrandController extends BaseController
|
||||
$params['filters'][] = ['field' => 'status', 'operator' => '=', 'value' => $params['status']];
|
||||
}
|
||||
if(!empty($params['name'])){
|
||||
$id = BrandTranslationModel::where('name', 'like', '%'.$params['name'].'%')->pluck('id')->toArray();
|
||||
$id = BrandTranslationModel::where('name', 'like', '%'.$params['name'].'%')->pluck('brand_id')->toArray();
|
||||
$params['filters'][] = ['field' => 'id', 'operator' => 'in', 'value' => $id];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user