|
|
@@ -57,7 +57,7 @@ public class FrameworkServiceImpl implements IFrameworkService {
|
|
|
// 查询选中节点下的人员
|
|
|
employeeDOS = pRepository.supportsFrameworkQuery(qry);
|
|
|
// 查询此节点下面的所有子节点,然后利用所有子节点的id去查询所有子节点下的人员
|
|
|
- List<DepartmentDTO> departmentDTOS = departmentDTOS = dRepository.supportsDepartmentQueryByParentId(qry.getParentId());
|
|
|
+ List<DepartmentDTO> departmentDTOS = departmentDTOS = dRepository.supportsDepartmentQuery(qry);
|
|
|
// 使用 Stream 提取部门 id 到新的 List<Long> 集合(根据 id 实际类型调整泛型)
|
|
|
List<Long> departmentIds = departmentDTOS.stream()
|
|
|
.map(DepartmentDTO::getDepartmentId)
|
|
|
@@ -107,7 +107,7 @@ public class FrameworkServiceImpl implements IFrameworkService {
|
|
|
// 返回true
|
|
|
if (qry.getInclude()){
|
|
|
// 查询此节点下面的所有子节点
|
|
|
- departmentDTOS = dRepository.supportsDepartmentQueryByParentId(qry.getParentId());
|
|
|
+ departmentDTOS = dRepository.supportsDepartmentQuery(qry);
|
|
|
// 使用 Stream 提取部门 id 到新的 List<Long> 集合(根据 id 实际类型调整泛型)
|
|
|
List<Long> departmentIds = departmentDTOS.stream()
|
|
|
.map(DepartmentDTO::getDepartmentId)
|
|
|
@@ -116,7 +116,7 @@ public class FrameworkServiceImpl implements IFrameworkService {
|
|
|
departmentDTOS.addAll(departmentDTOSChild);
|
|
|
}else {
|
|
|
// 返回false,直接查询选中节点下的人员/组织/岗位/群组
|
|
|
- departmentDTOS = dRepository.supportsDepartmentQueryByParentId(qry.getParentId());
|
|
|
+ departmentDTOS = dRepository.supportsDepartmentQuery(qry);
|
|
|
}
|
|
|
// 检测数据是否存在
|
|
|
if (!Objects.nonNull(departmentDTOS) || departmentDTOS.isEmpty()){
|