This commit is contained in:
xiaoyu
2024-03-11 11:59:51 +08:00
parent c21e65eeaa
commit b6ea5ec04e
@@ -561,7 +561,6 @@ 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'];
@@ -580,12 +579,10 @@ class GroupsStatistics extends BaseController
} else {
$where_sort['bizId'] = $bizId;
$where_sort['kpi'] = 'order';
$where_item = $where_sort;
if ($itemId) {
$where_item['itemId'] = $itemId;
$where_sort['itemId'] = $itemId;
}
$orderTotal = $this->mdSyliveActivityKpidata->count($where_item);
$orderTotal = $this->mdSyliveActivityKpidata->count($where_sort);
}
$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]);