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

interface

@@ -186,6 +186,10 @@ class AdminEquipmentController extends AdminBaseController{ @@ -186,6 +186,10 @@ class AdminEquipmentController extends AdminBaseController{
186 //批量导出 186 //批量导出
187 public function batch_export(){ 187 public function batch_export(){
188 $ids=$this->request->param('ids/a'); 188 $ids=$this->request->param('ids/a');
  189 + if (empty($ids)){
  190 + echo '数据为空';
  191 + exit();
  192 + }
189 $data= Db::name('equipment')->where(['id' => ['in', $ids]])->select(); 193 $data= Db::name('equipment')->where(['id' => ['in', $ids]])->select();
190 194
191 // 导出Exl 195 // 导出Exl