更新人事调动

This commit is contained in:
yaooo 2023-10-30 13:53:17 +08:00
parent 8743333c71
commit 3cdab12c95
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class UserPosition extends ApiController
foreach ($list as &$val) { foreach ($list as &$val) {
$groupId = Db::name('PositionGroup')->where(['pid' => $val['id']])->column('group_id'); $groupId = Db::name('PositionGroup')->where(['pid' => $val['id']])->column('group_id');
$groupName = Db::name('AdminGroup')->where('id', 'in', $groupId)->column('title'); $groupName = Db::name('AdminGroup')->where('id', 'in', $groupId)->column('title');
$val['group_dd'] = $groupId; $val['group_id'] = $groupId;
$val['group_name'] = implode(',', $groupName); $val['group_name'] = implode(',', $groupName);
} }
$this->apiSuccess('获取成功', $list); $this->apiSuccess('获取成功', $list);