diff --git a/market/controllers/api/institution/Organization.php b/market/controllers/api/institution/Organization.php index 6d620ce0..12321b55 100644 --- a/market/controllers/api/institution/Organization.php +++ b/market/controllers/api/institution/Organization.php @@ -211,6 +211,24 @@ class Organization extends BaseController $this->return_response(); } + /** + * Notes:批量删除机构 + * Created on: 2022/9/8 17:11 + * Created by: dengbw + */ + public function batch_delete() + { + $ids = $this->input_param('ids'); + if (!$ids) { + $this->return_json('参数错误'); + } + $str_ids = implode(',', $ids); + if ($str_ids) { + $this->mdSyliveOrganization->update(['status' => -1], ["organizationId in($str_ids)" => null]); + } + $this->return_response(); + } + /** * Notes:机构详情 * Created on: 2022/12/09 10:37 @@ -226,4 +244,4 @@ class Organization extends BaseController $this->return_response($re); } -} \ No newline at end of file +}