request = $request; $this->companyCountService = $companyCountService; } /** * 列表. * * @return \Illuminate\Http\Response */ public function index() { $conditions = $this->request->all(); $res = $this->companyCountService->index($conditions); return res($res, '企业统计', 201); } /** * 导出. * * @return \Illuminate\Http\Response */ public function export() { $conditions = $this->request->all(); $conditions['limit'] = 0; $filename = $this->getFilename('企业统计'); $res = Excel::queue(new CompanyCountExport($conditions), $filename); dd($res); $url = Storage::url($filename); return res($url, '导出成功', 201); } }