Ver Fonte

[智价云] 统计更新

tangyuanwang há 4 semanas atrás
pai
commit
5168fbdf85
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      app/Http/Controllers/Manager/Statistics/BasicPanel.php

+ 5 - 5
app/Http/Controllers/Manager/Statistics/BasicPanel.php

@@ -156,7 +156,7 @@ class BasicPanel extends Controller
                     # code...
                     break;
             }
-            $violationProductModel = $violationProductModel->whereIn('platform_id', $platform);
+            $violationProductModel = $violationProductModel->whereIn('platform', $platform);
         }
         $result = $violationProductModel->where($map)->where('status', 0)
             ->select(['product_name', DB::raw('count(product_name) as count')])->distinct('product_name')->orderby('count', 'desc')
@@ -217,7 +217,7 @@ class BasicPanel extends Controller
                     # code...
                     break;
             }
-            $violationProductModel = $violationProductModel->whereIn('platform_id', $platform);
+            $violationProductModel = $violationProductModel->whereIn('platform', $platform);
         }
         try {
             // 假设 ViolationProductModel 中有 province 字段,表示省份信息
@@ -286,7 +286,7 @@ class BasicPanel extends Controller
                     # code...
                     break;
             }
-            $violationProductModel = $violationProductModel->whereIn('platform_id', $platform);
+            $violationProductModel = $violationProductModel->whereIn('platform', $platform);
         }
         try {
             // 假设 ViolationProductModel 中有 city 字段,表示城市信息
@@ -481,7 +481,7 @@ class BasicPanel extends Controller
                     # code...
                     break;
             }
-            $LowPriceGoodsModel = $LowPriceGoodsModel->whereIn('platform_id', $platform);
+            $LowPriceGoodsModel = $LowPriceGoodsModel->whereIn('platform', $platform);
         }
         try {
             // 假设 LowPriceGoodsModel 中有 province 字段,表示省份信息
@@ -551,7 +551,7 @@ class BasicPanel extends Controller
                     # code...
                     break;
             }
-            $LowPriceGoodsModel = $LowPriceGoodsModel->whereIn('platform_id', $platform);
+            $LowPriceGoodsModel = $LowPriceGoodsModel->whereIn('platform', $platform);
         }
         try {
             // 假设 LowPriceGoodsModel 中有 city 字段,表示城市信息