|
@@ -90,7 +90,9 @@ public class OrganizationDepartmentServiceImpl extends ServiceImpl<OrganizationD
|
|
|
|
|
|
LambdaQueryWrapper<OrganizationDepartmentUser> queryWrapper1 = new LambdaQueryWrapper<>();
|
|
|
queryWrapper1.eq(OrganizationDepartmentUser::getOrganizationId, organizationId);
|
|
|
- queryWrapper1.in(OrganizationDepartmentUser::getDepartmentId, split);
|
|
|
+ if (StringUtils.isNotBlank(departmentId)){
|
|
|
+ queryWrapper1.in(OrganizationDepartmentUser::getDepartmentId, split);
|
|
|
+ }
|
|
|
List<OrganizationDepartmentUser> list = organizationDepartmentUserService.list(queryWrapper1);
|
|
|
List<String> ids = list.stream().map(OrganizationDepartmentUser::getDepartmentId).collect(Collectors.toList());
|
|
|
|