This commit is contained in:
xiaoyu
2024-02-09 19:00:07 +08:00
parent 4f81d35592
commit dca0799f2f
@@ -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) {