This commit is contained in:
xiaoyu
2024-01-19 15:29:52 +08:00
parent b65c70675a
commit 97e8b75200
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -16,8 +16,8 @@ class Welcome extends CI_Controller {
//测试地址
//$url = 'https://salespp-sit.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
$name = '陈勇'; //客户姓名
$mobile = '18750820518';//客户手机
$name = '一条fish'; //客户姓名
$mobile = '15374348707';//客户手机
$comments = '100958'; //门店编码
$samobile = '17758949069';//销售手机
@@ -34,8 +34,8 @@ class Welcome extends CI_Controller {
'mobile' => $mobile,
'saMobile' => $samobile,
'cusType' => '30111001',
'remark' => "",
'intentModel' => "哪吒V",
'remark' => "网约车、征信不好",
'intentModel' => "哪吒U",
);
print_r(json_encode($data,JSON_UNESCAPED_UNICODE));
+1 -1
View File
@@ -103,7 +103,7 @@ class Stic extends Admin
$gw_total = $this->groups_user_model->count($where);
$where = [
'activityId' => $this->a_id,
"cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$this->a_id} and status = 0)" => null
"cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$this->a_id} and bizId > 0 and status = 0)" => null
];
$kgw_total = $this->mdSytActivityKpiData->count($where, "cfUserId");
$h_lists[] = ['title' => '参与门店', 'num' => "{$biz_total}"];
@@ -88,7 +88,7 @@ class GroupsStatistics extends BaseController
$pvDuration = round($livePV / $liveUV, 1);
}
}
$consultant = $this->mdSyliveActivityKpidata->count(['activityId' => $activityId, "cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$activityId} and status = 0)" => null], 'cfUserId');
$consultant = $this->mdSyliveActivityKpidata->count(['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(['activityId' => $activityId, 'status' => 0]);
$consultant > $allConsultant && $allConsultant = $consultant;
$bizs = $this->mdSyliveGroups->count(['activityId' => $activityId, 'ifBiz' => 1, 'status>=' => 0]);
@@ -208,7 +208,7 @@ class GroupsStatistics extends BaseController
}
$orderTotal = $this->mdSyliveActivityKpidata->count($where_order);
}
$consultant = $this->mdSyliveActivityKpidata->count([$levelId => $groupsId, 'activityId' => $activityId, "cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$activityId} and status = 0)" => null], 'cfUserId');
$consultant = $this->mdSyliveActivityKpidata->count([$levelId => $groupsId, '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([$levelId => $groupsId, 'activityId' => $activityId, 'status' => 0]);
$consultant > $allConsultant && $allConsultant = $consultant;
$livePV = $watchDuration = 0;
@@ -257,7 +257,7 @@ class GroupsStatistics extends BaseController
$groupsId = intval($v['groupsId']);
$groupsName = $v['groupsName'] ? $v['groupsName'] : '-';
}
$consultant = $this->mdSyliveActivityKpidata->count([$levelId => $groupsId, 'activityId' => $activityId, "cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$activityId} and status = 0)" => null], 'cfUserId');
$consultant = $this->mdSyliveActivityKpidata->count([$levelId => $groupsId, '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([$levelId => $groupsId, 'activityId' => $activityId, 'status' => 0]);
$consultant > $allConsultant && $allConsultant = $consultant;
$livePV = $watchDuration = 0;
@@ -579,7 +579,7 @@ class GroupsStatistics extends BaseController
}
$orderTotal = $this->mdSyliveActivityKpidata->count($where_order);
}
$consultant = $this->mdSyliveActivityKpidata->count(['bizId' => $bizId, 'activityId' => $activityId, "cfUserId in (SELECT userId FROM lc_market_sylive_groups_user WHERE activityId = {$activityId} and status = 0)" => null], 'cfUserId');
$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]);
$consultant > $allConsultant && $allConsultant = $consultant;
$livePV = $watchDuration = 0;