根据部门id获取子部门
This commit is contained in:
@@ -322,12 +322,11 @@ public class GeneralDeviceService {
|
||||
.collect(Collectors.toList());
|
||||
if (CollectionUtil.isEmpty(directDeptInfos)) {
|
||||
// 没有直接子部门(树的最底层),获取当前部门所有信息
|
||||
// List<DeptDTO> dept = deptInfos.stream()
|
||||
// .filter(deptDTO -> deptDTO.getId().equals(deviceInfoParam.getDeptIndex()))
|
||||
// .collect(Collectors.toList());
|
||||
List<DeptDTO> dept = deptInfos.stream()
|
||||
.filter(deptDTO -> deptDTO.getId().equals(deviceInfoParam.getDeptIndex()))
|
||||
.collect(Collectors.toList());
|
||||
deviceInfos.add(getGeneralDeviceInfo(
|
||||
// dept.get(0),
|
||||
deptInfos.get(0),
|
||||
dept.get(0),
|
||||
deviceType,
|
||||
Collections.singletonList(deviceInfoParam.getDeptIndex()),
|
||||
deviceInfoParam));
|
||||
|
||||
Reference in New Issue
Block a user