Browse Source

店铺新增用户报表--修改查询

master
liangyuyan 6 years ago
parent
commit
b9da5ff3aa
  1. 4
      app/Admin/Controllers/StoreUserReportController.php

4
app/Admin/Controllers/StoreUserReportController.php

@ -48,10 +48,10 @@ class StoreUserReportController extends AdminController
$start = $this->input['start'] ?? null;
$end = $this->input['end'] ?? null;
if ($start !== null) {
$q->whereRaw('time >= ?',$start);
$q->whereRaw("ims_cjdc_store_account.time >= ?",$start);
}
if ($end !== null) {
$q->whereRaw('time <= ?',$end);
$q->whereRaw("ims_cjdc_store_account.time <= ?",$end);
}
})->datetime();
});

Loading…
Cancel
Save