Merge branch 'develop' into feature/mzl_dev
This commit is contained in:
@@ -91,10 +91,26 @@ class VehVehicleSkuService
|
|||||||
case 'default':
|
case 'default':
|
||||||
$config['where']['is_active'] = 1;
|
$config['where']['is_active'] = 1;
|
||||||
$config['order']['id'] = 'desc';
|
$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;
|
break;
|
||||||
case 'index':
|
case 'index':
|
||||||
$config['where']['is_active'] = 1;
|
$config['where']['is_active'] = 1;
|
||||||
$config['order']['id'] = 'desc';
|
$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;
|
break;
|
||||||
case 'show':
|
case 'show':
|
||||||
$config['where']['id'] = $p['id'];
|
$config['where']['id'] = $p['id'];
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ class CustomerService
|
|||||||
$sort = $params['sort'] ?? null;
|
$sort = $params['sort'] ?? null;
|
||||||
$sortId = $params['sort_id'] ?? null;
|
$sortId = $params['sort_id'] ?? null;
|
||||||
$countryId = $params['country_id'] ?? '';
|
$countryId = $params['country_id'] ?? '';
|
||||||
|
$channelId = $params['channel_id'] ?? '';
|
||||||
$where = [];
|
$where = [];
|
||||||
$user_id =$params['user_id'];
|
$user_id =$params['user_id'];
|
||||||
|
|
||||||
@@ -62,6 +63,9 @@ class CustomerService
|
|||||||
if (!empty($countryId)){
|
if (!empty($countryId)){
|
||||||
$where[] = ['country_id', $countryId];
|
$where[] = ['country_id', $countryId];
|
||||||
}
|
}
|
||||||
|
if (!empty($channelId)){
|
||||||
|
$where[] = ['channel_id', $channelId];
|
||||||
|
}
|
||||||
|
|
||||||
$grade = [];
|
$grade = [];
|
||||||
if (!Util::isEmpty($follow) && $follow == 0) {
|
if (!Util::isEmpty($follow) && $follow == 0) {
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ class CustomerService
|
|||||||
$user_id = $params['user_id'] ?? '';
|
$user_id = $params['user_id'] ?? '';
|
||||||
$seas = $params['seas'] ?? ''; //recyclea:管理端回收站,audit:待审核列表,seas:公海
|
$seas = $params['seas'] ?? ''; //recyclea:管理端回收站,audit:待审核列表,seas:公海
|
||||||
$scene = $params['scene'] ?? '';
|
$scene = $params['scene'] ?? '';
|
||||||
|
$channelId = $params['channel_id'] ?? '';
|
||||||
$where = [];
|
$where = [];
|
||||||
|
|
||||||
if ($scene == 'audit') {
|
if ($scene == 'audit') {
|
||||||
@@ -69,6 +70,9 @@ class CustomerService
|
|||||||
// $where[] = ['user_id', $user_id];
|
// $where[] = ['user_id', $user_id];
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
if (!empty($channelId)){
|
||||||
|
$where[] = ['channel_id', $channelId];
|
||||||
|
}
|
||||||
|
|
||||||
$grade = [];
|
$grade = [];
|
||||||
if (!Util::isEmpty($follow) && $follow == 0) {
|
if (!Util::isEmpty($follow) && $follow == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user