|
|
|
@ -15,8 +15,8 @@ class LicensePlateRecognitionExport implements FromArray, WithHeadings |
|
|
|
$data = []; |
|
|
|
$index = 1; |
|
|
|
$query = LicensePlateRecognition::query(); |
|
|
|
$columns = ['time_slot']; |
|
|
|
$query->groupBy('time_slot')->limit(1000)->select($columns)->get()->each( |
|
|
|
$query->groupBy('time_slot')->latest('time_slot') |
|
|
|
->forPage(1, 1000)->get()->each( |
|
|
|
function ($item) use (&$data, &$index) { |
|
|
|
$countData = (new LicensePlateRecognitionService( |
|
|
|
new OperationLogService() |
|
|
|
|