1
This commit is contained in:
@@ -204,7 +204,7 @@ class OrdersList
|
||||
//客户来源
|
||||
$str_rids = implode(',', array_unique(array_column($rows, 'customer_id')));
|
||||
!$str_rids && $str_rids = 0;
|
||||
$customers = $this->ci->mdCustomers->map('id', 'of_id,of2_id', array("id in({$str_rids})" => null));
|
||||
$customers = $this->ci->mdCustomers->map('id', 'of_id,of2_id,p_time', array("id in({$str_rids})" => null));
|
||||
$offlineSources = $this->ci->mdCustomers->offlineSources();
|
||||
//门店
|
||||
$str_biz_ids = implode(',', array_unique(array_column($rows, 'biz_id')));
|
||||
@@ -264,6 +264,7 @@ class OrdersList
|
||||
$fields['status_name'] = $status_name;
|
||||
$fields['biz_name'] = $bizs[$val['biz_id']] ? $bizs[$val['biz_id']]['biz_name'] . '<br>' . $admins[$val['admin_id']] : '';
|
||||
$size > 1000 && $fields['biz_name'] = $bizs[$val['biz_id']] ? $bizs[$val['biz_id']]['biz_name'] : '';
|
||||
$fields['p_time'] = date('Y-m-d H:i:s', strtotime($customers[$val['customer_id']]['p_time']));
|
||||
$fields['c_time'] = date('Y-m-d H:i:s', $val['c_time']);
|
||||
$of_title = '-';
|
||||
$of_title_1 = $of_title_2 = '';
|
||||
@@ -366,6 +367,7 @@ class OrdersList
|
||||
$fields = array_merge($fields1, $fields2);
|
||||
if ($export) {
|
||||
unset($fields['price'], $fields['c_time'], $fields['car_name'], $fields['of_title']);
|
||||
!$fields['p_time'] && $fields['p_time'] = ['title' => '建档时间'];
|
||||
!$fields['c_time'] && $fields['c_time'] = ['title' => '订单时间'];
|
||||
!$fields['order_time'] && $fields['order_time'] = ['title' => '下定时间'];
|
||||
!$fields['bill_time'] && $fields['bill_time'] = ['title' => '开票时间'];
|
||||
|
||||
Reference in New Issue
Block a user