修改私域专题报名同步
This commit is contained in:
@@ -30,7 +30,7 @@ class Role extends BaseController
|
||||
$comments = $this->input_param('comments');
|
||||
$sort = $this->input_param('sort');
|
||||
$order = $this->input_param('order');
|
||||
$date = $where = [];
|
||||
$list = $where = [];
|
||||
if (!$page) {
|
||||
$where['status'] = 0;
|
||||
} else {
|
||||
@@ -43,10 +43,12 @@ class Role extends BaseController
|
||||
$roleName && $where['roleName'] = $roleName;
|
||||
$roleCode && $where['roleCode'] = $roleCode;
|
||||
$comments && $where['comments'] = $comments;
|
||||
$count = $this->mdSysRole->count($where);
|
||||
$res = $this->mdSysRole->select($where, $sort_order, $page, $limit);
|
||||
foreach ($res as $v) {
|
||||
$date[] = $v;
|
||||
$list[] = $v;
|
||||
}
|
||||
$date = ['list' => $list, 'count' => $count];
|
||||
$this->return_response_list($date);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user