Commit a452e1f3 by 杨树贤

修改导出

parent bb99ccb0
Showing with 2 additions and 1 deletions
......@@ -445,6 +445,7 @@ class DataService
'supplier_code',
'supplier_name',
'channel_uid',
'create_time',
])->where('is_type', 0)
->whereRaw('supplier_name NOT LIKE "%-1"')->get();
$excelData = [];
......@@ -490,7 +491,7 @@ class DataService
$excel->sheet('sheet1', function ($sheet) use ($excelData) {
$sheet->fromArray($excelData);
});
})->export('xlsx');
})->export('csv');
}
}
......
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