| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | 
							- <?php
 
- namespace App\Admin\Exports\Jobfair;
 
- use App\Admin\Exports\RowExport;
 
- use Illuminate\Support\Collection;
 
- class QiandaoExport extends RowExport
 
- {
 
-     public $name = '';
 
-     function __construct($name){
 
-         $this->name = $name;
 
-     }
 
-     /**
 
-      * 设置标题,返回标题数组
 
-      * @return array
 
-      */
 
-     public function headings(): array
 
-     {
 
-         return [
 
-             '参会企业',
 
-             '预定展位',
 
-             '签到时间'
 
-         ];
 
-     }
 
-     /**
 
-      * 处理行数据
 
-      * @param Model $row
 
-      * @return array
 
-      */
 
-     public function map($row): array
 
-     {
 
-         $result['companyname'] = $row['companyname'];
 
-         $result['position_id'] = $row['position_id'];
 
-         $result['signed_time'] = $row['signed_time'];
 
-         return $result;
 
-     }
 
-     /**
 
-      * 设置文件名
 
-      * @return string
 
-      */
 
-     public function getFilename(): string
 
-     {
 
-         return $this->name.".xlsx";
 
-     }
 
-     /**
 
-      * 格式化指定列.
 
-      * 只有在需要的时候设置,例如在身份证不要显示科学计数时设定列格式:['A'=>NumberFormat::FORMAT_NUMBER]
 
-      * @return array
 
-      */
 
-     public function columnFormats(): array
 
-     {
 
-         return [
 
-         ];
 
-     }
 
- }
 
 
  |