修改私域专题报名同步

This commit is contained in:
lcc
2024-08-08 11:46:51 +08:00
parent 010082067a
commit bb5ea189cc
6 changed files with 129 additions and 30 deletions
+4 -2
View File
@@ -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);
}