Commit 8f77d058 by lujunyi

临期

parent 95b480dc
...@@ -44,12 +44,12 @@ protected function grid() ...@@ -44,12 +44,12 @@ protected function grid()
); );
// 获取当前日期 // 获取当前日期
$now = Carbon::now(); // $now = Carbon::now();
if (! $this->view || $this->view == 1) { if (! $this->view || $this->view == 1) {
} elseif ($this->view == 2) { } elseif ($this->view == 2) {
$grid->model()->where('practicing_license_expired_time', '>=', $now)->where('practicing_license_expired_time', '<=', $now->addMonths(1)); $grid->model()->where('practicing_license_expired_time', '>=', Carbon::now())->where('practicing_license_expired_time', '<=', Carbon::now()->addMonths(1));
} elseif ($this->view == 3) { } elseif ($this->view == 3) {
$grid->model()->where('practicing_license_expired_time', '<', $now); $grid->model()->where('practicing_license_expired_time', '<', Carbon::now());
} }
$grid->header(function () { $grid->header(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment