Selaa lähdekoodia

后台管理系统

lyh 2 vuotta sitten
vanhempi
commit
79c9c15d8c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Services/Api/GoodsService.php

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

@@ -469,6 +469,7 @@ class GoodsService extends BaseService
             ->where(['a.status' => 1, 'a.mark' => 1, 'b.status' => 1, 'b.mark' => 1])
             ->where('b.cost_price', '>', 0)
             ->where('a.num', '>', 0)
+            ->where('a.user_id', '=', $userId)
             ->select(['a.id as cart_id', 'b.goods_id', 'b.merch_id', 'b.goods_name', 'b.supply_type', 'b.main_img', 'b.cost_price', 'b.retail_price', 'b.limit_num', 'b.lowest_num', 'b.brand_name', 'a.num', 'a.sku_id'])
             ->orderBy('a.create_time', 'desc')
             ->limit($pageSize)