소스 검색

[智价云] 商品查询更新

tangyuanwang 18 시간 전
부모
커밋
8c00b14578
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      app/Http/Controllers/Manager/WashConfig/LowPriceGoods.php
  2. 2 2
      app/Http/Controllers/Manager/WashConfig/ViolationProduct.php

+ 2 - 2
app/Http/Controllers/Manager/WashConfig/LowPriceGoods.php

@@ -66,12 +66,12 @@ class LowPriceGoods extends Controller
         if ($platform != '') {
             $platform_ids = explode(',', $platform);
             $LowPriceGoodsModel = $LowPriceGoodsModel->whereIn('id', function ($query) use ($platform_ids) {
-                $query->select('platform_id')
+                $query->select('product_id')
                     ->from('washconfig_lowprice_product_platform')
                     ->whereIn('platform_id', $platform_ids);
             });
         }
-        $result = $LowPriceGoodsModel->query()
+        $result = $LowPriceGoodsModel
             ->where($map)
             ->orderByDesc('id')
             ->paginate($limit)->toarray();

+ 2 - 2
app/Http/Controllers/Manager/WashConfig/ViolationProduct.php

@@ -66,12 +66,12 @@ class ViolationProduct extends Controller
         if ($platform != '') {
             $platform_ids = explode(',', $platform);
             $ViolationProductModel = $ViolationProductModel->whereIn('id', function ($query) use ($platform_ids) {
-                $query->select('platform_id')
+                $query->select('product_id')
                     ->from('washconfig_violation_product_platform')
                     ->whereIn('platform_id', $platform_ids);
             });
         }
-        $result = $ViolationProductModel->query()
+        $result = $ViolationProductModel
             ->where($map)
             ->orderByDesc('id')
             ->paginate($limit)->toarray();