market_groups_1220_2
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user