正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
@@ -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"); |
-
请 注册 或 登录 后发表评论