diff --git a/market/controllers/api/sylive/GroupsStatistics.php b/market/controllers/api/sylive/GroupsStatistics.php index 5e671276..af4e36ff 100644 --- a/market/controllers/api/sylive/GroupsStatistics.php +++ b/market/controllers/api/sylive/GroupsStatistics.php @@ -193,6 +193,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') { @@ -205,6 +206,7 @@ class GroupsStatistics extends BaseController $orderTotal = $v['total']; } else { $where_sort[$levelId] = $groupsId; + $where_sort['kpi'] = 'order'; if ($itemId) { $where_sort['itemId'] = $itemId; }