|
|
@@ -526,7 +526,7 @@ class User extends BaseModel
|
|
|
public static function getUserSpreadCountList($uid, $orderBy = '', $keyword = '', $page = 0, $limit = 20)
|
|
|
{
|
|
|
$model = new self;
|
|
|
- if ($orderBy === '') $orderBy = 'u.add_time desc';
|
|
|
+ if ($orderBy === '') $orderBy = 'u.uid desc';
|
|
|
$model = $model->alias(' u');
|
|
|
$sql = StoreOrder::where('o.paid', 1)->group('o.uid')->field(['SUM(o.pay_price) as numberCount', 'o.uid', 'o.order_id'])
|
|
|
->where('o.is_del', 0)->where('o.is_system_del', 0)->alias('o')->fetchSql(true)->select();
|