From 4eb24be89799ccdff62f1a8d4236d7698c8b8a9c Mon Sep 17 00:00:00 2001 From: qianhy Date: Sat, 28 Jan 2023 10:28:19 +0800 Subject: [PATCH] customer export split of_title --- admin/controllers/receiver/Customer.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index cac1e7db..edede350 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -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" => "归属顾问", ];