customers search add def_time

This commit is contained in:
qianhy
2023-03-01 10:40:58 +08:00
parent 02d4a671b1
commit de7d497f5b
+6 -1
View File
@@ -11,7 +11,7 @@ class Customer extends HD_Controller
{
private $searchTpAry = array('mobile' => '客户手机号', 'name' => '客户姓名');
private $searchTimeAry = array('c_time' => '创建时间', 'p_time' => '分配时间', 'cont_time' => '最后联系时间', 'u_time' => '最后操作时间'
, 'dt_time' => '首次到店时间', 'order_time' => '下单时间');
, 'dt_time' => '首次到店时间', 'order_time' => '下单时间', 'def_time'=>'战败时间');
protected $log_dir;
@@ -210,6 +210,11 @@ class Customer extends HD_Controller
$order_time[0] && $where["order_time >="] = $order_time[0] . ' 00:00:00';
$order_time[1] && $where["order_time <="] = $order_time[1] . ' 23:59:59';
}
if ($params['def_time']) {
$order_time = explode(' ~ ', $params['def_time']);
$order_time[0] && $where["def_time >="] = $order_time[0] . ' 00:00:00';
$order_time[1] && $where["def_time <="] = $order_time[1] . ' 23:59:59';
}
if ($params['cfrom_id'] || $params['cfrom_id2']) {
if ($params['cfrom_id'] == 24) {
$where['cf_id'] = 24;