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) {