|
|
@ -450,7 +450,7 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
|
iterator.remove(); |
|
|
|
} |
|
|
|
//服务事项校验
|
|
|
|
if (StringUtils.isNotBlank(obj.getServiceMatter())) { |
|
|
|
/*if (StringUtils.isNotBlank(obj.getServiceMatter())) { |
|
|
|
List<String> matters = Arrays.asList(obj.getServiceMatter().split(StrConstant.COLON)); |
|
|
|
matters.forEach(item -> { |
|
|
|
if (null == categoryMap.get(item)) { |
|
|
@ -461,7 +461,7 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
|
iterator.remove(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
//联系人 联系电话 在职党员 地址 中心位置经度 中心位置纬度 校验
|
|
|
|
if (StringUtils.isBlank(obj.getContact())) { |
|
|
|
IcPartyUnitImportFailedExcel failed = ConvertUtils.sourceToTarget(obj, IcPartyUnitImportFailedExcel.class); |
|
|
@ -484,7 +484,7 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
|
failed.setErrorInfo("在职党员为空"); |
|
|
|
fileList.add(failed); |
|
|
|
log.warn(String.format("在职党员为空,行号->%s", obj.getRowNum())); |
|
|
|
} else if (StringUtils.isBlank(obj.getLatitude())) { |
|
|
|
} /*else if (StringUtils.isBlank(obj.getLatitude())) { |
|
|
|
IcPartyUnitImportFailedExcel failed = ConvertUtils.sourceToTarget(obj, IcPartyUnitImportFailedExcel.class); |
|
|
|
failed.setErrorInfo("中心位置纬度为空"); |
|
|
|
fileList.add(failed); |
|
|
@ -494,7 +494,7 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
|
failed.setErrorInfo("中心位置经度为空"); |
|
|
|
fileList.add(failed); |
|
|
|
log.warn(String.format("中心位置经度为空,行号->%s", obj.getRowNum())); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
} |
|
|
|
if (CollectionUtils.isNotEmpty(result)) { |
|
|
@ -505,14 +505,14 @@ public class IcPartyUnitServiceImpl extends BaseServiceImpl<IcPartyUnitDao, IcPa |
|
|
|
entity.setPids(staffInfoCache.getAgencyPIds()); |
|
|
|
entity.setUnitName(item.getUnitName()); |
|
|
|
entity.setType(PartyUnitTypeEnum.getCode(item.getType())); |
|
|
|
if (StringUtils.isNotBlank(item.getServiceMatter())) { |
|
|
|
entity.setServiceMatter(getServiceMatter(categoryMap, item.getServiceMatter())); |
|
|
|
} |
|
|
|
// if (StringUtils.isNotBlank(item.getServiceMatter())) {
|
|
|
|
// entity.setServiceMatter(getServiceMatter(categoryMap, item.getServiceMatter()));
|
|
|
|
// }
|
|
|
|
entity.setContact(item.getContact()); |
|
|
|
entity.setContactMobile(item.getContactMobile()); |
|
|
|
entity.setAddress(item.getAddress()); |
|
|
|
entity.setLatitude(item.getLatitude()); |
|
|
|
entity.setLongitude(item.getLongitude()); |
|
|
|
// entity.setLatitude(item.getLatitude());
|
|
|
|
// entity.setLongitude(item.getLongitude());
|
|
|
|
entity.setMemberCount(item.getMemberCount()); |
|
|
|
entity.setRemark(item.getRemark()); |
|
|
|
return entity; |
|
|
|