作者 曹东东

删除

@@ -112,5 +112,14 @@ class Building extends DoubleBase @@ -112,5 +112,14 @@ class Building extends DoubleBase
112 return $this->view->fetch(); 112 return $this->view->fetch();
113 } 113 }
114 114
  115 + public function del($ids = null)
  116 + {
  117 + $result = $this->model->where(['id' => $ids])->delete();
  118 + if(!$result) {
  119 + $this->error(__('删除失败'));
  120 + }
  121 + $this->success();
  122 + }
  123 +
115 124
116 } 125 }