yuanrf 3 月之前
父節點
當前提交
cfb786d043

+ 1 - 0
OASystem/OASystem.Infrastructure/Repositories/Groups/AirTicketResRepository.cs

@@ -377,6 +377,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 }
                 string sqlClient = string.Format("select b.Id,b.Pinyin,b.lastName,b.firstName,b.phone from  Grp_TourClientList a, Crm_DeleClient b where a.clientid = b.id and a.isdel = 0 and a.diid = {0}", dto.DiId);
                 var clientArr = _sqlSugar.SqlQueryable<SimplClientInfo>(sqlClient).ToList();
+                foreach (var item in clientArr) { EncryptionProcessor.DecryptProperties(item); }
                 #endregion
 
                 var data = new

+ 10 - 0
OASystem/OASystem.Infrastructure/Repositories/Groups/CustomersRepository.cs

@@ -1,6 +1,7 @@
 using AutoMapper;
 using NPOI.POIFS.Crypt.Dsig;
 using OASystem.Domain;
+using OASystem.Domain.AesEncryption;
 using OASystem.Domain.Dtos.Financial;
 using OASystem.Domain.Dtos.Groups;
 using OASystem.Domain.Entities.Customer;
@@ -78,6 +79,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 {
                     sql = string.Format("SELECT * FROM Crm_DeleClient cdc where id in ({0}) and IsDel  = 0", strCrmIds);
                     clietArr = _sqlSugar.SqlQueryable<Crm_DeleClient>(sql).ToList();
+                    foreach (var item in clietArr)
+                    {
+                        EncryptionProcessor.DecryptProperties(item);
+                    }
                 }
 
                 foreach (var item in Customers)
@@ -113,6 +118,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     {
                         var name = string.Empty;
                         var clientObject = clietArr.Find(x => x.Id == parseIntValue);
+                        EncryptionProcessor.DecryptProperties(clientObject);
                         name += (clientObject?.LastName + clientObject?.FirstName);
 
                         if (!string.IsNullOrWhiteSpace(name))
@@ -154,6 +160,10 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 {
                     sql = string.Format("SELECT * FROM Crm_DeleClient cdc where id in ({0}) and IsDel  = 0", strCrmIds);
                     clietArr = _sqlSugar.SqlQueryable<Crm_DeleClient>(sql).ToList();
+                    foreach (var item in clietArr)
+                    {
+                        EncryptionProcessor.DecryptProperties(item);
+                    }
                 }
 
                 foreach (var item in Customers)