作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -192,7 +192,10 @@ class AdminEquipmentController extends AdminBaseController{ @@ -192,7 +192,10 @@ class AdminEquipmentController extends AdminBaseController{
192 public function batch_export(){ 192 public function batch_export(){
193 $ids=$this->request->param('ids'); 193 $ids=$this->request->param('ids');
194 $ids=explode(',',$ids); 194 $ids=explode(',',$ids);
  195 + dump($ids);
195 $data= Db::name('equipment')->where('id',['in',$ids])->select(); 196 $data= Db::name('equipment')->where('id',['in',$ids])->select();
  197 + dump($data);
  198 + exit();
196 // 导出Exl 199 // 导出Exl
197 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel"); 200 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel");
198 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing"); 201 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing");