瀏覽代碼

[智价云] 统计更新

tangyuanwang 8 小時之前
父節點
當前提交
b30c911529
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Http/Controllers/Manager/Statistics/BasicPanel.php

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

@@ -1473,7 +1473,7 @@ class BasicPanel extends Controller
             $LowPriceGoodsModel = $LowPriceGoodsModel->whereIn('platform', $platform);
         }
         $result = $LowPriceGoodsModel->where($map)->where('status', 0)
-            ->select(['product_name', 'product_specs', DB::raw('count(DISTINCT product_name, product_specs) as count')])
+            ->select(['product_name', 'product_specs', DB::raw('count(*) as count')])
             ->groupby('product_name', 'product_specs')
             ->orderby('count', 'desc')
             ->paginate($limit);
@@ -1537,7 +1537,7 @@ class BasicPanel extends Controller
             $violationProductModel = $violationProductModel->whereIn('platform', $platform);
         }
         $result = $violationProductModel->where($map)->where('status', 0)
-            ->select(['product_name', 'product_specs', DB::raw('count(DISTINCT product_name, product_specs) as count')])
+            ->select(['product_name', 'product_specs', DB::raw('count(*) as count')])
             ->groupby('product_name', 'product_specs')
             ->orderby('count', 'desc')
             ->paginate($limit);