From b7cdfead0f6162921de4ebd7d3e9cc2f1cb9f01e Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 7 Jun 2023 17:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/institution/Organization.php | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 +}