Merge branch 'hotfix/crm' into develop
This commit is contained in:
@@ -91,10 +91,26 @@ class VehVehicleSkuService
|
||||
case 'default':
|
||||
$config['where']['is_active'] = 1;
|
||||
$config['order']['id'] = 'desc';
|
||||
|
||||
// 关键字筛选
|
||||
if (isset($p['keyword']) && $p['keyword']) {
|
||||
$k = '%' . $p['keyword'] . '%';
|
||||
foreach (['model_name','series_name','brand_name',] as $col) {
|
||||
$config['orWhere'][] = [$col, 'like', $k];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'index':
|
||||
$config['where']['is_active'] = 1;
|
||||
$config['order']['id'] = 'desc';
|
||||
|
||||
// 关键字筛选
|
||||
if (isset($p['keyword']) && $p['keyword']) {
|
||||
$k = '%' . $p['keyword'] . '%';
|
||||
foreach (['model_name','series_name','brand_name',] as $col) {
|
||||
$config['orWhere'][] = [$col, 'like', $k];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'show':
|
||||
$config['where']['id'] = $p['id'];
|
||||
|
||||
Reference in New Issue
Block a user