|
@@ -674,15 +674,12 @@ public class AdminUserLogic {
|
|
|
}
|
|
|
final List<AdminUserDeptRela> deptRelas = adminUserDeptRelaService.lambdaQuery()
|
|
|
.select(AdminUserDeptRela::getAdminUserId)
|
|
|
- .eq(AdminUserDeptRela::getAdminDeptId, deptIds)
|
|
|
+ .in(AdminUserDeptRela::getAdminDeptId, deptIds)
|
|
|
.list();
|
|
|
// 部门相关的adminUserId添加到集合
|
|
|
websitUserIds.addAll(deptRelas.stream()
|
|
|
.map(AdminUserDeptRela::getAdminUserId)
|
|
|
.collect(Collectors.toSet()));
|
|
|
- log.info("查询的部门: {}, 递归部门: {}, 查询到的账号id: {}", JSONUtil.toJsonStr(adminDeptList), JSONUtil.toJsonStr(deptIds), JSONUtil.toJsonStr(deptRelas.stream()
|
|
|
- .map(AdminUserDeptRela::getAdminUserId)
|
|
|
- .collect(Collectors.toSet())));
|
|
|
}
|
|
|
}
|
|
|
|