This commit is contained in:
xiaoyu
2024-03-11 12:02:49 +08:00
parent b6ea5ec04e
commit 7ae2043e03
@@ -550,6 +550,7 @@ class GroupsStatistics extends BaseController
$bizName = '-';
$map_groups[$bizId] && $bizName = $map_groups[$bizId];
$where_sort['bizId'] = $bizId;
$where_item = $where_sort;
if ($sort == 'browse') {
$browse = $v['total'];
} else {
@@ -577,12 +578,12 @@ class GroupsStatistics extends BaseController
if ($sort == 'order') {
$orderTotal = $v['total'];
} else {
$where_sort['bizId'] = $bizId;
$where_sort['kpi'] = 'order';
$where_item['bizId'] = $bizId;
$where_item['kpi'] = 'order';
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]);