更新人事调动
This commit is contained in:
parent
8743333c71
commit
3cdab12c95
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue