Ejemplo n.º 1
0
 public function process(Export $export)
 {
     $container = [];
     $this->setDateObj($export->getDate());
     $config = $this->getConfig($export);
     // 取得資料
     $this->fillGoalAndPlInContainer($container, $config);
     $this->refactInGroupType($export, $container, $this->getNorthGroup());
     $this->refactInGroupType($export, $container, $this->getSorthGroup());
     $this->fillSummaryAttr($container);
     $this->reindex($container);
     // 生成Excel檔案
     if (!$export->getIsExport()) {
         $this->genFile($export, $container)->store('xls', storage_path('excel/exports'));
     }
     return $export;
 }
Ejemplo n.º 2
0
 public function download(Export $export)
 {
     set_time_limit(0);
     return $export->handleExport()->export();
 }