From d0ac06206de96db3b3fac18c68712e6a3f8f61b4 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Sat, 10 Feb 2024 02:32:25 +0800 Subject: [PATCH] 0210 --- market/controllers/api/sylive/GroupsStatistics.php | 3 +++ 1 file changed, 3 insertions(+) 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') {