sunhao %!s(int64=5) %!d(string=hace) años
padre
commit
342a506687
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      app/Http/Controllers/Admin/CustReportController.php

+ 1 - 2
app/Http/Controllers/Admin/CustReportController.php

@@ -351,7 +351,6 @@ class custReportController extends Controller
351 351
         if($team_id>0 && !$admin_id){
352 352
             $sale_ids = DB::table('admin')->where('team_id', $team_id)->lists('id');
353 353
         }
354
-
355 354
         
356 355
 
357 356
         $stime = $request->input('stime');
@@ -361,7 +360,7 @@ class custReportController extends Controller
361 360
             if($admin_id) $query->where('admin_id', $admin_id);
362 361
             if($stime) $query->where('dtime', '>=', $stime);
363 362
             if($etime) $query->where('dtime', '<=', $etime);
364
-            if($sale_ids) $query->whereIn('admin_id', $sale_ids);
363
+            if($sale_ids !== null) $query->whereIn('admin_id', $sale_ids);
365 364
         })->where('is_del',0)->count();
366 365
         if ($count > 1) {
367 366
             // 总页数