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

equipment

... ... @@ -118,7 +118,7 @@ class AdminEquipmentController extends AdminBaseController{
//批量导出
public function batch_export(){
$ids=$this->request->param('ids/a');
$data= Db::name('equipment')->where('id','in',$ids)->select();
$data= Db::name('equipment')->where(['id' => ['in', $ids]])->select();
// 导出Exl
vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel");
... ... @@ -202,6 +202,7 @@ class AdminEquipmentController extends AdminBaseController{
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save('php://output'); //文件通过浏览器下载
// END
$this->success('success');
}
//生成二维码
... ...