|
@ -337,7 +337,7 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
List<ImportCommunitySelfOrganization> list = testExcelImportResult.getList(); |
|
|
List<ImportCommunitySelfOrganization> list = testExcelImportResult.getList(); |
|
|
if (CollectionUtils.isNotEmpty(list)){ |
|
|
if (CollectionUtils.isNotEmpty(list)){ |
|
|
String customerId = tokenDto.getCustomerId(); |
|
|
String customerId = tokenDto.getCustomerId(); |
|
|
List<String> existsNames = baseDao.selectOrgByOrgName(list.stream().map(m -> m.getOrganizationName()).collect(Collectors.toList()), customerId); |
|
|
List<String> existsNames = baseDao.selectOrgByOrgName(list.stream().map(ImportCommunitySelfOrganization::getOrganizationName).collect(Collectors.toList()), customerId); |
|
|
Map<String, List<ImportCommunitySelfOrganization>> groupByName = list.stream().collect(Collectors.groupingBy(ImportCommunitySelfOrganization::getOrganizationName)); |
|
|
Map<String, List<ImportCommunitySelfOrganization>> groupByName = list.stream().collect(Collectors.groupingBy(ImportCommunitySelfOrganization::getOrganizationName)); |
|
|
groupByName.forEach((k,v) -> { |
|
|
groupByName.forEach((k,v) -> { |
|
|
if (v.size() > NumConstant.ONE){ |
|
|
if (v.size() > NumConstant.ONE){ |
|
@ -399,4 +399,4 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|