| 
					
				 | 
			
			
				@@ -2,6 +2,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using AutoMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using Newtonsoft.Json; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Domain; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using OASystem.Domain.AesEncryption; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Domain.Dtos; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Domain.Dtos.CRM; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Domain.Dtos.UserDto; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,7 +43,7 @@ namespace OASystem.Infrastructure.Repositories.CRM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Result result = new Result() { Code = -2 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (dto.PortType == 1 || dto.PortType == 2 || dto.PortType == 3)  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                string sql = string.Format(@"Select cdc.Id,LastName+FirstName ClientName,ccc.CompanyFullName,Sex,Marriage, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                string sql = string.Format(@"Select cdc.Id,cdc.LastName,cdc.FirstName,ccc.CompanyFullName,Sex,Marriage, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              	    Phone LandlinePhone,Tel,crmCard1.CertNo IDNo,crmCard2.CertNo PassportNo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              From Crm_DeleClient cdc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              Left Join Crm_CustomerCompany ccc On cdc.crmCompanyId = ccc.Id 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -51,6 +52,11 @@ namespace OASystem.Infrastructure.Repositories.CRM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 var clientList = await _sqlSugar.SqlQueryable<VisaDeleClientListView>(sql).ToListAsync(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                foreach (var item in clientList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    EncryptionProcessor.DecryptProperties(item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (clientList.Count > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     result.Code = 0; 
			 |