|
@@ -374,7 +374,7 @@ class custReportController extends Controller
|
374
|
374
|
if($admin_id) $query->where('admin_id', $admin_id);
|
375
|
375
|
if($stime) $query->where('dtime', '>=', $stime);
|
376
|
376
|
if($etime) $query->where('dtime', '<=', $etime);
|
377
|
|
- if($sale_ids) $query->whereIn('admin_id', $sale_ids);
|
|
377
|
+ if($sale_ids !== null) $query->whereIn('admin_id', $sale_ids);
|
378
|
378
|
})->where('is_del',0)->orderBy('id', 'desc')->offset($offset)->limit($pageSize)->get();
|
379
|
379
|
$result = json_decode(json_encode($result),true);
|
380
|
380
|
|