|
@@ -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;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public string _ResolveCustomerName(string ids)
|
|
|
+ {
|
|
|
+ string clientStr = "";
|
|
|
+ if (string.IsNullOrEmpty(ids)) return clientStr;
|
|
|
+ List<int> intList = new List<int>();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ 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; }
|
|
|
+ }
|
|
|
}
|
|
|
}
|