|
|
@ -540,8 +540,8 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
|
//社会自组织名称重复
|
|
|
|
communitySeltOrgList.forEach(org -> { |
|
|
|
if (obj.getOrganizationName().equals(org.getOrganizationName())) { |
|
|
|
log.warn(String.format("当前客户下的社会自组织名称已存在,社会自组织名称->%s,行号->%s", obj.getOrganizationName(), obj.getRowNum())); |
|
|
|
errMsg.append("客户下社会自组织名称已存在;"); |
|
|
|
log.warn(String.format("当前客户下的社区自组织名称已存在,社会自组织名称->%s,行号->%s", obj.getOrganizationName(), obj.getRowNum())); |
|
|
|
errMsg.append("客户下社区自组织名称已存在;"); |
|
|
|
bl.set(true); |
|
|
|
} |
|
|
|
}); |
|
|
@ -574,12 +574,16 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
|
e.setOrgType(IcCommunitySelfOrganizationConstant.ORG_TYPE_AGENCY); |
|
|
|
e.setPid(agencyInfo.getPid()); |
|
|
|
e.setPids(agencyInfo.getPids()); |
|
|
|
// e.setOrganizationCreatedTime(StringUtils.isNotBlank(l.getOrganizationCreatedTime()) ? DateUtils.parse(l.getOrganizationCreatedTime(), DATE_PATTERN) : new Date());
|
|
|
|
e.setOrganizationCreatedTime(DateUtils.stringToDate(l.getOrganizationCreatedTime(), DATE_PATTERN)); |
|
|
|
//赋值分类编码,excel输入的是分类名称,需要找到admin字典库中的key
|
|
|
|
for (String key : categoryMap.keySet()) { |
|
|
|
log.info("*******key="+key+";categoryMap.get(key)="+categoryMap.get(key)+";e.getCategoryCode()="+e.getCategoryCode()); |
|
|
|
if (StringUtils.isNotBlank(categoryMap.get(key)) && categoryMap.get(key).equals(e.getCategoryCode())) { |
|
|
|
e.setCategoryCode(categoryMap.get(key)); |
|
|
|
e.setCategoryCode(key); |
|
|
|
break; |
|
|
|
}else{ |
|
|
|
e.setCategoryCode(StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
} |
|
|
|
List<IcCommunitySelfOrganizationPersonnelEntity> persons = new ArrayList<>(); |
|
|
|