Browse Source

停车历史接口优化3

master
wanghongjun 4 weeks ago
parent
commit
cfbda2036f
  1. 4
      app/Exports/ParkingAccessRecordExport.php

4
app/Exports/ParkingAccessRecordExport.php

@ -115,9 +115,9 @@ class ParkingAccessRecordExport implements FromArray, WithHeadings
$items = $query->get()->select($columns)->toArray();
foreach ($items as $item) {
$item = $this->service->getOptionItem($item);
$data = [
$data[] = [
'id' => $index,
'entry_time' => $item['entry_time'],
'enter_time' => $item['enter_time'],
'leave_time' => $item['leave_time'],
'duration' => $item['duration'],
'license_plate' => $item['license_plate'],

Loading…
Cancel
Save