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