diff --git a/admin/controllers/hdcloud/Clues.php b/admin/controllers/hdcloud/Clues.php index 489c9015..e66597cc 100644 --- a/admin/controllers/hdcloud/Clues.php +++ b/admin/controllers/hdcloud/Clues.php @@ -115,6 +115,16 @@ class Clues extends HD_Controller 'sa' => '吴国腾', 'mobile' => '15323380908' ), + '100755' => array( + 'biz' => '湛江大众城', + 'sa' => '钟龙', + 'mobile' => '13822587759' + ), + '100739' => array( + 'biz' => '阳江辉能', + 'sa' => '林良杰', + 'mobile' => '18926369788' + ), ) ), diff --git a/home/controllers/Welcome.php b/home/controllers/Welcome.php index 19d228d3..9aa580bd 100644 --- a/home/controllers/Welcome.php +++ b/home/controllers/Welcome.php @@ -16,11 +16,11 @@ class Welcome extends CI_Controller { //测试地址 //$url = 'https://salespp-sit.hozonauto.com/appservice/app/if/salesclue/createSalesclue'; - $name = '是什么'; //客户姓名 - $mobile = '17779515292';//客户手机 + $name = '惠州客户'; //客户姓名 + $mobile = '18319926298';//客户手机 - $comments = '101252'; //门店编码 - $samobile = '13790011910';//销售手机 + $comments = '101043'; //门店编码 + $samobile = '15999955547';//销售手机 $city_id = '350200'; $voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999)); @@ -34,7 +34,7 @@ class Welcome extends CI_Controller { 'mobile' => $mobile, 'saMobile' => $samobile, 'cusType' => '30111001', - 'remark' => "", + 'remark' => "加微信,不要打电话", 'intentModel' => "哪吒AYA", ); diff --git a/market/controllers/api/sylive/GroupsStatistics.php b/market/controllers/api/sylive/GroupsStatistics.php index fe204186..8e7e2a4e 100644 --- a/market/controllers/api/sylive/GroupsStatistics.php +++ b/market/controllers/api/sylive/GroupsStatistics.php @@ -561,6 +561,7 @@ class GroupsStatistics extends BaseController } else { $where_sort['kpi'] = 'subscribe'; $subscribe = $this->mdSyliveActivityKpidata->count($where_sort); + print_r($this->mdSyliveActivityKpidata->db->last_query()); } if ($sort == 'beforeOrder') { $beforeOrderTotal = $v['total']; @@ -579,10 +580,12 @@ class GroupsStatistics extends BaseController } else { $where_sort['bizId'] = $bizId; $where_sort['kpi'] = 'order'; + $where_item = $where_sort; + if ($itemId) { - $where_sort['itemId'] = $itemId; + $where_item['itemId'] = $itemId; } - $orderTotal = $this->mdSyliveActivityKpidata->count($where_sort); + $orderTotal = $this->mdSyliveActivityKpidata->count($where_item); } $consultant = $this->mdSyliveActivityKpidata->count(['bizId' => $bizId, 'activityId' => $activityId, "cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$activityId} and bizId > 0 and status = 0)" => null], 'cfUserId'); $allConsultant = $this->mdSyliveGroupsUser->count(['bizId' => $bizId, 'activityId' => $activityId, 'status' => 0, 'bizId >' => 0]);