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

interface

@@ -192,10 +192,9 @@ class AdminEquipmentController extends AdminBaseController{ @@ -192,10 +192,9 @@ 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);  
196 - $data= Db::name('equipment')->where('id',['in',$ids])->select();  
197 - dump($data);  
198 - exit(); 195 +
  196 + $data= Db::name('equipment')->where('id','in',$ids)->select();
  197 +
199 // 导出Exl 198 // 导出Exl
200 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel"); 199 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel");
201 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing"); 200 vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Drawing");