|
|
@ -131,6 +131,13 @@ public class IcPointNucleicMonitoringServiceImpl extends BaseServiceImpl<IcPoint |
|
|
|
if (addressList.contains(dto.getName())){ |
|
|
|
throw new RenException("该监测点名称已存在,请重新输入"); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(dto.getOrgName())){ |
|
|
|
// 赋值pid pids
|
|
|
|
Result<CommunityInfoResultDTO> resultDTOResult = govOrgFeignClient.getCommunityInfo(dto.getOrgName()); |
|
|
|
CommunityInfoResultDTO communityInfoResultDTO = resultDTOResult.getData(); |
|
|
|
dto.setPid(communityInfoResultDTO.getPid()); |
|
|
|
dto.setPids(communityInfoResultDTO.getPids()); |
|
|
|
} |
|
|
|
IcPointNucleicMonitoringEntity entity = ConvertUtils.sourceToTarget(dto, IcPointNucleicMonitoringEntity.class); |
|
|
|
insert(entity); |
|
|
|
} |
|
|
|