|
|
|
@ -67,7 +67,8 @@ class CollectStoreService implements CollectStoreServiceInterface |
|
|
|
public function countByUser($userId) |
|
|
|
{ |
|
|
|
|
|
|
|
return UserCollection::query()->where(['user_id' => $userId])->count(); |
|
|
|
$marketIds = Market::query()->pluck('id'); |
|
|
|
return UserCollection::query()->where(['user_id' => $userId])->whereIn('market_id', $marketIds)->count(); |
|
|
|
|
|
|
|
// $ssdb = ApplicationContext::getContainer()->get(SSDBTask::class);
|
|
|
|
// $count = $ssdb->exec('get',SsdbKeys::COUNT_COLLECT_STORE_USER.$userId);
|
|
|
|
|