customer export split of_title

This commit is contained in:
qianhy
2023-01-28 10:28:19 +08:00
parent d9b99d5606
commit 4172c31bbb
+9 -2
View File
@@ -534,10 +534,13 @@ class Customer extends HD_Controller
$rows = $this->customers_model->select($where, 'id desc', $page, $size, $fileds);
foreach ($rows as $key => $val) {
$of_title = '';
$of_title_1 = $of_title_2 = '';
if ($val['of_id']) {
$of_ary = $offlineSources[$val['of_id']];
$of_title = $of_ary['name'];
$of_ary['name'] && $of_title_1 = $of_ary['name'];
$val['of2_id'] && $of_title .= '-' . $of_ary['list'][$val['of2_id']];
$val['of2_id'] && $of_ary['list'][$val['of2_id']] && $of_title_2 = $of_ary['list'][$val['of2_id']];
}
$data[] = array(
'id' => 'ID',
@@ -550,6 +553,8 @@ class Customer extends HD_Controller
'order_time' => $val['order_time'],
'cont_time' => $val['cont_time'],
'of_title' => $of_title,
'of_title_1' => $of_title_1,
'of_title_2' => $of_title_2,
'biz_name' => $val['biz_name'],
'admin_name' => $val['admin_name'],
);
@@ -559,12 +564,14 @@ class Customer extends HD_Controller
'name' => '客户姓名',
'mobile' => '手机',
'level' => '客户等级',
'status_name' => '客户类型',
'status_name' => '客户状态',
'c_time' => '建档时间',
"dt_time" => "到店时间",
"order_time" => "下单时间",
"cont_time" => "最后联系时间",
"of_title" => "来源",
#"of_title" => "来源",
"of_title_1" => "来源1",
"of_title_2" => "来源2",
"biz_name" => "归属门店",
"admin_name" => "归属顾问",
];