|
@@ -173,11 +173,12 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
|
|
|
@PostMapping("getRefRoleIds")
|
|
|
public R<List<Long>> getRefRoleIds(@Valid @RequestBody SysDeptDto.QueryRoleDTO dto) {
|
|
|
Long sysId = dto.getSysId();
|
|
|
- sysDeptRoleService.list(
|
|
|
+ List<SysDeptRole> list = sysDeptRoleService.list(
|
|
|
Wrappers.<SysDeptRole>lambdaQuery().
|
|
|
eq(SysDeptRole::getDeptId, dto.getId()).
|
|
|
eq(sysId != null, SysDeptRole::getSysId, sysId));
|
|
|
- return R.ok();
|
|
|
+ List<Long> ids = list.stream().map(SysDeptRole::getRoleId).collect(Collectors.toList());
|
|
|
+ return R.ok(ids);
|
|
|
}
|
|
|
|
|
|
|