This commit is contained in:
xiaoyu
2024-02-10 02:32:25 +08:00
parent 09cb72fb35
commit d0ac06206d
@@ -565,6 +565,7 @@ class GroupsStatistics extends BaseController
if ($sort == 'beforeOrder') {
$beforeOrderTotal = $v['total'];
} else {
$where_sort['kpi'] = 'beforeOrder';
$beforeOrderTotal = $this->mdSyliveActivityKpidata->count($where_sort);
}
if ($sort == 'watch') {
@@ -577,6 +578,7 @@ class GroupsStatistics extends BaseController
$orderTotal = $v['total'];
} else {
$where_sort['bizId'] = $bizId;
$where_sort['kpi'] = 'order';
if ($itemId) {
$where_sort['itemId'] = $itemId;
}
@@ -822,6 +824,7 @@ class GroupsStatistics extends BaseController
if ($sort == 'beforeOrder') {
$beforeOrderTotal = $v['total'];
} else {
$where_sort['kpi'] = 'beforeOrder';
$beforeOrderTotal = $this->mdSyliveActivityKpidata->count($where_sort);
}
if ($sort == 'watch') {