فهرست منبع

relation 改为 9

visuddhinanda 2 سال پیش
والد
کامیت
9df52a1e28
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      app/Http/Controllers/AnalysisController.php
  2. 2 2
      app/Http/Controllers/WbwAnalysisController.php

+ 1 - 1
app/Http/Controllers/AnalysisController.php

@@ -16,7 +16,7 @@ class AnalysisController extends Controller
     {
     {
         //
         //
         $result = WbwAnalysis::selectRaw('d1, data ,count(*) as ct')
         $result = WbwAnalysis::selectRaw('d1, data ,count(*) as ct')
-                             ->where('type',7)
+                             ->where('type',9)
                              ->groupby('d1')
                              ->groupby('d1')
                              ->groupby('data')
                              ->groupby('data')
                              ->orderbyRaw('d1,ct desc')
                              ->orderbyRaw('d1,ct desc')

+ 2 - 2
app/Http/Controllers/WbwAnalysisController.php

@@ -9,14 +9,14 @@ class WbwAnalysisController extends Controller
 {
 {
     /**
     /**
      * Display a listing of the resource.
      * Display a listing of the resource.
-     *select d1, data ,count(*) as ct from wbw_analyses where type = 7  group by d1,data order by d1,ct desc 
+     *select d1, data ,count(*) as ct from wbw_analyses where type = 7  group by d1,data order by d1,ct desc
      * @return \Illuminate\Http\Response
      * @return \Illuminate\Http\Response
      */
      */
     public function index()
     public function index()
     {
     {
         //
         //
         $result = WbwAnalysis::selectRaw('d1, data ,count(*) as ct')
         $result = WbwAnalysis::selectRaw('d1, data ,count(*) as ct')
-                             ->where('type',7)
+                             ->where('type',9)
                              ->groupby('d1')
                              ->groupby('d1')
                              ->groupby('data')
                              ->groupby('data')
                              ->orderbyRaw('d1,ct desc')
                              ->orderbyRaw('d1,ct desc')