diff --git a/market/controllers/api/sylive/GroupsStatistics.php b/market/controllers/api/sylive/GroupsStatistics.php index af4e36ff..acbb01d2 100644 --- a/market/controllers/api/sylive/GroupsStatistics.php +++ b/market/controllers/api/sylive/GroupsStatistics.php @@ -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') {