|  | @@ -1,5 +1,7 @@
 | 
	
		
			
				|  |  |  using AutoMapper;
 | 
	
		
			
				|  |  |  using MathNet.Numerics.Distributions;
 | 
	
		
			
				|  |  | +using NPOI.SS.Formula.PTG;
 | 
	
		
			
				|  |  | +using NPOI.Util;
 | 
	
		
			
				|  |  |  using OASystem.Domain;
 | 
	
		
			
				|  |  |  using OASystem.Domain.Dtos.CRM;
 | 
	
		
			
				|  |  |  using OASystem.Domain.Dtos.Groups;
 | 
	
	
		
			
				|  | @@ -957,5 +959,55 @@ namespace OASystem.Infrastructure.Repositories.Groups
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              return _result;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        /// <summary>
 | 
	
		
			
				|  |  | +        /// 分割客户名称
 | 
	
		
			
				|  |  | +        /// </summary>
 | 
	
		
			
				|  |  | +        /// <param name="ids"></param>
 | 
	
		
			
				|  |  | +        /// <returns></returns>
 | 
	
		
			
				|  |  | +        public string _ResolveCustomerName(string ids)
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            string clientStr = "";
 | 
	
		
			
				|  |  | +            if (string.IsNullOrEmpty(ids)) return clientStr;
 | 
	
		
			
				|  |  | +            List<int> intList = new List<int>();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            //if (ids.Contains(","))
 | 
	
		
			
				|  |  | +            //{
 | 
	
		
			
				|  |  | +            //    string[] numbers = ids.Split(',');
 | 
	
		
			
				|  |  | +            //    foreach (string numberStr in numbers)
 | 
	
		
			
				|  |  | +            //    {
 | 
	
		
			
				|  |  | +            //        if (int.TryParse(numberStr.Trim(), out int number))
 | 
	
		
			
				|  |  | +            //        {
 | 
	
		
			
				|  |  | +            //            intList.Add(number);
 | 
	
		
			
				|  |  | +            //        }
 | 
	
		
			
				|  |  | +            //    }
 | 
	
		
			
				|  |  | +            //}
 | 
	
		
			
				|  |  | +            //else
 | 
	
		
			
				|  |  | +            //{
 | 
	
		
			
				|  |  | +            //    if (int.TryParse(ids.Trim(), out int number))
 | 
	
		
			
				|  |  | +            //    {
 | 
	
		
			
				|  |  | +            //        intList.Add(number);
 | 
	
		
			
				|  |  | +            //    }
 | 
	
		
			
				|  |  | +            //}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            string sql = string.Format(@$"Select * From Crm_GroupCustomer Where IsDel = 0 And Id  In ({ids})");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            var infos = _sqlSugar.SqlQueryable<Crm_GroupCustomer>(sql).ToList();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            if (infos.Count > 0)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                var infos1 = infos.Select(it => it.LastName + it.FirstName).ToList();
 | 
	
		
			
				|  |  | +                clientStr = string.Join(",", infos1);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            return clientStr;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        private class CustomerNameInfo
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            public int Id { get; set; }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            public string  Name { get; set; }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |