0522
This commit is contained in:
@@ -427,6 +427,8 @@ class Customer extends HD_Controller
|
||||
'cfrom' => '来源一',
|
||||
'cfrom2' => '来源二',
|
||||
'channel' => '渠道',
|
||||
'province' => '省份',
|
||||
'city' => '城市',
|
||||
'brand' => '品牌',
|
||||
'series' => '车型',
|
||||
"p_time" => "上传时间",
|
||||
@@ -439,11 +441,15 @@ class Customer extends HD_Controller
|
||||
|
||||
$brands = $this->auto_brand_model->get_map_by_ids(array_column($rows, 'brand_id'));
|
||||
$series = $this->auto_series_model->get_map_by_ids(array_column($rows, 'series_id'));
|
||||
$provinces = $this->area_model->get_map_by_ids(array_column($rows, 'province_id'));
|
||||
$citys = $this->area_model->get_map_by_ids(array_column($rows, 'city_id'));
|
||||
$map_biz = $this->biz_model->map('id', 'biz_name', ['status' => 1, 'province_id' => 350000], '', 0, 0, 'id,biz_name');
|
||||
|
||||
foreach ($rows as $val){
|
||||
$val['brand'] = $brands[$val['brand_id']][0]['name'];
|
||||
$val['series'] = $series[$val['series_id']][0]['name'];
|
||||
$val['province'] = $provinces[$val['province_id']][0]['province_name'];
|
||||
$val['city'] = $citys[$val['city_id']][0]['city_name'];
|
||||
|
||||
if($val['cfrom'] == 1){
|
||||
$cf2 = $this->cfrom2[$val['cfrom2']];
|
||||
|
||||
Reference in New Issue
Block a user