|
@@ -289,7 +289,9 @@ public class IotFailureReportServiceImpl implements IotFailureReportService {
|
|
DeptRespDTO dept = deptApi.getDept(user.getDeptId());
|
|
DeptRespDTO dept = deptApi.getDept(user.getDeptId());
|
|
if (Objects.isNull(dept)) {throw new ServiceException(111,"无该部门");}
|
|
if (Objects.isNull(dept)) {throw new ServiceException(111,"无该部门");}
|
|
|
|
|
|
- List<Long> deptIds = deptApi.getChildDeptList(dept.getParentId()).stream().map(DeptRespDTO::getId).collect(Collectors.toList());
|
|
|
|
|
|
+// List<Long> deptIds = deptApi.getChildDeptList(dept.getParentId()).stream().map(DeptRespDTO::getId).collect(Collectors.toList());
|
|
|
|
+// deptIds.add(dept.getParentId());
|
|
|
|
+ List<Long> deptIds = new ArrayList<>();
|
|
deptIds.add(dept.getParentId());
|
|
deptIds.add(dept.getParentId());
|
|
List<AdminUserRespDTO> userListByDeptId = adminUserApi.getUserListByDeptIdsNew(deptIds);
|
|
List<AdminUserRespDTO> userListByDeptId = adminUserApi.getUserListByDeptIdsNew(deptIds);
|
|
return userListByDeptId;
|
|
return userListByDeptId;
|