fix: 获取对应角色部门树列表

V0.5.x
jay 2023-06-12 18:12:31 +08:00
parent c188cceb6f
commit ce99a78d39
1 changed files with 3 additions and 3 deletions

View File

@ -231,12 +231,12 @@ public class SysRoleController extends BaseController {
/**
*
*
* @param roleId ID
*/
@ApiOperation(value = "获取对应角色部门树列表", notes = "获取对应角色部门树列表")
@SaCheckPermission("system:role:list")
@PostMapping(value = "/deptTree/{roleId}")
public DeptTreeSelectVo roleDeptTreeselect(@PathVariable("roleId") Long roleId) {
@PostMapping(value = "/deptTreeByRoleId")
public DeptTreeSelectVo roleDeptTreeselect(@Validated @RequestBody Request<Long> bo) {
Long roleId = bo.getData();
DeptTreeSelectVo selectVo = new DeptTreeSelectVo();
selectVo.setCheckedKeys(deptService.selectDeptListByRoleId(roleId));
selectVo.setDepts(deptService.selectDeptTreeList(new SysDeptBo()));