diff --git a/admin/controllers/app/licheb/Userslog.php b/admin/controllers/app/licheb/Userslog.php index b41bdea0..e555fac7 100644 --- a/admin/controllers/app/licheb/Userslog.php +++ b/admin/controllers/app/licheb/Userslog.php @@ -393,7 +393,7 @@ class Userslog extends HD_Controller $uname = ''; $map_sale[$v['sales_id']] && $uname = $map_sale[$v['sales_id']]; $follows = $v['t_follows'] + $v['h_follows'] + $v['w_follows']; - $temp = ['uname' => $uname, 'follows' => $follows, 't_follows' => $v['t_follows'] + $temp = ['id'=>$v['id'], 'uname' => $uname, 'follows' => $follows, 't_follows' => $v['t_follows'] , 'h_follows' => $v['h_follows'], 'w_follows' => $v['w_follows'], 't_day' => $v['t_day']]; $lists[] = $temp; } diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index 7eb9f4df..81b8e74a 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -257,6 +257,14 @@ class Customer extends HD_Controller $where["id"] = -1; } } + + // 指定顾问的回访客户,通过 vsid + vdststus 时间 + if ($vsid = $params['vsid']){ + $vdststus = $params['vdststus'] ? intval($params['vdststus']) : 0; + $vdststus_parm = $vdststus ? " and lc_vd.status = {$vdststus}" : ""; + $where["id in(select lc_vd.c_id from lc_receiver_customer_visit_data lc_vd join lc_receiver_customer_visit_sales lc_vs on lc_vd.biz_id = lc_vs.biz_id and lc_vd.sales_id = lc_vs.sales_id and lc_vd.t_day = lc_vs.t_day and lc_vs.id = {$vsid} {$vdststus_parm})"] = null; + } + return $where; } diff --git a/admin/views/app/licheb/userslog/lists_visit.php b/admin/views/app/licheb/userslog/lists_visit.php index 2d1fc2ff..eee1f185 100644 --- a/admin/views/app/licheb/userslog/lists_visit.php +++ b/admin/views/app/licheb/userslog/lists_visit.php @@ -22,7 +22,7 @@