| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -106,16 +106,7 @@ public class IcNatExcelImportListener implements ReadListener<IcNatImportExcelDa | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            IcNatEntity icNatEntity = ConvertUtils.sourceToTarget(data, IcNatEntity.class); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //icNatEntity.setAgencyId(currentAgencyId);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //icNatEntity.setPids(currentAgencyPids);
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            ResiAndLocalResiResultDTO resiCount = icResiUserDao.getResiCount(currentAgencyId, icNatEntity.getIdCard(), icNatEntity.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (null == resiCount){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                icNatEntity.setUserId(currentUserId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                icNatEntity.setIsLocalResiUser(NumConstant.ZERO_STR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                icNatEntity.setIsResiUser(NumConstant.ZERO_STR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                icNatEntity.setUserId(StringUtils.isBlank(resiCount.getUserId()) ? currentUserId : resiCount.getUserId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                icNatEntity.setIsLocalResiUser(resiCount.getIsLocal() == NumConstant.ZERO ? NumConstant.ZERO_STR : NumConstant.ONE_STR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                icNatEntity.setIsResiUser(resiCount.getIsResi() == NumConstant.ZERO ? NumConstant.ZERO_STR : NumConstant.ONE_STR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            icNatEntity.setUserId(currentUserId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            icNatEntity.setUserType("import"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            icNatEntity.setNatResult(natResult); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            icNatEntity.setAttachmentType(""); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |