上传
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -41,8 +41,8 @@ class PropertyTrackService extends Service | ... | @@ -41,8 +41,8 @@ class PropertyTrackService extends Service |
41 | public function list() | 41 | public function list() |
42 | { | 42 | { |
43 | $res = PropertyTrack::query()->where(['create_admin'=>$this->request->get('identifier')->company_id, 'from'=>1]) | 43 | $res = PropertyTrack::query()->where(['create_admin'=>$this->request->get('identifier')->company_id, 'from'=>1]) |
44 | ->when(filled($this->request->input('upload_time')), function (Builder $builder){ | 44 | ->when(filled($this->request->input('created_at')), function (Builder $builder){ |
45 | list($start, $end) = explode(' - ', $this->request->input('upload_time')); | 45 | list($start, $end) = explode(' - ', $this->request->input('created_at')); |
46 | $builder->whereBetween('upload_time', [trim($start), trim($end)]); | 46 | $builder->whereBetween('upload_time', [trim($start), trim($end)]); |
47 | }) | 47 | }) |
48 | ->when(filled($this->request->input('song_name')), function (Builder $builder){ | 48 | ->when(filled($this->request->input('song_name')), function (Builder $builder){ | ... | ... |
-
Please register or sign in to post a comment