From dca0799f2fe7dd171a4e03b5dc999398b0e299eb Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Fri, 9 Feb 2024 19:00:07 +0800 Subject: [PATCH] 0209 --- market/controllers/api/sylive/GroupsStatistics.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/market/controllers/api/sylive/GroupsStatistics.php b/market/controllers/api/sylive/GroupsStatistics.php index 278b2047..769bc0f7 100644 --- a/market/controllers/api/sylive/GroupsStatistics.php +++ b/market/controllers/api/sylive/GroupsStatistics.php @@ -152,8 +152,12 @@ class GroupsStatistics extends BaseController if ($sort == 'order' && !$day) { $sort_order = 'orderTotal ' . $order; } else { + if($sort == 'beforeOrder'){ + $sort_order = 'beforeOrderTotal ' . $order; + } $sort_order = $sort . ' ' . $order; } + if ($day) {//按天搜索 $createTimeStart = strtotime($day . ' 00:00:00'); $createTimeEnd = strtotime($day . ' 23:59:59'); @@ -232,7 +236,7 @@ class GroupsStatistics extends BaseController $where = ['activityId' => $activityId, 'itemId' => $itemId, "$levelId>" => 0, 'itemId>' => 0]; $count = $this->mdSyliveActivityKpidata->count($where, 'bizId'); } else { - $where = ['activityId' => $activityId, 'status>=' => 0, 'groupsLevel' => $groupsLevel]; + $where = ['activityId' => $activityId, 'status' => 0, 'groupsLevel' => $groupsLevel]; $count = $this->mdSyliveGroups->count($where); } if ($count) {