market_delete
This commit is contained in:
@@ -214,7 +214,7 @@ class Goods extends BaseController
|
||||
*/
|
||||
public function batch_delete()
|
||||
{
|
||||
$ids = $this->inputs;
|
||||
$ids = $this->input_param('ids');
|
||||
if (!$ids) {
|
||||
$this->return_json('参数错误');
|
||||
}
|
||||
|
||||
@@ -249,6 +249,24 @@ class Members extends BaseController
|
||||
$this->return_response();
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes:批量删除用户
|
||||
* Created on: 2022/9/19 15:35
|
||||
* 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->mdSyliveUser->update(['status' => -1], ["userId in($str_ids)" => null]);
|
||||
}
|
||||
$this->return_response();
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes:栓验字段
|
||||
* Created on: 2022/9/21 15:52
|
||||
|
||||
@@ -104,4 +104,22 @@ class Dictionary extends BaseController
|
||||
$this->return_response();
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes:批量删除字典
|
||||
* Created on: 2022/10/21 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->mdSysDictionary->update(['status' => -1], ["dictId in($str_ids)" => null]);
|
||||
}
|
||||
$this->return_response();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -155,7 +155,7 @@ class DictionaryData extends BaseController
|
||||
*/
|
||||
public function batch_delete()
|
||||
{
|
||||
$ids = $this->inputs;
|
||||
$ids = $this->input_param('ids');
|
||||
if (!$ids) {
|
||||
$this->return_json('参数错误');
|
||||
}
|
||||
|
||||
@@ -133,4 +133,22 @@ class Menu extends BaseController
|
||||
$this->return_response();
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes:批量删除菜单
|
||||
* Created on: 2022/10/21 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->mdSysMenu->update(['status' => -1], ["menuId in($str_ids)" => null]);
|
||||
}
|
||||
$this->return_response();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -129,7 +129,7 @@ class Role extends BaseController
|
||||
*/
|
||||
public function batch_delete()
|
||||
{
|
||||
$roleIds = $this->inputs;
|
||||
$roleIds = $this->input_param('ids');
|
||||
if (!$roleIds) {
|
||||
$this->return_json('参数错误');
|
||||
}
|
||||
|
||||
@@ -20,10 +20,10 @@ class RoleMenu extends BaseController
|
||||
* Notes:获取角色分配的菜单 (ele-admin:/system/role-menu)
|
||||
* Created on: 2022/9/13 9:47
|
||||
* Created by: dengbw
|
||||
* @param $roleId
|
||||
*/
|
||||
public function index_get($roleId)
|
||||
public function index_get()
|
||||
{
|
||||
$roleId = $this->input_param('roleId');
|
||||
if (!$roleId) {
|
||||
$this->return_json('参数错误');
|
||||
}
|
||||
@@ -50,14 +50,14 @@ class RoleMenu extends BaseController
|
||||
* Notes:修改角色菜单(ele-admin:/system/role-menu)
|
||||
* Created on: 2022/9/13 11:50
|
||||
* Created by: dengbw
|
||||
* @param $roleId
|
||||
*/
|
||||
public function index_put($roleId)
|
||||
public function index_put()
|
||||
{
|
||||
$roleId = $this->input_param('roleId');
|
||||
if (!$roleId) {
|
||||
$this->return_json('参数错误');
|
||||
}
|
||||
$menuIds = $this->inputs;
|
||||
$menuIds = $this->input_param('menuIds');
|
||||
$menuIds = $menuIds ? implode(',', $menuIds) : '';
|
||||
$this->mdSysRole->update(['menuIds' => $menuIds], ['roleId' => $roleId]);
|
||||
$this->return_response();
|
||||
|
||||
Reference in New Issue
Block a user