@Service(value="sysRoleDeptService") public class SysRoleDeptServiceImpl extends Object implements SysRoleDeptService
Constructor and Description |
---|
SysRoleDeptServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<Long> |
queryDeptIdList(Long roleId)
根据角色ID,获取部门ID列表
|
List<Long> |
queryDeptIdListByUserId(Long userId)
根据用户ID获取权限部门列表
|
void |
saveOrUpdate(Long roleId,
List<Long> deptIdList) |
@Transactional public void saveOrUpdate(Long roleId, List<Long> deptIdList)
saveOrUpdate
in interface SysRoleDeptService
public List<Long> queryDeptIdList(Long roleId)
SysRoleDeptService
queryDeptIdList
in interface SysRoleDeptService
public List<Long> queryDeptIdListByUserId(Long userId)
SysRoleDeptService
queryDeptIdListByUserId
in interface SysRoleDeptService
Copyright © 2021. All rights reserved.