| 
						
						
							
								
							
						
						
					 | 
					@ -92,9 +92,12 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Transactional(rollbackFor = Exception.class) | 
					 | 
					 | 
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public void add(AddIcNatFormDTO formDTO) { | 
					 | 
					 | 
					    public void add(AddIcNatFormDTO formDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //0.先根据身份证号和检查时间以及检测结果校验数据是否存在
 | 
					 | 
					 | 
					        //0.先根据身份证号和检查时间以及检测结果校验数据是否存在
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        IcNatDTO icNatDTO = baseDao.getNatDTO(formDTO.getCustomerId(), null, formDTO.getIdCard(), DateUtils.format(formDTO.getNatTime(), DateUtils.DATE_TIME_PATTERN_END_WITH_MINUTE), formDTO.getNatResult()); | 
					 | 
					 | 
					        IcNatDTO icNatDTO = baseDao.getNatDTO(formDTO.getCustomerId(), null, formDTO.getIdCard(), DateUtils.format(formDTO.getNatTime(), DateUtils.DATE_TIME_PATTERN_END_WITH_MINUTE), null); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        if (null != icNatDTO) { | 
					 | 
					 | 
					        //按身份证号核酸时间存在记录的 核酸结果相同的提示已存在相同记录核酸结果不同的提示已存在去修改【业务要求的】
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (null != icNatDTO && icNatDTO.getNatResult().equals(formDTO.getNatResult())) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.IC_NAT_IDCARD_NATTIME.getCode(), EpmetErrorCode.IC_NAT_IDCARD_NATTIME.getMsg()); | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.IC_NAT_IDCARD_NATTIME.getCode(), EpmetErrorCode.IC_NAT_IDCARD_NATTIME.getMsg()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } else if (null != icNatDTO && !icNatDTO.getNatResult().equals(formDTO.getNatResult())) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.IC_NAT.getCode(), EpmetErrorCode.IC_NAT.getMsg()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //1.获取所填居民所属组织缓存信息
 | 
					 | 
					 | 
					        //1.获取所填居民所属组织缓存信息
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(formDTO.getAgencyId()); | 
					 | 
					 | 
					        AgencyInfoCache agencyInfo = CustomerOrgRedis.getAgencyInfo(formDTO.getAgencyId()); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -209,7 +212,7 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //0.先根据身份证号和检测时间以及检测结果校验除当前数据是否还存在相同数据
 | 
					 | 
					 | 
					        //0.先根据身份证号和检测时间以及检测结果校验除当前数据是否还存在相同数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        IcNatDTO icNatDTO = baseDao.getNatDTO(formDTO.getCustomerId(), formDTO.getIcNatId(), formDTO.getIdCard(), DateUtils.format(formDTO.getNatTime(), DateUtils.DATE_TIME_PATTERN_END_WITH_MINUTE), formDTO.getNatResult()); | 
					 | 
					 | 
					        IcNatDTO icNatDTO = baseDao.getNatDTO(formDTO.getCustomerId(), formDTO.getIcNatId(), formDTO.getIdCard(), DateUtils.format(formDTO.getNatTime(), DateUtils.DATE_TIME_PATTERN_END_WITH_MINUTE), formDTO.getNatResult()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (null != icNatDTO) { | 
					 | 
					 | 
					        if (null != icNatDTO) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.IC_NAT_IDCARD_NATTIME.getCode(), EpmetErrorCode.IC_NAT_IDCARD_NATTIME.getMsg()); | 
					 | 
					 | 
					            throw new RenException(EpmetErrorCode.IC_NAT.getCode(), EpmetErrorCode.IC_NAT.getMsg()); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //1.更新核酸记录基础信息表数据
 | 
					 | 
					 | 
					        //1.更新核酸记录基础信息表数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        IcNatEntity entity = ConvertUtils.sourceToTarget(formDTO, IcNatEntity.class); | 
					 | 
					 | 
					        IcNatEntity entity = ConvertUtils.sourceToTarget(formDTO, IcNatEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |