lyh %!s(int64=2) %!d(string=hai) anos
pai
achega
3bcfea6dbd
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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));