market_groups_1220_2

This commit is contained in:
dengbw
2022-12-20 17:51:24 +08:00
parent 3651e82958
commit b8d47f9e4d
@@ -858,8 +858,12 @@ class GroupsStatistics extends BaseController
$channelId = intval($re['channelId']);
!$sort && $sort = 'browse';
!$order && $order = 'desc';
$where = ['activityId' => $activityId, 'userId>' => 0, 'kpi' => $sort];
$itemId && $where['itemId'] = $itemId;
$where = ['activityId' => $activityId, 'userId>' => 0];
if ($itemId) {
$where['itemId'] = $itemId;
} else {
$where['kpi'] = $sort;
}
$count = $this->mdSyliveActivityKpidata->count($where, 'userId');
if ($count) {
$res = $this->mdSyliveActivityKpidata->select_groupby('userId', $where, "createTime {$order},id desc"