@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 SysRoleDeptServicepublic List<Long> queryDeptIdList(Long roleId)
SysRoleDeptServicequeryDeptIdList in interface SysRoleDeptServicepublic List<Long> queryDeptIdListByUserId(Long userId)
SysRoleDeptServicequeryDeptIdListByUserId in interface SysRoleDeptServiceCopyright © 2021. All rights reserved.