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

interface

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