lyh 2 年 前
コミット
3bcfea6dbd
1 ファイル変更1 行追加0 行削除
  1. 1 0
      app/Services/Api/GoodsService.php

+ 1 - 0
app/Services/Api/GoodsService.php

@@ -535,6 +535,7 @@ class GoodsService extends BaseService
             ->where(['a.status' => 1, 'a.mark' => 1, 'b.status' => 1, 'b.mark' => 1])
             ->where('a.num', '>', 0)
             ->where('b.cost_price', '>', 0)
+            ->where('a.user_id',$userId)
             ->count('a.id');
         if ($data) {
             RedisService::set($cacheKey, $data, rand(300, 600));